public class Medication extends BaseResource implements 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 TokenClientParam |
CODE
Fluent Client search parameter constant for code
|
static TokenClientParam |
CONTAINER
Fluent Client search parameter constant for container
|
static ReferenceClientParam |
CONTENT
Fluent Client search parameter constant for content
|
static TokenClientParam |
FORM
Fluent Client search parameter constant for form
|
static Include |
INCLUDE_CONTENT
Constant for fluent queries to be used to add include statements.
|
static Include |
INCLUDE_INGREDIENT
Constant for fluent queries to be used to add include statements.
|
static Include |
INCLUDE_MANUFACTURER
Constant for fluent queries to be used to add include statements.
|
static ReferenceClientParam |
INGREDIENT
Fluent Client search parameter constant for ingredient
|
static 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_LANGUAGEINCLUDE_ALL, WILDCARD_ALL_SET| Constructor and Description |
|---|
Medication() |
| Modifier and Type | Method and Description |
|---|---|
<T extends IElement> |
getAllPopulatedChildElementsOfType(Class<T> theType) |
CodeableConceptDt |
getCode()
Gets the value(s) for code (class).
|
Boolean |
getIsBrand()
Gets the value(s) for isBrand (class).
|
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() |
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(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, getResourceMetadata, getText, isBaseEmpty, setContained, setId, setId, setId, setLanguage, setResourceMetadata, setText, toStringaddUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetContained, getId, getLanguage, getResourceMetadata, getText, setId, setLanguage, setResourceMetadatagetIdElement, setId, setIdpublic static final String SP_CODE
Description:
Type: token
Path: Medication.code
public static final TokenClientParam CODE
Description:
Type: token
Path: Medication.code
public static final String SP_MANUFACTURER
Description:
Type: reference
Path: Medication.manufacturer
public static final ReferenceClientParam MANUFACTURER
Description:
Type: reference
Path: Medication.manufacturer
public static final String SP_FORM
Description:
Type: token
Path: Medication.product.form
public static final 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 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 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 ReferenceClientParam CONTENT
Description:
Type: reference
Path: Medication.package.content.item
public static final Include INCLUDE_CONTENT
public static final Include INCLUDE_INGREDIENT
public static final Include INCLUDE_MANUFACTURER
public Medication()
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
getAllPopulatedChildElementsOfType in interface 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 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(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 IResourcepublic FhirVersionEnum getStructureFhirVersionEnum()
getStructureFhirVersionEnum in interface IResourcegetStructureFhirVersionEnum in interface IBaseResourceCopyright © 2014–2016 University Health Network. All rights reserved.