public class Medication extends BaseResource implements ca.uhn.fhir.model.api.IResource
Definition: This resource is primarily used for the identification and definition of a medication. It covers the ingredients and the packaging for a medication.
Requirements:
Profile Definition: http://hl7.org/fhir/profiles/Medication
| Modifier and Type | Class and Description |
|---|---|
static class |
Medication.Package
Block class for child element: Medication.package ()
|
static class |
Medication.PackageContent
Block class for child element: Medication.package.content ()
|
static class |
Medication.Product
Block class for child element: Medication.product ()
|
static class |
Medication.ProductBatch
Block class for child element: Medication.product.batch ()
|
static class |
Medication.ProductIngredient
Block class for child element: Medication.product.ingredient ()
|
| Modifier and Type | Field and Description |
|---|---|
static ca.uhn.fhir.rest.gclient.TokenClientParam |
CODE
Fluent Client search parameter constant for code
|
static ca.uhn.fhir.rest.gclient.TokenClientParam |
CONTAINER
Fluent Client search parameter constant for container
|
static ca.uhn.fhir.rest.gclient.ReferenceClientParam |
CONTENT
Fluent Client search parameter constant for content
|
static ca.uhn.fhir.rest.gclient.TokenClientParam |
FORM
Fluent Client search parameter constant for form
|
static ca.uhn.fhir.model.api.Include |
INCLUDE_CONTENT
Constant for fluent queries to be used to add include statements.
|
static ca.uhn.fhir.model.api.Include |
INCLUDE_INGREDIENT
Constant for fluent queries to be used to add include statements.
|
static ca.uhn.fhir.model.api.Include |
INCLUDE_MANUFACTURER
Constant for fluent queries to be used to add include statements.
|
static ca.uhn.fhir.rest.gclient.ReferenceClientParam |
INGREDIENT
Fluent Client search parameter constant for ingredient
|
static ca.uhn.fhir.rest.gclient.ReferenceClientParam |
MANUFACTURER
Fluent Client search parameter constant for manufacturer
|
static String |
SP_CODE
Search parameter constant for code
|
static String |
SP_CONTAINER
Search parameter constant for container
|
static String |
SP_CONTENT
Search parameter constant for content
|
static String |
SP_FORM
Search parameter constant for form
|
static String |
SP_INGREDIENT
Search parameter constant for ingredient
|
static String |
SP_MANUFACTURER
Search parameter constant for manufacturer
|
RES_ID, SP_RES_ID, SP_RES_LANGUAGE| Constructor and Description |
|---|
Medication() |
| Modifier and Type | Method and Description |
|---|---|
<T extends ca.uhn.fhir.model.api.IElement> |
getAllPopulatedChildElementsOfType(Class<T> theType) |
CodeableConceptDt |
getCode()
Gets the value(s) for code (class).
|
Boolean |
getIsBrand()
Gets the value(s) for isBrand (class).
|
ca.uhn.fhir.model.primitive.BooleanDt |
getIsBrandElement()
Gets the value(s) for isBrand (class).
|
ResourceReferenceDt |
getManufacturer()
Gets the value(s) for manufacturer (who.actor).
|
Medication.Package |
getPackage()
Gets the value(s) for package ().
|
Medication.Product |
getProduct()
Gets the value(s) for product ().
|
String |
getResourceName() |
ca.uhn.fhir.context.FhirVersionEnum |
getStructureFhirVersionEnum() |
boolean |
isEmpty() |
Medication |
setCode(CodeableConceptDt theValue)
Sets the value(s) for code (class)
|
Medication |
setIsBrand(boolean theBoolean)
Sets the value for isBrand (class)
|
Medication |
setIsBrand(ca.uhn.fhir.model.primitive.BooleanDt theValue)
Sets the value(s) for isBrand (class)
|
Medication |
setManufacturer(ResourceReferenceDt theValue)
Sets the value(s) for manufacturer (who.actor)
|
Medication |
setPackage(Medication.Package theValue)
Sets the value(s) for package ()
|
Medication |
setProduct(Medication.Product theValue)
Sets the value(s) for product ()
|
getContained, getId, getIdElement, getLanguage, getMeta, getResourceMetadata, getText, isBaseEmpty, setContained, setId, setId, setId, setLanguage, setResourceMetadata, setText, toStringaddUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, hasFormatCommentclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final String SP_CODE
Description:
Type: token
Path: Medication.code
public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE
Description:
Type: token
Path: Medication.code
public static final String SP_MANUFACTURER
Description:
Type: reference
Path: Medication.manufacturer
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam MANUFACTURER
Description:
Type: reference
Path: Medication.manufacturer
public static final String SP_FORM
Description:
Type: token
Path: Medication.product.form
public static final ca.uhn.fhir.rest.gclient.TokenClientParam FORM
Description:
Type: token
Path: Medication.product.form
public static final String SP_INGREDIENT
Description:
Type: reference
Path: Medication.product.ingredient.item
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam INGREDIENT
Description:
Type: reference
Path: Medication.product.ingredient.item
public static final String SP_CONTAINER
Description:
Type: token
Path: Medication.package.container
public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTAINER
Description:
Type: token
Path: Medication.package.container
public static final String SP_CONTENT
Description:
Type: reference
Path: Medication.package.content.item
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam CONTENT
Description:
Type: reference
Path: Medication.package.content.item
public static final ca.uhn.fhir.model.api.Include INCLUDE_CONTENT
public static final ca.uhn.fhir.model.api.Include INCLUDE_INGREDIENT
public static final ca.uhn.fhir.model.api.Include INCLUDE_MANUFACTURER
public Medication()
public boolean isEmpty()
isEmpty in interface org.hl7.fhir.instance.model.api.IBasepublic <T extends ca.uhn.fhir.model.api.IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
getAllPopulatedChildElementsOfType in interface ca.uhn.fhir.model.api.ICompositeElementpublic CodeableConceptDt getCode()
null.
Definition: A code (or set of codes) that specify this medication, or a textual description if no code is available. Usage note: This could be a standard medication code such as a code from RxNorm, SNOMED CT, IDMP etc. It could also be a national or local formulary code, optionally with translations to other code systems.
public Medication setCode(CodeableConceptDt theValue)
Definition: A code (or set of codes) that specify this medication, or a textual description if no code is available. Usage note: This could be a standard medication code such as a code from RxNorm, SNOMED CT, IDMP etc. It could also be a national or local formulary code, optionally with translations to other code systems.
public ca.uhn.fhir.model.primitive.BooleanDt getIsBrandElement()
null.
Definition: Set to true if the item is attributable to a specific manufacturer.
public Boolean getIsBrand()
null.
Definition: Set to true if the item is attributable to a specific manufacturer.
public Medication setIsBrand(ca.uhn.fhir.model.primitive.BooleanDt theValue)
Definition: Set to true if the item is attributable to a specific manufacturer.
public Medication setIsBrand(boolean theBoolean)
Definition: Set to true if the item is attributable to a specific manufacturer.
public ResourceReferenceDt getManufacturer()
null.
Definition: Describes the details of the manufacturer
public Medication setManufacturer(ResourceReferenceDt theValue)
Definition: Describes the details of the manufacturer
public Medication.Product getProduct()
null.
Definition: Information that only applies to products (not packages)
public Medication setProduct(Medication.Product theValue)
Definition: Information that only applies to products (not packages)
public Medication.Package getPackage()
null.
Definition: Information that only applies to packages (not products)
public Medication setPackage(Medication.Package theValue)
Definition: Information that only applies to packages (not products)
public String getResourceName()
getResourceName in interface ca.uhn.fhir.model.api.IResourcepublic ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum()
getStructureFhirVersionEnum in interface ca.uhn.fhir.model.api.IResourcegetStructureFhirVersionEnum in interface org.hl7.fhir.instance.model.api.IBaseResourceCopyright © 2014–2018 University Health Network. All rights reserved.