Class MetaDt
- java.lang.Object
-
- ca.uhn.fhir.model.api.BaseElement
-
- ca.uhn.fhir.model.api.BaseIdentifiableElement
-
- ca.uhn.fhir.model.dstu2.composite.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 Summary
Constructors Constructor Description MetaDt()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ca.uhn.fhir.model.primitive.UriDtaddProfile()Adds and returns a new value for profile ()MetaDtaddProfile(ca.uhn.fhir.model.primitive.UriDt theValue)Adds a given new value for profile ()MetaDtaddProfile(String theUri)Adds a new value for profile ()CodingDtaddSecurity()Adds and returns a new value for security ()MetaDtaddSecurity(CodingDt theValue)Adds a given new value for security ()CodingDtaddTag()Adds and returns a new value for tag ()MetaDtaddTag(CodingDt theValue)Adds a given new value for tag ()<T extends ca.uhn.fhir.model.api.IElement>
List<T>getAllPopulatedChildElementsOfType(Class<T> theType)DategetLastUpdated()Gets the value(s) for lastUpdated ().ca.uhn.fhir.model.primitive.InstantDtgetLastUpdatedElement()Gets the value(s) for lastUpdated ().List<ca.uhn.fhir.model.primitive.UriDt>getProfile()Gets the value(s) for profile ().ca.uhn.fhir.model.primitive.UriDtgetProfileFirstRep()Gets the first repetition for profile (), creating it if it does not already exist.List<CodingDt>getSecurity()Gets the value(s) for security ().CodingDtgetSecurity(String theSystem, String theCode)Returns the first security label (if any) that has the given system and code, or returnsnullif noneCodingDtgetSecurityFirstRep()Gets the first repetition for security (), creating it if it does not already exist.List<CodingDt>getTag()Gets the value(s) for tag ().CodingDtgetTag(String theSystem, String theCode)Returns the first tag (if any) that has the given system and code, or returnsnullif noneCodingDtgetTagFirstRep()Gets the first repetition for tag (), creating it if it does not already exist.StringgetVersionId()Gets the value(s) for versionId ().ca.uhn.fhir.model.primitive.IdDtgetVersionIdElement()Gets the value(s) for versionId ().booleanisEmpty()MetaDtsetLastUpdated(ca.uhn.fhir.model.primitive.InstantDt theValue)Sets the value(s) for lastUpdated ()MetaDtsetLastUpdated(Date theHeaderDateValue)MetaDtsetLastUpdated(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision)Sets the value for lastUpdated ()MetaDtsetLastUpdatedWithMillisPrecision(Date theDate)Sets the value for lastUpdated ()MetaDtsetProfile(List<ca.uhn.fhir.model.primitive.UriDt> theValue)Sets the value(s) for profile ()MetaDtsetSecurity(List<CodingDt> theValue)Sets the value(s) for security ()MetaDtsetTag(List<CodingDt> theValue)Sets the value(s) for tag ()MetaDtsetVersionId(ca.uhn.fhir.model.primitive.IdDt theValue)Sets the value(s) for versionId ()MetaDtsetVersionId(String theId)Sets the value for versionId ()-
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
-
-
-
-
Constructor Detail
-
MetaDt
public MetaDt()
Constructor
-
-
Method Detail
-
setLastUpdated
public MetaDt setLastUpdated(Date theHeaderDateValue)
- Specified by:
setLastUpdatedin interfaceorg.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 returnsnullif none- Specified by:
getTagin interfaceorg.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 returnsnullif none- Specified by:
getSecurityin interfaceorg.hl7.fhir.instance.model.api.IBaseMetaType
-
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
-
getVersionIdElement
public ca.uhn.fhir.model.primitive.IdDt getVersionIdElement()
Gets the value(s) for versionId (). creating it if it does not exist. Will not returnnull.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 returnnull.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:
getVersionIdin interfaceorg.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:
setVersionIdin interfaceorg.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 returnnull.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 returnnull.Definition: When the resource last changed - e.g. when the version changed
- Specified by:
getLastUpdatedin interfaceorg.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
-
setLastUpdatedWithMillisPrecision
public MetaDt setLastUpdatedWithMillisPrecision(Date theDate)
Sets the value 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 returnnull.Definition: A list of profiles [[[StructureDefinition]]]s that this resource claims to conform to. The URL is a reference to [[[StructureDefinition.url]]]
- Specified by:
getProfilein interfaceorg.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 benull)
-
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:
addProfilein interfaceorg.hl7.fhir.instance.model.api.IBaseMetaType- Returns:
- Returns a reference to this object, to allow for simple chaining.
-
getSecurity
public List<CodingDt> getSecurity()
Gets the value(s) for security (). creating it if it does not exist. Will not returnnull.Definition: Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure
- Specified by:
getSecurityin interfaceorg.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:
addSecurityin interfaceorg.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 benull)
-
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<CodingDt> getTag()
Gets the value(s) for tag (). creating it if it does not exist. Will not returnnull.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:
getTagin interfaceorg.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:
addTagin interfaceorg.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 benull)
-
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
-
-