Class Meta

All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement, Serializable, org.hl7.fhir.instance.model.api.IBase, org.hl7.fhir.instance.model.api.IBaseDatatype, org.hl7.fhir.instance.model.api.IBaseElement, org.hl7.fhir.instance.model.api.IBaseHasExtensions, org.hl7.fhir.instance.model.api.IBaseMetaType, org.hl7.fhir.instance.model.api.ICompositeType

public class Meta extends Type implements org.hl7.fhir.instance.model.api.IBaseMetaType
The metadata about a resource. This is content in the resource that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.
See Also:
  • Field Details

    • versionId

      protected IdType versionId
      The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted.
    • lastUpdated

      When the resource last changed - e.g. when the version changed.
    • source

      protected UriType source
      A uri that identifies the source system of the resource. This provides a minimal amount of [[[Provenance]]] information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc.
    • profile

      A list of profiles (references to [[[StructureDefinition]]] resources) that this resource claims to conform to. The URL is a reference to [[[StructureDefinition.url]]].
    • security

      protected List<Coding> security
      Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure.
    • tag

      protected List<Coding> tag
      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.
  • Constructor Details

    • Meta

      public Meta()
      Constructor
  • Method Details

    • getVersionIdElement

      Returns:
      versionId (The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted.). This is the underlying object with id, value and extensions. The accessor "getVersionId" gives direct access to the value
    • hasVersionIdElement

      public boolean hasVersionIdElement()
    • hasVersionId

      public boolean hasVersionId()
    • setVersionIdElement

      Parameters:
      value - versionId (The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted.). This is the underlying object with id, value and extensions. The accessor "getVersionId" gives direct access to the value
    • getVersionId

      public String getVersionId()
      Specified by:
      getVersionId in interface org.hl7.fhir.instance.model.api.IBaseMetaType
      Returns:
      The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted.
    • setVersionId

      public Meta setVersionId(String value)
      Specified by:
      setVersionId in interface org.hl7.fhir.instance.model.api.IBaseMetaType
      Parameters:
      value - The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted.
    • getLastUpdatedElement

      Returns:
      lastUpdated (When the resource last changed - e.g. when the version changed.). This is the underlying object with id, value and extensions. The accessor "getLastUpdated" gives direct access to the value
    • hasLastUpdatedElement

      public boolean hasLastUpdatedElement()
    • hasLastUpdated

      public boolean hasLastUpdated()
    • setLastUpdatedElement

      Parameters:
      value - lastUpdated (When the resource last changed - e.g. when the version changed.). This is the underlying object with id, value and extensions. The accessor "getLastUpdated" gives direct access to the value
    • getLastUpdated

      public Date getLastUpdated()
      Specified by:
      getLastUpdated in interface org.hl7.fhir.instance.model.api.IBaseMetaType
      Returns:
      When the resource last changed - e.g. when the version changed.
    • setLastUpdated

      public Meta setLastUpdated(Date value)
      Specified by:
      setLastUpdated in interface org.hl7.fhir.instance.model.api.IBaseMetaType
      Parameters:
      value - When the resource last changed - e.g. when the version changed.
    • getSourceElement

      Returns:
      source (A uri that identifies the source system of the resource. This provides a minimal amount of [[[Provenance]]] information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc.). This is the underlying object with id, value and extensions. The accessor "getSource" gives direct access to the value
    • hasSourceElement

      public boolean hasSourceElement()
    • hasSource

      public boolean hasSource()
    • setSourceElement

      public Meta setSourceElement(UriType value)
      Parameters:
      value - source (A uri that identifies the source system of the resource. This provides a minimal amount of [[[Provenance]]] information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc.). This is the underlying object with id, value and extensions. The accessor "getSource" gives direct access to the value
    • getSource

      public String getSource()
      Returns:
      A uri that identifies the source system of the resource. This provides a minimal amount of [[[Provenance]]] information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc.
    • setSource

      public Meta setSource(String value)
      Parameters:
      value - A uri that identifies the source system of the resource. This provides a minimal amount of [[[Provenance]]] information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc.
    • getProfile

      Specified by:
      getProfile in interface org.hl7.fhir.instance.model.api.IBaseMetaType
      Returns:
      profile (A list of profiles (references to [[[StructureDefinition]]] resources) that this resource claims to conform to. The URL is a reference to [[[StructureDefinition.url]]].)
    • setProfile

      public Meta setProfile(List<CanonicalType> theProfile)
      Returns:
      Returns a reference to this for easy method chaining
    • hasProfile

      public boolean hasProfile()
    • addProfileElement

      Returns:
      profile (A list of profiles (references to [[[StructureDefinition]]] resources) that this resource claims to conform to. The URL is a reference to [[[StructureDefinition.url]]].)
    • addProfile

      public Meta addProfile(String value)
      Specified by:
      addProfile in interface org.hl7.fhir.instance.model.api.IBaseMetaType
      Parameters:
      value - profile (A list of profiles (references to [[[StructureDefinition]]] resources) that this resource claims to conform to. The URL is a reference to [[[StructureDefinition.url]]].)
    • hasProfile

      public boolean hasProfile(String value)
      Parameters:
      value - profile (A list of profiles (references to [[[StructureDefinition]]] resources) that this resource claims to conform to. The URL is a reference to [[[StructureDefinition.url]]].)
    • getSecurity

      public List<Coding> getSecurity()
      Specified by:
      getSecurity in interface org.hl7.fhir.instance.model.api.IBaseMetaType
      Returns:
      security (Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure.)
    • setSecurity

      public Meta setSecurity(List<Coding> theSecurity)
      Returns:
      Returns a reference to this for easy method chaining
    • hasSecurity

      public boolean hasSecurity()
    • addSecurity

      public Coding addSecurity()
      Specified by:
      addSecurity in interface org.hl7.fhir.instance.model.api.IBaseMetaType
    • addSecurity

      public Meta addSecurity(Coding t)
    • getSecurityFirstRep

      Returns:
      The first repetition of repeating field security, creating it if it does not already exist
    • getTag

      public List<Coding> getTag()
      Specified by:
      getTag in interface org.hl7.fhir.instance.model.api.IBaseMetaType
      Returns:
      tag (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.)
    • setTag

      public Meta setTag(List<Coding> theTag)
      Returns:
      Returns a reference to this for easy method chaining
    • hasTag

      public boolean hasTag()
    • addTag

      public Coding addTag()
      Specified by:
      addTag in interface org.hl7.fhir.instance.model.api.IBaseMetaType
    • addTag

      public Meta addTag(Coding t)
    • getTagFirstRep

      Returns:
      The first repetition of repeating field tag, creating it if it does not already exist
    • addTag

      public Meta addTag(String theSystem, String theCode, String theDisplay)
      Convenience method which adds a tag
      Parameters:
      theSystem - The code system
      theCode - The code
      theDisplay - The display name
      Returns:
      Returns a reference to this for easy chaining
    • addSecurity

      public Meta addSecurity(String theSystem, String theCode, String theDisplay)
      Convenience method which adds a security tag
      Parameters:
      theSystem - The code system
      theCode - The code
      theDisplay - The display name
      Returns:
      Returns a reference to this for easy chaining
    • getTag

      public Coding 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 Coding 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
    • listChildren

      protected void listChildren(List<Property> children)
      Overrides:
      listChildren in class Element
    • getNamedProperty

      public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      getNamedProperty in class Element
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • getProperty

      public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      getProperty in class Element
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • setProperty

      public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      setProperty in class Element
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • setProperty

      public Base setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      setProperty in class Element
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • removeChild

      public void removeChild(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      removeChild in class Element
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • makeProperty

      public Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      makeProperty in class Element
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • getTypesForProperty

      public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      getTypesForProperty in class Element
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • addChild

      public Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      addChild in class Element
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • fhirType

      public String fhirType()
      Specified by:
      fhirType in interface org.hl7.fhir.instance.model.api.IBase
      Overrides:
      fhirType in class Element
    • copy

      public Meta copy()
      Overrides:
      copy in class Type
    • copyValues

      public void copyValues(Meta dst)
    • typedCopy

      protected Meta typedCopy()
      Specified by:
      typedCopy in class Type
    • equalsDeep

      public boolean equalsDeep(Base other_)
      Overrides:
      equalsDeep in class Element
    • equalsShallow

      public boolean equalsShallow(Base other_)
      Overrides:
      equalsShallow in class Element
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.hl7.fhir.instance.model.api.IBase
      Overrides:
      isEmpty in class Element