Skip to content

Commit

Permalink
Fixed _request paths
Browse files Browse the repository at this point in the history
  • Loading branch information
redcap3000 committed Jun 29, 2011
1 parent c6ec942 commit a849ea7
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions rxNormApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,87 +12,87 @@ public function __construct($url=NULL)
}
public function findRxcuiByString( $searchString, $source_list, $allSourcesFlag, $searchType ){
// is 'name' search type?
return self::_request(self::$api_url."/rxcui?name=$searchType&srclist=$source_list&allsrc=$allSourcesFlag&search=$searchString",'get');
return self::_request("/rxcui?name=$searchType&srclist=$source_list&allsrc=$allSourcesFlag&search=$searchString",'get');

}
public function findRxcuiByID($idType,$id,$allSourcesFlag){
return self::_request(self::$api_url."/rxcui?idtype=$idType&id=$id&allsrc=$allSourcesFlag",'get');
return self::_request("/rxcui?idtype=$idType&id=$id&allsrc=$allSourcesFlag",'get');
}

public function getSpellingSuggestions( $searchString ){
return self::_request(self::$api_url. "/spellingsuggestions?name=$searchString",'get');
return self::_request("/spellingsuggestions?name=$searchString",'get');
}

public function getRxConceptProperties( $rxcui ){
return self::_request(self::$api_url.'/rxcui/'.$rxcui.'/properties','get');
return self::_request('/rxcui/'.$rxcui.'/properties');
}
public function getRelatedByRelationship( $rxcui, $relationship_list ){
return self::_request(self::$api_url."/rxcui/$rxcui/related?rela=$relationship_list",'get');
return self::_request("/rxcui/$rxcui/related?rela=$relationship_list",'get');
}
public function getRelatedByType( $rxcui, $type_list ){
return self::_request(self::$api_url."/rxcui/$rxcui/related?tty=$type_list",'get');
return self::_request("/rxcui/$rxcui/related?tty=$type_list",'get');
}
public function getAllRelatedInfo( $rxcui ){
return self::_request(self::$api_url."/rxcui/$rxcui/allrelated",'get');
return self::_request("/rxcui/$rxcui/allrelated",'get');
}
public function getDrugs( $name ){
return self::_request(self::$api_url."/drugs?name=$name",'get');
return self::_request("/drugs?name=$name",'get');
}

public function getNDCs( $rxcui ){
return self::_request(self::$api_url."/rxcui/$rxcui/ndcs",'get');
return self::_request("/rxcui/$rxcui/ndcs",'get');
}

public function getRxNormVersion( ){
return self::_request(self::$api_url.'/version','get');
return self::_request('/version','get');
}

public function getIdTypes(){
return self::_request(self::$api_url.'/idtypes','get');
return self::_request('/idtypes','get');
}

public function getRelaTypes(){
return self::_request(self::$api_url.'/relatypes','get');
return self::_request('/relatypes','get');
}

public function getSourceTypes(){
return self::_request(self::$api_url."/sourcetypes",'get');
return self::_request("/sourcetypes",'get');
}

public function getTermTypes(){
return self::_request(self::$api_url."/termtypes",'get');
return self::_request("/termtypes",'get');
}

public function getProprietaryInformation( $rxcui, $source_list, $proxyTicket ){
return self::_request(self::$api_url."/rxcui/$rxcui/proprietary?srclist=$source_list&ticket=$proxyTicket",'get');
return self::_request("/rxcui/$rxcui/proprietary?srclist=$source_list&ticket=$proxyTicket",'get');
}

public function getMultiIngredBrand( $rxcui_list ){
return self::_request(self::$api_url."/brands?ingredientids=$rxcui_list",'get');
return self::_request("/brands?ingredientids=$rxcui_list",'get');
}
// assume this is get display names too ??
public function getDisplayTerms(){
return self::_request(self::$api_url."/displaynames",'get');
return self::_request("/displaynames",'get');
}

public function getStrength( $rxcui ){
return self::_request(self::$api_url."/rxcui/$rxcui/strength",'get');
return self::_request("/rxcui/$rxcui/strength",'get');
}

public function getQuantity( $rxcui ){
return self::_request(self::$api_url."/rxcui/$rxcui/quantity",'get');
return self::_request(s"/rxcui/$rxcui/quantity",'get');
}

public function getUNII( $rxcui ){
return self::_request(self::$api_url."/rxcui/$rxcui/unii",'get');
return self::_request("/rxcui/$rxcui/unii",'get');
}

public function getSplSetId( $rxcui ){
return self::_request(self::$api_url."/rxcui/$rxcui/splsetid",'get');
return self::_request("/rxcui/$rxcui/splsetid",'get');
}

public function findRemapped( $rxcui ){
return self::_request(self::$api_url."/remap/$rxcui",'get');
return self::_request("/remap/$rxcui",'get');
}

}

0 comments on commit a849ea7

Please sign in to comment.