Class Medication
- java.lang.Object
-
- ca.uhn.fhir.model.api.BaseElement
-
- ca.uhn.fhir.model.dstu2.resource.BaseResource
-
- ca.uhn.fhir.model.dstu2.resource.Medication
-
- All Implemented Interfaces:
ca.uhn.fhir.model.api.ICompositeElement,ca.uhn.fhir.model.api.IElement,ca.uhn.fhir.model.api.IResource,ca.uhn.fhir.model.api.ISupportsUndeclaredExtensions,Serializable,org.hl7.fhir.instance.model.api.IBase,org.hl7.fhir.instance.model.api.IBaseResource
public class Medication extends BaseResource implements ca.uhn.fhir.model.api.IResource
HAPI/FHIR Medication Resource (clinical.medication)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
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMedication.PackageBlock class for child element: Medication.package ()static classMedication.PackageContentBlock class for child element: Medication.package.content ()static classMedication.ProductBlock class for child element: Medication.product ()static classMedication.ProductBatchBlock class for child element: Medication.product.batch ()static classMedication.ProductIngredientBlock class for child element: Medication.product.ingredient ()
-
Field Summary
Fields Modifier and Type Field Description static ca.uhn.fhir.rest.gclient.TokenClientParamCODEFluent Client search parameter constant for codestatic ca.uhn.fhir.rest.gclient.TokenClientParamCONTAINERFluent Client search parameter constant for containerstatic ca.uhn.fhir.rest.gclient.ReferenceClientParamCONTENTFluent Client search parameter constant for contentstatic ca.uhn.fhir.rest.gclient.TokenClientParamFORMFluent Client search parameter constant for formstatic ca.uhn.fhir.model.api.IncludeINCLUDE_CONTENTConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeINCLUDE_INGREDIENTConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeINCLUDE_MANUFACTURERConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.rest.gclient.ReferenceClientParamINGREDIENTFluent Client search parameter constant for ingredientstatic ca.uhn.fhir.rest.gclient.ReferenceClientParamMANUFACTURERFluent Client search parameter constant for manufacturerstatic StringSP_CODESearch parameter constant for codestatic StringSP_CONTAINERSearch parameter constant for containerstatic StringSP_CONTENTSearch parameter constant for contentstatic StringSP_FORMSearch parameter constant for formstatic StringSP_INGREDIENTSearch parameter constant for ingredientstatic StringSP_MANUFACTURERSearch parameter constant for manufacturer-
Fields inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResource
RES_ID, SP_RES_ID, SP_RES_LANGUAGE
-
-
Constructor Summary
Constructors Constructor Description Medication()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends ca.uhn.fhir.model.api.IElement>
List<T>getAllPopulatedChildElementsOfType(Class<T> theType)CodeableConceptDtgetCode()Gets the value(s) for code (class).BooleangetIsBrand()Gets the value(s) for isBrand (class).ca.uhn.fhir.model.primitive.BooleanDtgetIsBrandElement()Gets the value(s) for isBrand (class).ResourceReferenceDtgetManufacturer()Gets the value(s) for manufacturer (who.actor).Medication.PackagegetPackage()Gets the value(s) for package ().Medication.ProductgetProduct()Gets the value(s) for product ().StringgetResourceName()ca.uhn.fhir.context.FhirVersionEnumgetStructureFhirVersionEnum()booleanisEmpty()MedicationsetCode(CodeableConceptDt theValue)Sets the value(s) for code (class)MedicationsetIsBrand(boolean theBoolean)Sets the value for isBrand (class)MedicationsetIsBrand(ca.uhn.fhir.model.primitive.BooleanDt theValue)Sets the value(s) for isBrand (class)MedicationsetManufacturer(ResourceReferenceDt theValue)Sets the value(s) for manufacturer (who.actor)MedicationsetPackage(Medication.Package theValue)Sets the value(s) for package ()MedicationsetProduct(Medication.Product theValue)Sets the value(s) for product ()-
Methods inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResource
getContained, getId, getIdElement, getLanguage, getMeta, getResourceMetadata, getText, isBaseEmpty, setContained, setId, setId, setId, setLanguage, setResourceMetadata, setText, toString
-
Methods inherited from class ca.uhn.fhir.model.api.BaseElement
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, getUserData, hasFormatComment, setUserData
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
-
-
-
-
Field Detail
-
SP_CODE
public static final String SP_CODE
Search parameter constant for codeDescription:
Type: token
Path: Medication.code
- See Also:
- Constant Field Values
-
CODE
public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE
Fluent Client search parameter constant for codeDescription:
Type: token
Path: Medication.code
-
SP_MANUFACTURER
public static final String SP_MANUFACTURER
Search parameter constant for manufacturerDescription:
Type: reference
Path: Medication.manufacturer
- See Also:
- Constant Field Values
-
MANUFACTURER
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam MANUFACTURER
Fluent Client search parameter constant for manufacturerDescription:
Type: reference
Path: Medication.manufacturer
-
SP_FORM
public static final String SP_FORM
Search parameter constant for formDescription:
Type: token
Path: Medication.product.form
- See Also:
- Constant Field Values
-
FORM
public static final ca.uhn.fhir.rest.gclient.TokenClientParam FORM
Fluent Client search parameter constant for formDescription:
Type: token
Path: Medication.product.form
-
SP_INGREDIENT
public static final String SP_INGREDIENT
Search parameter constant for ingredientDescription:
Type: reference
Path: Medication.product.ingredient.item
- See Also:
- Constant Field Values
-
INGREDIENT
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam INGREDIENT
Fluent Client search parameter constant for ingredientDescription:
Type: reference
Path: Medication.product.ingredient.item
-
SP_CONTAINER
public static final String SP_CONTAINER
Search parameter constant for containerDescription:
Type: token
Path: Medication.package.container
- See Also:
- Constant Field Values
-
CONTAINER
public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTAINER
Fluent Client search parameter constant for containerDescription:
Type: token
Path: Medication.package.container
-
SP_CONTENT
public static final String SP_CONTENT
Search parameter constant for contentDescription:
Type: reference
Path: Medication.package.content.item
- See Also:
- Constant Field Values
-
CONTENT
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam CONTENT
Fluent Client search parameter constant for contentDescription:
Type: reference
Path: Medication.package.content.item
-
INCLUDE_CONTENT
public static final ca.uhn.fhir.model.api.Include INCLUDE_CONTENT
Constant for fluent queries to be used to add include statements. Specifies the path value of "Medication:content".
-
INCLUDE_INGREDIENT
public static final ca.uhn.fhir.model.api.Include INCLUDE_INGREDIENT
Constant for fluent queries to be used to add include statements. Specifies the path value of "Medication:ingredient".
-
INCLUDE_MANUFACTURER
public static final ca.uhn.fhir.model.api.Include INCLUDE_MANUFACTURER
Constant for fluent queries to be used to add include statements. Specifies the path value of "Medication:manufacturer".
-
-
Constructor Detail
-
Medication
public Medication()
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceorg.hl7.fhir.instance.model.api.IBase
-
getAllPopulatedChildElementsOfType
public <T extends ca.uhn.fhir.model.api.IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
- Specified by:
getAllPopulatedChildElementsOfTypein interfaceca.uhn.fhir.model.api.ICompositeElement
-
getCode
public CodeableConceptDt getCode()
Gets the value(s) for code (class). creating it if it does not exist. Will not returnnull.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.
-
setCode
public Medication setCode(CodeableConceptDt theValue)
Sets the value(s) for code (class)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.
-
getIsBrandElement
public ca.uhn.fhir.model.primitive.BooleanDt getIsBrandElement()
Gets the value(s) for isBrand (class). creating it if it does not exist. Will not returnnull.Definition: Set to true if the item is attributable to a specific manufacturer.
-
getIsBrand
public Boolean getIsBrand()
Gets the value(s) for isBrand (class). creating it if it does not exist. This method may returnnull.Definition: Set to true if the item is attributable to a specific manufacturer.
-
setIsBrand
public Medication setIsBrand(ca.uhn.fhir.model.primitive.BooleanDt theValue)
Sets the value(s) for isBrand (class)Definition: Set to true if the item is attributable to a specific manufacturer.
-
setIsBrand
public Medication setIsBrand(boolean theBoolean)
Sets the value for isBrand (class)Definition: Set to true if the item is attributable to a specific manufacturer.
-
getManufacturer
public ResourceReferenceDt getManufacturer()
Gets the value(s) for manufacturer (who.actor). creating it if it does not exist. Will not returnnull.Definition: Describes the details of the manufacturer
-
setManufacturer
public Medication setManufacturer(ResourceReferenceDt theValue)
Sets the value(s) for manufacturer (who.actor)Definition: Describes the details of the manufacturer
-
getProduct
public Medication.Product getProduct()
Gets the value(s) for product (). creating it if it does not exist. Will not returnnull.Definition: Information that only applies to products (not packages)
-
setProduct
public Medication setProduct(Medication.Product theValue)
Sets the value(s) for product ()Definition: Information that only applies to products (not packages)
-
getPackage
public Medication.Package getPackage()
Gets the value(s) for package (). creating it if it does not exist. Will not returnnull.Definition: Information that only applies to packages (not products)
-
setPackage
public Medication setPackage(Medication.Package theValue)
Sets the value(s) for package ()Definition: Information that only applies to packages (not products)
-
getResourceName
public String getResourceName()
- Specified by:
getResourceNamein interfaceca.uhn.fhir.model.api.IResource
-
getStructureFhirVersionEnum
public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum()
- Specified by:
getStructureFhirVersionEnumin interfaceorg.hl7.fhir.instance.model.api.IBaseResource- Specified by:
getStructureFhirVersionEnumin interfaceca.uhn.fhir.model.api.IResource
-
-