Class MetaDt

  • All Implemented Interfaces:
    ca.uhn.fhir.model.api.ICompositeDatatype, ca.uhn.fhir.model.api.ICompositeElement, ca.uhn.fhir.model.api.IDatatype, ca.uhn.fhir.model.api.IElement, ca.uhn.fhir.model.api.IIdentifiableElement, ca.uhn.fhir.model.api.ISupportsUndeclaredExtensions, Serializable, org.hl7.fhir.instance.model.api.IBase, org.hl7.fhir.instance.model.api.IBaseDatatype, org.hl7.fhir.instance.model.api.IBaseMetaType, org.hl7.fhir.instance.model.api.ICompositeType

    public class MetaDt
    extends ca.uhn.fhir.model.api.BaseIdentifiableElement
    implements ca.uhn.fhir.model.api.ICompositeDatatype, org.hl7.fhir.instance.model.api.IBaseMetaType
    HAPI/FHIR MetaDt Datatype ()

    Definition: The metadata about a resource. This is content in the resource that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource

    Requirements:

    See Also:
    Serialized Form
    • Constructor Detail

      • MetaDt

        public MetaDt()
        Constructor
    • Method Detail

      • setLastUpdated

        public MetaDt setLastUpdated​(Date theHeaderDateValue)
        Specified by:
        setLastUpdated in interface org.hl7.fhir.instance.model.api.IBaseMetaType
      • getTag

        public CodingDt getTag​(String theSystem,
                               String theCode)
        Returns the first tag (if any) that has the given system and code, or returns null if none
        Specified by:
        getTag in interface org.hl7.fhir.instance.model.api.IBaseMetaType
      • getSecurity

        public CodingDt getSecurity​(String theSystem,
                                    String theCode)
        Returns the first security label (if any) that has the given system and code, or returns null if none
        Specified by:
        getSecurity in interface org.hl7.fhir.instance.model.api.IBaseMetaType
      • 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
      • getVersionIdElement

        public ca.uhn.fhir.model.primitive.IdDt getVersionIdElement()
        Gets the value(s) for versionId (). creating it if it does not exist. Will not return null.

        Definition: The version specific identifier, as it appears in the version portion of the URL. This values changes when the resource is created, updated, or deleted

      • getVersionId

        public String getVersionId()
        Gets the value(s) for versionId (). creating it if it does not exist. This method may return null.

        Definition: The version specific identifier, as it appears in the version portion of the URL. This values changes when the resource is created, updated, or deleted

        Specified by:
        getVersionId in interface org.hl7.fhir.instance.model.api.IBaseMetaType
      • setVersionId

        public MetaDt setVersionId​(ca.uhn.fhir.model.primitive.IdDt theValue)
        Sets the value(s) for versionId ()

        Definition: The version specific identifier, as it appears in the version portion of the URL. This values changes when the resource is created, updated, or deleted

      • setVersionId

        public MetaDt setVersionId​(String theId)
        Sets the value for versionId ()

        Definition: The version specific identifier, as it appears in the version portion of the URL. This values changes when the resource is created, updated, or deleted

        Specified by:
        setVersionId in interface org.hl7.fhir.instance.model.api.IBaseMetaType
      • getLastUpdatedElement

        public ca.uhn.fhir.model.primitive.InstantDt getLastUpdatedElement()
        Gets the value(s) for lastUpdated (). creating it if it does not exist. Will not return null.

        Definition: When the resource last changed - e.g. when the version changed

      • getLastUpdated

        public Date getLastUpdated()
        Gets the value(s) for lastUpdated (). creating it if it does not exist. This method may return null.

        Definition: When the resource last changed - e.g. when the version changed

        Specified by:
        getLastUpdated in interface org.hl7.fhir.instance.model.api.IBaseMetaType
      • setLastUpdated

        public MetaDt setLastUpdated​(ca.uhn.fhir.model.primitive.InstantDt theValue)
        Sets the value(s) for lastUpdated ()

        Definition: When the resource last changed - e.g. when the version changed

      • setLastUpdated

        public MetaDt setLastUpdated​(Date theDate,
                                     ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision)
        Sets the value for lastUpdated ()

        Definition: When the resource last changed - e.g. when the version changed

      • getProfile

        public List<ca.uhn.fhir.model.primitive.UriDt> getProfile()
        Gets the value(s) for profile (). creating it if it does not exist. Will not return null.

        Definition: A list of profiles [[[StructureDefinition]]]s that this resource claims to conform to. The URL is a reference to [[[StructureDefinition.url]]]

        Specified by:
        getProfile in interface org.hl7.fhir.instance.model.api.IBaseMetaType
      • setProfile

        public MetaDt setProfile​(List<ca.uhn.fhir.model.primitive.UriDt> theValue)
        Sets the value(s) for profile ()

        Definition: A list of profiles [[[StructureDefinition]]]s that this resource claims to conform to. The URL is a reference to [[[StructureDefinition.url]]]

      • addProfile

        public ca.uhn.fhir.model.primitive.UriDt addProfile()
        Adds and returns a new value for profile ()

        Definition: A list of profiles [[[StructureDefinition]]]s that this resource claims to conform to. The URL is a reference to [[[StructureDefinition.url]]]

      • addProfile

        public MetaDt addProfile​(ca.uhn.fhir.model.primitive.UriDt theValue)
        Adds a given new value for profile ()

        Definition: A list of profiles [[[StructureDefinition]]]s that this resource claims to conform to. The URL is a reference to [[[StructureDefinition.url]]]

        Parameters:
        theValue - The profile to add (must not be null)
      • getProfileFirstRep

        public ca.uhn.fhir.model.primitive.UriDt getProfileFirstRep()
        Gets the first repetition for profile (), creating it if it does not already exist.

        Definition: A list of profiles [[[StructureDefinition]]]s that this resource claims to conform to. The URL is a reference to [[[StructureDefinition.url]]]

      • addProfile

        public MetaDt addProfile​(String theUri)
        Adds a new value for profile ()

        Definition: A list of profiles [[[StructureDefinition]]]s that this resource claims to conform to. The URL is a reference to [[[StructureDefinition.url]]]

        Specified by:
        addProfile in interface org.hl7.fhir.instance.model.api.IBaseMetaType
        Returns:
        Returns a reference to this object, to allow for simple chaining.
      • getSecurity

        public List<CodingDtgetSecurity()
        Gets the value(s) for security (). creating it if it does not exist. Will not return null.

        Definition: Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure

        Specified by:
        getSecurity in interface org.hl7.fhir.instance.model.api.IBaseMetaType
      • setSecurity

        public MetaDt setSecurity​(List<CodingDt> theValue)
        Sets the value(s) for security ()

        Definition: Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure

      • addSecurity

        public CodingDt addSecurity()
        Adds and returns a new value for security ()

        Definition: Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure

        Specified by:
        addSecurity in interface org.hl7.fhir.instance.model.api.IBaseMetaType
      • addSecurity

        public MetaDt addSecurity​(CodingDt theValue)
        Adds a given new value for security ()

        Definition: Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure

        Parameters:
        theValue - The security to add (must not be null)
      • getSecurityFirstRep

        public CodingDt getSecurityFirstRep()
        Gets the first repetition for security (), creating it if it does not already exist.

        Definition: Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure

      • getTag

        public List<CodingDtgetTag()
        Gets the value(s) for tag (). creating it if it does not exist. Will not return null.

        Definition: Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource

        Specified by:
        getTag in interface org.hl7.fhir.instance.model.api.IBaseMetaType
      • setTag

        public MetaDt setTag​(List<CodingDt> theValue)
        Sets the value(s) for tag ()

        Definition: Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource

      • addTag

        public CodingDt addTag()
        Adds and returns a new value for tag ()

        Definition: Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource

        Specified by:
        addTag in interface org.hl7.fhir.instance.model.api.IBaseMetaType
      • addTag

        public MetaDt addTag​(CodingDt theValue)
        Adds a given new value for tag ()

        Definition: Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource

        Parameters:
        theValue - The tag to add (must not be null)
      • getTagFirstRep

        public CodingDt getTagFirstRep()
        Gets the first repetition for tag (), creating it if it does not already exist.

        Definition: Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource