public interface NdfrtService
| Modifier and Type | Method and Description |
|---|---|
GroupConceptResponse |
findConceptsByID(IdTypeNames idType,
java.lang.String idString)
Find the concepts from a given identifier.
|
GroupConceptResponse |
findConceptsByName(java.lang.String conceptName,
KindNames kindName)
Get the concept identfier given a concept name and kind.
|
void |
getAllConceptsByKind(java.util.List<KindNames> kindList,
ConceptHandler handler)
Get concept information for specified kinds.
|
FullConceptResponse |
getAllInfo(java.lang.String nui)
This resource returns concept information for a specified concept.
|
GroupConceptResponse |
getChildConcepts(java.lang.String nui,
java.lang.Boolean transitive)
Get the child concepts of a specified concept
http://rxnav.nlm.nih.gov/NdfrtAPIs.html#uLink=Ndfrt_REST_getChildConcepts
|
GroupPropertyResponse |
getConceptProperties(java.lang.String nui,
PropertyNames propertyName)
Get the property values for a specified concept and property
http://rxnav.nlm.nih.gov/NdfrtAPIs.html#uLink=Ndfrt_REST_getConceptProperties
|
GroupConceptResponse |
getConceptsByProperty(PropertyNames propertyName,
java.lang.String propertyValue)
Get the concepts that contain the specified property name and value
http://rxnav.nlm.nih.gov/NdfrtAPIs.html#uLink=Ndfrt_REST_getConceptsByProperty
|
GroupConceptResponse |
getEPCClassOfConcept(java.lang.String nui)
Get the FDA Established Pharmacologic classes (EPC) for a specified drug.
|
VersionResponse |
getNdfrtVersion()
Get the date for the last update of the underlying NDFRT data
|
GroupConceptResponse |
getParentConcepts(java.lang.String nui,
java.lang.Boolean transitive)
Get the parent concepts of a specified concept
http://rxnav.nlm.nih.gov/NdfrtAPIs.html#uLink=Ndfrt_REST_getParentConcepts
|
GroupAssociationResponse |
getRelatedConceptsByAssociation(java.lang.String nui,
AssociationNames assocName)
Get the associations for a specified concept
|
GroupConceptResponse |
getRelatedConceptsByReverseRole(java.lang.String nui,
RoleNames roleName,
java.lang.Boolean transitive)
Get the concepts related to the specified object concept by role.
|
GroupConceptResponse |
getRelatedConceptsByRole(java.lang.String nui,
RoleNames roleName,
java.lang.Boolean transitive)
Get the concepts related to the specified concept by role.
|
GroupConceptResponse |
getVAClassMembers(java.lang.String nui)
Get the members of a VA class
|
ConceptListResponse |
getVAClassOfConcept(java.lang.String nui)
Get the VA class of a specified concept
|
FullConceptResponse getAllInfo(java.lang.String nui) throws java.io.IOException
nui - - the ndfrt identifier for the conceptjava.io.IOExceptionGroupConceptResponse findConceptsByID(IdTypeNames idType, java.lang.String idString) throws java.io.IOException
idType - - the type of identifier. See /typeList for valid identifier types.idString - - the value of the identifierjava.io.IOExceptionGroupConceptResponse findConceptsByName(java.lang.String conceptName, KindNames kindName) throws java.io.IOException
conceptName - - the name of the conceptkindName - - (optional) the kind value. If not specified, all kinds are returned. See getKindList for valid values.java.io.IOExceptionGroupConceptResponse getChildConcepts(java.lang.String nui, java.lang.Boolean transitive) throws java.io.IOException
nui - the NDF-RT identifiertransitive - (optional, default: false) if false, then only direct child concepts are returned. If true, return all descendant concepts.java.io.IOException - if errors occur communicating with the serviceGroupConceptResponse getParentConcepts(java.lang.String nui, java.lang.Boolean transitive) throws java.io.IOException
nui - the NDF-RT identifiertransitive - (optional, default: false) if false, then only direct child concepts are returned. If true, return all ancestor concepts.java.io.IOException - if errors occur communicating with the serviceGroupPropertyResponse getConceptProperties(java.lang.String nui, PropertyNames propertyName) throws java.io.IOException
nui - the NDF-RT identifierpropertyName - (optional) the property name. If not specified, all concept properties are returned. See /propertyList example for valid property namesjava.io.IOException - if errors occur communicating with the serviceGroupConceptResponse getConceptsByProperty(PropertyNames propertyName, java.lang.String propertyValue) throws java.io.IOException
propertyName - name of the property. See /propertyList example for valid property names.propertyValue - the property valuejava.io.IOException - if errors occur communicating with the serviceGroupConceptResponse getRelatedConceptsByReverseRole(java.lang.String nui, RoleNames roleName, java.lang.Boolean transitive) throws java.io.IOException
nui - the NDF-RT identifier of the object of the roleroleName - the role. See /roleList example for valid role names.transitive - (default:false) if false, then only the concepts directly associated with the role are returned.
If true, the concepts directly associated with the role along with the descendants of these
concepts are returned.java.io.IOExceptionGroupConceptResponse getRelatedConceptsByRole(java.lang.String nui, RoleNames roleName, java.lang.Boolean transitive) throws java.io.IOException
getRelatedConceptsByReverseRole(java.lang.String, com.apothesource.pillfill.rxnorm.datamodel.ndf.RoleNames, java.lang.Boolean) allows the reverse direction, by specifying the object and the role. In
the example above, this means finding the drugs that "may_treat" "Arteriosclerosis".nui - the NDF-RT identifier of the object of the roleroleName - the role. See /roleList example for valid role names.transitive - (default:false) if false, then only the concepts directly associated with the role are returned.
If true, the concepts directly associated with the role and the descendants of these concepts
are returned.java.io.IOExceptionGroupAssociationResponse getRelatedConceptsByAssociation(java.lang.String nui, AssociationNames assocName) throws java.io.IOException
nui - the NDF-RT concept identifierassocName - (optional) the association name. If not specified, then all associations are returned for the concept.
See getAssociationList for valid values.java.io.IOExceptionGroupConceptResponse getEPCClassOfConcept(java.lang.String nui) throws java.io.IOException
nui - the NDF-RT identifierjava.io.IOExceptionGroupConceptResponse getVAClassMembers(java.lang.String nui) throws java.io.IOException
nui - the NDF-RT identifierjava.io.IOExceptionConceptListResponse getVAClassOfConcept(java.lang.String nui) throws java.io.IOException
nui - the NDF-RT identifier. The identifier must be for a concept that is a VA product (Level = "VA Product")java.io.IOExceptionVersionResponse getNdfrtVersion() throws java.io.IOException
java.io.IOExceptionvoid getAllConceptsByKind(java.util.List<KindNames> kindList, ConceptHandler handler)
kindList - one or more Kind identifiers. See /kindList example for valid values.handler - A handler to receive concepts as they are retrieved (to minimize memory overhead vs. a single list object)