NAME
get_validate_term - Get the query term/CUI from calling program and validate the term/CUI.
SYNOPSIS
Basic Usage
use WebService::UMLS::get_validate_term;
print "\nEnter query term/CUI:";
my $term = <>;
my $valid = new ValidateTerm;
my $isTerm_CUI = $valid->validateTerm($term);
DESCRIPTION
This module has package ValidateTerm which has two subroutines 'new' and 'validateTerm'. This module takes the query term from calling program (getUMLSInfo.pl) and validates it. It returns values depending on whether the query is term or CUI.
Methods
The subroutines are as follows:
new
This sub creates a new object of ValidateTerm.
validateTerm
This sub takes the query term from calling program (getUMLSInfo.pl) and validates it. It returns '2' if term is valid CUI. It returns '3' if term is valid term. In the case of both invalid term or invalid CUI, it returns '10'.
SEE ALSO
ConnectUMLS.pm GetUserData.pm Query.pm ws-getUMLSInfo.pl
AUTHORS
Mugdha Choudhari University of Minnesota Duluth <chou0130 at d.umn.edu>
Ted Pedersen, University of Minnesota Duluth <tpederse at d.umn.edu>
COPYRIGHT
Copyright (C) 2010, Mugdha Choudhari, Ted Pedersen
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to The Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.