Package com.ibm.fhir.model.type
Class Meta
- java.lang.Object
-
- com.ibm.fhir.model.visitor.AbstractVisitable
-
- com.ibm.fhir.model.type.Element
-
- com.ibm.fhir.model.type.Meta
-
- All Implemented Interfaces:
Visitable
@Generated("com.ibm.fhir.tools.CodeGenerator") public class Meta extends Element
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMeta.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(String elementName, int elementIndex, Visitor visitor)Accept a Visitor and invoke the appropriate visit methods.static Meta.Builderbuilder()booleanequals(Object obj)InstantgetLastUpdated()When the resource last changed - e.g.List<Canonical>getProfile()A list of profiles (references to [StructureDefinition](structuredefinition.html#) resources) that this resource claims to conform to.List<Coding>getSecurity()Security labels applied to this resource.UrigetSource()A uri that identifies the source system of the resource.List<Coding>getTag()Tags applied to this resource.IdgetVersionId()The version specific identifier, as it appears in the version portion of the URL.booleanhasChildren()inthashCode()Meta.BuildertoBuilder()Create a new Builder from the contents of this Element
-
-
-
Method Detail
-
getVersionId
public Id getVersionId()
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.- Returns:
- An immutable object of type
Idthat may be null.
-
getLastUpdated
public Instant getLastUpdated()
When the resource last changed - e.g. when the version changed.- Returns:
- An immutable object of type
Instantthat may be null.
-
getSource
public Uri getSource()
A uri that identifies the source system of the resource. This provides a minimal amount of [Provenance](provenance. html#) 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.- Returns:
- An immutable object of type
Urithat may be null.
-
getProfile
public List<Canonical> getProfile()
A list of profiles (references to [StructureDefinition](structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](structuredefinition-definitions. html#StructureDefinition.url).- Returns:
- An unmodifiable list containing immutable objects of type
Canonicalthat may be empty.
-
getSecurity
public List<Coding> getSecurity()
Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure.- Returns:
- An unmodifiable list containing immutable objects of type
Codingthat may be empty.
-
getTag
public List<Coding> getTag()
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.- Returns:
- An unmodifiable list containing immutable objects of type
Codingthat may be empty.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildrenin classElement
-
accept
public void accept(String elementName, int elementIndex, Visitor visitor)
Description copied from interface:VisitableAccept a Visitor and invoke the appropriate visit methods. A typical implementation would look like this:if (visitor.preVisit(this)) { visitor.visitStart(elementName, elementIndex, this); if (visitor.visit(elementName, elementIndex, this)) { // visit children } visitor.visitEnd(elementName, elementIndex, this); visitor.postVisit(this); }- Specified by:
acceptin interfaceVisitable- Specified by:
acceptin classAbstractVisitable- Parameters:
elementName- the name of the element in the context of this visitelementIndex- the index of the element in a list or -1 if it is not contained within a Listvisitor- the visitor to use
-
toBuilder
public Meta.Builder toBuilder()
Description copied from class:ElementCreate a new Builder from the contents of this Element
-
builder
public static Meta.Builder builder()
-
-