Class Medication.Product
- java.lang.Object
-
- ca.uhn.fhir.model.api.BaseElement
-
- ca.uhn.fhir.model.api.BaseIdentifiableElement
-
- ca.uhn.fhir.model.dstu2.resource.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
public static class Medication.Product extends ca.uhn.fhir.model.api.BaseIdentifiableElement implements ca.uhn.fhir.model.api.IResourceBlock
Block class for child element: Medication.product ()Definition: Information that only applies to products (not packages)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Product()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Medication.ProductBatchaddBatch()Adds and returns a new value for batch ()Medication.ProductaddBatch(Medication.ProductBatch theValue)Adds a given new value for batch ()Medication.ProductIngredientaddIngredient()Adds and returns a new value for ingredient ()Medication.ProductaddIngredient(Medication.ProductIngredient theValue)Adds a given new value for ingredient ()<T extends ca.uhn.fhir.model.api.IElement>
List<T>getAllPopulatedChildElementsOfType(Class<T> theType)List<Medication.ProductBatch>getBatch()Gets the value(s) for batch ().Medication.ProductBatchgetBatchFirstRep()Gets the first repetition for batch (), creating it if it does not already exist.CodeableConceptDtgetForm()Gets the value(s) for form ().List<Medication.ProductIngredient>getIngredient()Gets the value(s) for ingredient ().Medication.ProductIngredientgetIngredientFirstRep()Gets the first repetition for ingredient (), creating it if it does not already exist.booleanisEmpty()Medication.ProductsetBatch(List<Medication.ProductBatch> theValue)Sets the value(s) for batch ()Medication.ProductsetForm(CodeableConceptDt theValue)Sets the value(s) for form ()Medication.ProductsetIngredient(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
-
-
-
-
Constructor Detail
-
Product
public Product()
-
-
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
-
getForm
public CodeableConceptDt 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
public Medication.Product setForm(CodeableConceptDt theValue)
Sets the value(s) for form ()Definition: Describes the form of the item. Powder; tablets; carton
-
getIngredient
public List<Medication.ProductIngredient> 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
public Medication.Product setIngredient(List<Medication.ProductIngredient> theValue)
Sets the value(s) for ingredient ()Definition: Identifies a particular constituent of interest in the product
-
addIngredient
public Medication.ProductIngredient addIngredient()
Adds and returns a new value for ingredient ()Definition: Identifies a particular constituent of interest in the product
-
addIngredient
public Medication.Product addIngredient(Medication.ProductIngredient theValue)
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
public Medication.ProductIngredient 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
public List<Medication.ProductBatch> 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
public Medication.Product setBatch(List<Medication.ProductBatch> theValue)
Sets the value(s) for batch ()Definition: Information about a group of medication produced or packaged from one production run.
-
addBatch
public Medication.ProductBatch addBatch()
Adds and returns a new value for batch ()Definition: Information about a group of medication produced or packaged from one production run.
-
addBatch
public Medication.Product addBatch(Medication.ProductBatch theValue)
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
public Medication.ProductBatch 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.
-
-