Class Substance.Instance
- java.lang.Object
-
- ca.uhn.fhir.model.api.BaseElement
-
- ca.uhn.fhir.model.api.BaseIdentifiableElement
-
- ca.uhn.fhir.model.dstu2.resource.Substance.Instance
-
- 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:
- Substance
public static class Substance.Instance extends ca.uhn.fhir.model.api.BaseIdentifiableElement implements ca.uhn.fhir.model.api.IResourceBlock
Block class for child element: Substance.instance (class)Definition: Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Instance()
-
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)DategetExpiry()Gets the value(s) for expiry ().ca.uhn.fhir.model.primitive.DateTimeDtgetExpiryElement()Gets the value(s) for expiry ().IdentifierDtgetIdentifier()Gets the value(s) for identifier ().SimpleQuantityDtgetQuantity()Gets the value(s) for quantity ().booleanisEmpty()Substance.InstancesetExpiry(ca.uhn.fhir.model.primitive.DateTimeDt theValue)Sets the value(s) for expiry ()Substance.InstancesetExpiry(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision)Sets the value for expiry ()Substance.InstancesetExpiryWithSecondsPrecision(Date theDate)Sets the value for expiry ()Substance.InstancesetIdentifier(IdentifierDt theValue)Sets the value(s) for identifier ()Substance.InstancesetQuantity(SimpleQuantityDt theValue)Sets the value(s) for quantity ()-
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
-
Instance
public Instance()
-
-
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
-
getIdentifier
public IdentifierDt getIdentifier()
Gets the value(s) for identifier (). creating it if it does not exist. Will not returnnull.Definition: Identifier associated with the package/container (usually a label affixed directly)
-
setIdentifier
public Substance.Instance setIdentifier(IdentifierDt theValue)
Sets the value(s) for identifier ()Definition: Identifier associated with the package/container (usually a label affixed directly)
-
getExpiryElement
public ca.uhn.fhir.model.primitive.DateTimeDt getExpiryElement()
Gets the value(s) for expiry (). creating it if it does not exist. Will not returnnull.Definition: When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry.
-
getExpiry
public Date getExpiry()
Gets the value(s) for expiry (). creating it if it does not exist. This method may returnnull.Definition: When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry.
-
setExpiry
public Substance.Instance setExpiry(ca.uhn.fhir.model.primitive.DateTimeDt theValue)
Sets the value(s) for expiry ()Definition: When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry.
-
setExpiry
public Substance.Instance setExpiry(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision)
Sets the value for expiry ()Definition: When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry.
-
setExpiryWithSecondsPrecision
public Substance.Instance setExpiryWithSecondsPrecision(Date theDate)
Sets the value for expiry ()Definition: When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry.
-
getQuantity
public SimpleQuantityDt getQuantity()
Gets the value(s) for quantity (). creating it if it does not exist. Will not returnnull.Definition: The amount of the substance
-
setQuantity
public Substance.Instance setQuantity(SimpleQuantityDt theValue)
Sets the value(s) for quantity ()Definition: The amount of the substance
-
-