Package com.ibm.fhir.model.type
Class Meta.Builder
- java.lang.Object
-
- com.ibm.fhir.model.builder.AbstractBuilder<Element>
-
- com.ibm.fhir.model.type.Element.Builder
-
- com.ibm.fhir.model.type.Meta.Builder
-
- Enclosing class:
- Meta
public static class Meta.Builder extends Element.Builder
-
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.type.Element.Builder
extension, id
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Metabuild()Build theMetaMeta.Builderextension(Extension... extension)May be used to represent additional information that is not part of the basic definition of the element.Meta.Builderextension(Collection<Extension> extension)May be used to represent additional information that is not part of the basic definition of the element.protected Meta.Builderfrom(Meta meta)Meta.Builderid(String id)Unique id for the element within a resource (for internal references).Meta.BuilderlastUpdated(Instant lastUpdated)When the resource last changed - e.g.Meta.Builderprofile(Canonical... profile)A list of profiles (references to [StructureDefinition](structuredefinition.html#) resources) that this resource claims to conform to.Meta.Builderprofile(Collection<Canonical> profile)A list of profiles (references to [StructureDefinition](structuredefinition.html#) resources) that this resource claims to conform to.Meta.Buildersecurity(Coding... security)Security labels applied to this resource.Meta.Buildersecurity(Collection<Coding> security)Security labels applied to this resource.Meta.Buildersource(Uri source)A uri that identifies the source system of the resource.Meta.Buildertag(Coding... tag)Tags applied to this resource.Meta.Buildertag(Collection<Coding> tag)Tags applied to this resource.Meta.BuilderversionId(Id versionId)The version specific identifier, as it appears in the version portion of the URL.-
Methods inherited from class com.ibm.fhir.model.type.Element.Builder
from
-
-
-
-
Method Detail
-
id
public Meta.Builder id(String id)
Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.- Overrides:
idin classElement.Builder- Parameters:
id- Unique id for inter-element referencing- Returns:
- A reference to this Builder instance
-
extension
public Meta.Builder extension(Extension... extension)
May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.Adds new element(s) to the existing list
- Overrides:
extensionin classElement.Builder- Parameters:
extension- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
extension
public Meta.Builder extension(Collection<Extension> extension)
May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.Replaces the existing list with a new one containing elements from the Collection
- Overrides:
extensionin classElement.Builder- Parameters:
extension- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
versionId
public Meta.Builder versionId(Id 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.- Parameters:
versionId- Version specific identifier- Returns:
- A reference to this Builder instance
-
lastUpdated
public Meta.Builder lastUpdated(Instant lastUpdated)
When the resource last changed - e.g. when the version changed.- Parameters:
lastUpdated- When the resource version last changed- Returns:
- A reference to this Builder instance
-
source
public Meta.Builder source(Uri source)
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.- Parameters:
source- Identifies where the resource comes from- Returns:
- A reference to this Builder instance
-
profile
public Meta.Builder profile(Canonical... profile)
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).Adds new element(s) to the existing list
- Parameters:
profile- Profiles this resource claims to conform to- Returns:
- A reference to this Builder instance
-
profile
public Meta.Builder profile(Collection<Canonical> profile)
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).Replaces the existing list with a new one containing elements from the Collection
- Parameters:
profile- Profiles this resource claims to conform to- Returns:
- A reference to this Builder instance
-
security
public Meta.Builder security(Coding... security)
Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure.Adds new element(s) to the existing list
- Parameters:
security- Security Labels applied to this resource- Returns:
- A reference to this Builder instance
-
security
public Meta.Builder security(Collection<Coding> security)
Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
security- Security Labels applied to this resource- Returns:
- A reference to this Builder instance
-
tag
public Meta.Builder tag(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.Adds new element(s) to the existing list
- Parameters:
tag- Tags applied to this resource- Returns:
- A reference to this Builder instance
-
tag
public Meta.Builder tag(Collection<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.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
tag- Tags applied to this resource- Returns:
- A reference to this Builder instance
-
build
public Meta build()
Build theMeta- Specified by:
buildin interfaceBuilder<Element>- Specified by:
buildin classElement.Builder- Returns:
- An immutable object of type
Meta - Throws:
IllegalStateException- if the current state cannot be built into a valid Meta per the base specification
-
from
protected Meta.Builder from(Meta meta)
-
-