public interface RxNormService
| Modifier and Type | Method and Description |
|---|---|
IdGroupResponse |
findRxcuiById(IdTypeNames type,
java.lang.String id,
int allSrc)
Search for an identifier from another vocabulary and return the RxCUIs of any concepts which have an RxNorm term as a synonym or have that identifier as an attribute.
|
IdGroupResponse |
findRxcuiByName(java.lang.String name,
int search)
Search for a name in the RxNorm data set and return the RxCUIs of any concepts which have that name as an RxNorm term or as a synonym of an RxNorm term.
|
PropertiesGroupResponse |
getAllProperties(java.lang.String id,
PropCategoryNames propName)
Return the properties for a specified concept.
|
AllRelatedGroupResponse |
getAllRelatedInfo(java.lang.String id)
Get all the related RxNorm concepts for a given RxNorm identifier.
|
ApproximateGroupResponse |
getApproximateMatch(java.lang.String id,
int maxEntries)
Do an approximate match search to determine the strings in the data set that most closely match the search string.
|
BrandGroupResponse |
getMultiIngredBrand(java.util.List<java.lang.String> ingredientIds)
Get the brands that contain all the specified ingredients.
|
NdcsGroupResponse |
getNdcs(java.lang.String id)
Get the National Drug Codes (NDCs) for the RxNorm concept.
|
RelatedGroupResponse |
getRelatedByRelationship(java.lang.String id,
java.util.List<RelationshipNames> rela)
Get the related RxNorm identifiers of an RxNorm concept specified by a relational attribute.
|
RelatedGroupResponse |
getRelatedByType(java.lang.String id,
java.util.List<TTYNames> tty)
Get the related RxNorm identifiers of an RxNorm concept specified by one or more term types.
|
IdGroupResponse findRxcuiById(IdTypeNames type, java.lang.String id, int allSrc) throws java.io.IOException
type - the identifier type. Valid types are listed in the table below:id - the identifierallSrc - an optional field indicating whether all RxCUIs are to be returned. If set to 1, all non-suppressed RxCUIs will be returned, including those which contain no terms from the RxNorm vocabulary. If set to 0 (the default), only RxCUIs which contain a non-suppressed RxNorm vocabulary term will be returned.java.io.IOExceptionIdGroupResponse findRxcuiByName(java.lang.String name, int search) throws java.io.IOException
name - - the search string. This must be specified.search - - a number indicating the type of search to be performed. If set to 0 (the default), exact match search will be performed. If set to 1, a normalized string search will be done. When search = 2, then an exact match search will be done, and if no results are found, a normalized search will be done. For more information on the normalized string search, click here.java.io.IOExceptionPropertiesGroupResponse getAllProperties(java.lang.String id, PropCategoryNames propName) throws java.io.IOException
id - The RxCUI ID of the conceptpropName - the property categories for the properties to be returned. This field is required.java.io.IOExceptionAllRelatedGroupResponse getAllRelatedInfo(java.lang.String id) throws java.io.IOException
id - The RxCUI for termjava.io.IOExceptionApproximateGroupResponse getApproximateMatch(java.lang.String id, int maxEntries) throws java.io.IOException
id - The term to search formaxEntries - The max number of entries to return (default 10)Candidate concepts that may match the term providedjava.io.IOExceptionRelatedGroupResponse getRelatedByRelationship(java.lang.String id, java.util.List<RelationshipNames> rela) throws java.io.IOException
id - The Rxcui for the termrela - a list of the relationship attribute names such as "tradename_of", "has_form", "isa", etc. This
field is required. See the /relatypes example for the valid relationship attributes.ConceptProperty items related to the identified conceptjava.io.IOExceptionRelatedGroupResponse getRelatedByType(java.lang.String id, java.util.List<TTYNames> tty) throws java.io.IOException
id - The Rxcui for the termtty - a list of one or more RxNorm term types. This field is required. See the /termtypes example for the
valid term types.ConceptProperty items related to the identified conceptjava.io.IOExceptionNdcsGroupResponse getNdcs(java.lang.String id) throws java.io.IOException
id - The Rxcui for the termjava.io.IOExceptionBrandGroupResponse getMultiIngredBrand(java.util.List<java.lang.String> ingredientIds) throws java.io.IOException
ingredientIds - list of ingredient RxCUIs that the returned brands must contain.java.io.IOException