The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WebService::UMLSKS::Query - Query UMLS web services with the query arguments like query term and method name.

SYNOPSIS

Basic Usage

  use WebService::UMLSKS::Query;
  use WebService::UMLSKS::ConnectUMLS;

  my $query = new Query;
  my $c = new ConnectUMLS;
  my $method_name = 'findCUIByExact';
  
  $cui = $query->runQuery(
                $service,
                $method_name,
                {
                        casTicket => $c->get_pt(),
                        searchString => SOAP::Data->type(string => $term),
                        language     => 'ENG',
                        release      => '2010AA',
                        includeSuppressibles => 'false',
                },
        );

  $query -> runQuery($service, $query_term, $method_name, @params);

DESCRIPTION

This module has package Query which has many subroutines like 'new', 'runQuery' and serialization methods. This module takes $service object, query term, method name and different parameters of query as arguments. For valid CUI, it queries UMLS and gets back the hash reference of the information.

SUBROUTINES

The subroutines are as follows:

new

This sub creates a new object of Query.

runQuery

This sub takes $service object, query term, method name and different parameters of query as arguments. It returns empty if the term does not exist in database or if the web services are not working correctly. It returns CUI if the query input was a term. If the query input is CUI, it displays preferred term, definitions with source information and CUI for it.

SOAP::Serializer::as_CurrentUMLSRequest

This is SOAP method for serializing UMLS specific types.

SOAP::Serializer::as_ConceptIdExactRequest

This is SOAP method for serializing UMLS specific types.

SOAP::Serializer::as_ConceptIdWordRequest

This is SOAP method for serializing UMLS specific types.

SOAP::Serializer::as_SourceRequest

This is SOAP method for serializing UMLS specific types.

SOAP::Serializer::as_RestrictedSearchStringRequest

This is SOAP method for serializing UMLS specific types.

SOAP::Serializer::as_ConceptRequest

This is SOAP method for serializing UMLS specific types.

SOAP::Serializer::as_TermGroup

This is SOAP method for serializing UMLS specific types.

SEE ALSO

ValidateTerm.pm GetUserData.pm ConnectUMLS.pm ws-getUMLSInfo.pl ws-getAllowablePath.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) 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.