
Class 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
Definition: Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends ca.uhn.fhir.model.api.IElement>
List<T> getAllPopulatedChildElementsOfType(Class<T> theType) Gets the value(s) for expiry ().ca.uhn.fhir.model.primitive.DateTimeDtGets the value(s) for expiry ().Gets the value(s) for identifier ().Gets the value(s) for quantity ().booleanisEmpty()setExpiry(ca.uhn.fhir.model.primitive.DateTimeDt theValue) Sets the value(s) for expiry ()Sets the value for expiry ()setExpiryWithSecondsPrecision(Date theDate) Sets the value for expiry ()setIdentifier(IdentifierDt theValue) Sets the value(s) for identifier ()setQuantity(SimpleQuantityDt theValue) Sets the value(s) for quantity ()Methods inherited from class ca.uhn.fhir.model.api.BaseIdentifiableElement
getElementSpecificId, getId, setElementSpecificId, setId, setIdMethods inherited from class ca.uhn.fhir.model.api.BaseElement
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, getUserData, hasFormatComment, isBaseEmpty, setUserDataMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hl7.fhir.instance.model.api.IBase
fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserDataMethods inherited from interface ca.uhn.fhir.model.api.IIdentifiableElement
getElementSpecificId, getId, setElementSpecificId, setId, setId
-
Constructor Details
-
Instance
public Instance()
-
-
Method Details
-
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
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
Sets the value(s) for identifier ()Definition: Identifier associated with the package/container (usually a label affixed directly)
-
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
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
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
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
Gets the value(s) for quantity (). creating it if it does not exist. Will not returnnull.Definition: The amount of the substance
-
setQuantity
Sets the value(s) for quantity ()Definition: The amount of the substance
-