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

    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
    • Method Detail

      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface org.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 interface ca.uhn.fhir.model.api.ICompositeElement
      • getIdentifier

        public IdentifierDt getIdentifier()
        Gets the value(s) for identifier (). creating it if it does not exist. Will not return null.

        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 return null.

        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 return null.

        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 return null.

        Definition: The amount of the substance