Class Medication.Product
- All Implemented Interfaces:
ca.uhn.fhir.model.api.ICompositeElement
,ca.uhn.fhir.model.api.IElement
,ca.uhn.fhir.model.api.IIdentifiableElement
,ca.uhn.fhir.model.api.IResourceBlock
,ca.uhn.fhir.model.api.ISupportsUndeclaredExtensions
,Serializable
,org.hl7.fhir.instance.model.api.IBase
- Enclosing class:
Medication
Definition: Information that only applies to products (not packages)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddBatch()
Adds and returns a new value for batch ()addBatch
(Medication.ProductBatch theValue) Adds a given new value for batch ()Adds and returns a new value for ingredient ()addIngredient
(Medication.ProductIngredient theValue) Adds a given new value for ingredient ()<T extends ca.uhn.fhir.model.api.IElement>
List<T> getAllPopulatedChildElementsOfType
(Class<T> theType) getBatch()
Gets the value(s) for batch ().Gets the first repetition for batch (), creating it if it does not already exist.getForm()
Gets the value(s) for form ().Gets the value(s) for ingredient ().Gets the first repetition for ingredient (), creating it if it does not already exist.boolean
isEmpty()
setBatch
(List<Medication.ProductBatch> theValue) Sets the value(s) for batch ()setForm
(CodeableConceptDt theValue) Sets the value(s) for form ()setIngredient
(List<Medication.ProductIngredient> theValue) Sets the value(s) for ingredient ()Methods inherited from class ca.uhn.fhir.model.api.BaseIdentifiableElement
getElementSpecificId, getId, setElementSpecificId, setId, setId
Methods inherited from class ca.uhn.fhir.model.api.BaseElement
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, getUserData, hasFormatComment, isBaseEmpty, setUserData
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
Methods inherited from interface ca.uhn.fhir.model.api.IIdentifiableElement
getElementSpecificId, getId, setElementSpecificId, setId, setId
-
Constructor Details
-
Product
public Product()
-
-
Method Details
-
isEmpty
- Specified by:
isEmpty
in 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:
getAllPopulatedChildElementsOfType
in interfaceca.uhn.fhir.model.api.ICompositeElement
-
getForm
Gets the value(s) for form (). creating it if it does not exist. Will not returnnull
.Definition: Describes the form of the item. Powder; tablets; carton
-
setForm
Sets the value(s) for form ()Definition: Describes the form of the item. Powder; tablets; carton
-
getIngredient
Gets the value(s) for ingredient (). creating it if it does not exist. Will not returnnull
.Definition: Identifies a particular constituent of interest in the product
-
setIngredient
Sets the value(s) for ingredient ()Definition: Identifies a particular constituent of interest in the product
-
addIngredient
Adds and returns a new value for ingredient ()Definition: Identifies a particular constituent of interest in the product
-
addIngredient
Adds a given new value for ingredient ()Definition: Identifies a particular constituent of interest in the product
- Parameters:
theValue
- The ingredient to add (must not benull
)
-
getIngredientFirstRep
Gets the first repetition for ingredient (), creating it if it does not already exist.Definition: Identifies a particular constituent of interest in the product
-
getBatch
Gets the value(s) for batch (). creating it if it does not exist. Will not returnnull
.Definition: Information about a group of medication produced or packaged from one production run.
-
setBatch
Sets the value(s) for batch ()Definition: Information about a group of medication produced or packaged from one production run.
-
addBatch
Adds and returns a new value for batch ()Definition: Information about a group of medication produced or packaged from one production run.
-
addBatch
Adds a given new value for batch ()Definition: Information about a group of medication produced or packaged from one production run.
- Parameters:
theValue
- The batch to add (must not benull
)
-
getBatchFirstRep
Gets the first repetition for batch (), creating it if it does not already exist.Definition: Information about a group of medication produced or packaged from one production run.
-