public class Medication extends BaseResource implements IResource
Definition: Primarily used for identification and definition of Medication, but also covers ingredients and packaging
Requirements:
Profile Definition: http://hl7.org/fhir/profiles/Medication
| Modifier and Type | Class and Description |
|---|---|
static class |
Medication.Product
Block class for child element: Medication.product (Administrable medication details)
|
static class |
Medication.ProductIngredient
Block class for child element: Medication.product.ingredient (Active or inactive 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_MANUFACTURER
Constant for fluent queries to be used to add include statements.
|
static Include |
INCLUDE_PACKAGE_CONTENT_ITEM
Constant for fluent queries to be used to add include statements.
|
static Include |
INCLUDE_PRODUCT_INGREDIENT_ITEM
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 StringClientParam |
NAME
Fluent Client search parameter constant for name
|
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
|
static String |
SP_NAME
Search parameter constant for name
|
SP_RES_ID, SP_RES_LANGUAGE| Constructor and Description |
|---|
Medication() |
| Modifier and Type | Method and Description |
|---|---|
<T extends IElement> |
getAllPopulatedChildElementsOfType(Class<T> theType)
Returns a list containing all child elements matching a given type
|
CodeableConceptDt |
getCode()
Gets the value(s) for code (Codes that identify this medication).
|
BooleanDt |
getIsBrand()
Gets the value(s) for isBrand (True if a brand).
|
BoundCodeDt<MedicationKindEnum> |
getKind()
Gets the value(s) for kind (product | package).
|
ResourceReferenceDt |
getManufacturer()
Gets the value(s) for manufacturer (Manufacturer of the item).
|
StringDt |
getName()
Gets the value(s) for name (Common / Commercial name).
|
CodeDt |
getPackage()
Gets the value(s) for package (Details about packaged medications).
|
Medication.Product |
getProduct()
Gets the value(s) for product (Administrable medication details).
|
boolean |
isEmpty() |
Medication |
setCode(CodeableConceptDt theValue)
Sets the value(s) for code (Codes that identify this medication)
|
Medication |
setIsBrand(boolean theBoolean)
Sets the value for isBrand (True if a brand)
|
Medication |
setIsBrand(BooleanDt theValue)
Sets the value(s) for isBrand (True if a brand)
|
Medication |
setKind(BoundCodeDt<MedicationKindEnum> theValue)
Sets the value(s) for kind (product | package)
|
Medication |
setKind(MedicationKindEnum theValue)
Sets the value(s) for kind (product | package)
|
Medication |
setManufacturer(ResourceReferenceDt theValue)
Sets the value(s) for manufacturer (Manufacturer of the item)
|
Medication |
setName(String theString)
Sets the value for name (Common / Commercial name)
|
Medication |
setName(StringDt theValue)
Sets the value(s) for name (Common / Commercial name)
|
Medication |
setPackage(CodeDt theValue)
Sets the value(s) for package (Details about packaged medications)
|
Medication |
setPackage(String theCode)
Sets the value for package (Details about packaged medications)
|
Medication |
setProduct(Medication.Product theValue)
Sets the value(s) for product (Administrable medication details)
|
getContained, getId, getLanguage, getResourceMetadata, getText, isBaseEmpty, setContained, 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, setResourceMetadatapublic 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_NAME
Description:
Type: string
Path: Medication.name
public static final StringClientParam NAME
Description:
Type: string
Path: Medication.name
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 Include INCLUDE_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 Include INCLUDE_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_PACKAGE_CONTENT_ITEM
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
ICompositeElementgetAllPopulatedChildElementsOfType in interface ICompositeElementtheType - The type to match. If set to null, all child elements will be returnedpublic StringDt getName()
null.
Definition: The common/commercial name of the medication absent information such as strength, form, etc. E.g. Acetaminophen, Tylenol 3, etc. The fully coordinated name is communicated as the display of Medication.code
public Medication setName(StringDt theValue)
Definition: The common/commercial name of the medication absent information such as strength, form, etc. E.g. Acetaminophen, Tylenol 3, etc. The fully coordinated name is communicated as the display of Medication.code
public Medication setName(String theString)
Definition: The common/commercial name of the medication absent information such as strength, form, etc. E.g. Acetaminophen, Tylenol 3, etc. The fully coordinated name is communicated as the display of Medication.code
public CodeableConceptDt getCode()
null.
Definition: A code (or set of codes) that identify this medication. Usage note: This could be a standard drug code such as a drug regulator code, RxNorm code, SNOMED CT code, etc. It could also be a local formulary code, optionally with translations to the standard drug codes
public Medication setCode(CodeableConceptDt theValue)
Definition: A code (or set of codes) that identify this medication. Usage note: This could be a standard drug code such as a drug regulator code, RxNorm code, SNOMED CT code, etc. It could also be a local formulary code, optionally with translations to the standard drug codes
public BooleanDt getIsBrand()
null.
Definition: Set to true if the item is attributable to a specific manufacturer (even if we don't know who that is)
public Medication setIsBrand(BooleanDt theValue)
Definition: Set to true if the item is attributable to a specific manufacturer (even if we don't know who that is)
public Medication setIsBrand(boolean theBoolean)
Definition: Set to true if the item is attributable to a specific manufacturer (even if we don't know who that is)
public ResourceReferenceDt getManufacturer()
null.
Definition: Describes the details of the manufacturer
public Medication setManufacturer(ResourceReferenceDt theValue)
Definition: Describes the details of the manufacturer
public BoundCodeDt<MedicationKindEnum> getKind()
null.
Definition: Medications are either a single administrable product or a package that contains one or more products.
public Medication setKind(BoundCodeDt<MedicationKindEnum> theValue)
Definition: Medications are either a single administrable product or a package that contains one or more products.
public Medication setKind(MedicationKindEnum theValue)
Definition: Medications are either a single administrable product or a package that contains one or more products.
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 CodeDt getPackage()
null.
Definition: Information that only applies to packages (not products)
public Medication setPackage(CodeDt theValue)
Definition: Information that only applies to packages (not products)
public Medication setPackage(String theCode)
Definition: Information that only applies to packages (not products)
Copyright © 2014 University Health Network. All rights reserved.