WebService::UMLSKS::ValidateTerm - Get the query term/CUI from calling program and validate the term/CUI.
use WebService::UMLSKS::ValidateTerm; print "\nEnter query term/CUI:"; my $term = <>; my $valid = new ValidateTerm; my $isTerm_CUI = $valid->validateTerm($term);
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.
The subroutines are as follows:
This sub creates a new object of 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'.
ConnectUMLS.pm GetUserData.pm Query.pm ws-getUMLSInfo.pl
Mugdha Choudhari, University of Minnesota Duluth <chou0130 at d.umn.edu>
Ted Pedersen, University of Minnesota Duluth <tpederse at d.umn.edu>
Copyright (C) 2011, 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.