pub struct MetaBuilder { /* private fields */ }
Expand description
Builder for MetaInner
.
Implementations§
Source§impl MetaBuilder
impl MetaBuilder
Sourcepub fn id(self, value: String) -> MetaBuilder
pub fn id(self, value: String) -> MetaBuilder
Unique id for inter-element referencing
Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
Sourcepub fn extension(self, value: Vec<Extension>) -> MetaBuilder
pub fn extension(self, value: Vec<Extension>) -> MetaBuilder
Additional content defined by implementations
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 managable, 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.
There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
Sourcepub fn version_id(self, value: String) -> MetaBuilder
pub fn version_id(self, value: String) -> MetaBuilder
Version specific identifier
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.
The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes.
Sourcepub fn version_id_ext(self, value: FieldExtension) -> MetaBuilder
pub fn version_id_ext(self, value: FieldExtension) -> MetaBuilder
Extension field.
Sourcepub fn last_updated(self, value: Instant) -> MetaBuilder
pub fn last_updated(self, value: Instant) -> MetaBuilder
When the resource version last changed
When the resource last changed - e.g. when the version changed.
This element is generally omitted in instances submitted in a PUT or POST. Instead, it is populated in the response instance and when retrieving information using a GET. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a read interaction.
Sourcepub fn last_updated_ext(self, value: FieldExtension) -> MetaBuilder
pub fn last_updated_ext(self, value: FieldExtension) -> MetaBuilder
Extension field.
Sourcepub fn source(self, value: String) -> MetaBuilder
pub fn source(self, value: String) -> MetaBuilder
Identifies where the resource comes from
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.
The exact use of the source (and the possible implied Provenance.entity.role and agent.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. The source may correspond to Provenance.entity.what[x] or Provenance.agent.who[x], though it may be a more general or abstract reference.
This element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL.
Sourcepub fn source_ext(self, value: FieldExtension) -> MetaBuilder
pub fn source_ext(self, value: FieldExtension) -> MetaBuilder
Extension field.
Sourcepub fn profile(self, value: Vec<Option<String>>) -> MetaBuilder
pub fn profile(self, value: Vec<Option<String>>) -> MetaBuilder
Profiles this resource claims to conform to
A list of profiles (references to StructureDefinition resources) that this resource claims to conform to. The URL is a reference to StructureDefinition.url.
It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set.
Sourcepub fn profile_ext(self, value: Vec<Option<FieldExtension>>) -> MetaBuilder
pub fn profile_ext(self, value: Vec<Option<FieldExtension>>) -> MetaBuilder
Extension field.
Sourcepub fn security(self, value: Vec<Option<Coding>>) -> MetaBuilder
pub fn security(self, value: Vec<Option<Coding>>) -> MetaBuilder
SecurityLabels; Security Labels applied to this resource
Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure.
The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored.
Sourcepub fn security_ext(self, value: Vec<Option<FieldExtension>>) -> MetaBuilder
pub fn security_ext(self, value: Vec<Option<FieldExtension>>) -> MetaBuilder
Extension field.
Sourcepub fn tag(self, value: Vec<Option<Coding>>) -> MetaBuilder
pub fn tag(self, value: Vec<Option<Coding>>) -> MetaBuilder
Tags; Tags applied to this resource
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.
The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored.
Sourcepub fn tag_ext(self, value: Vec<Option<FieldExtension>>) -> MetaBuilder
pub fn tag_ext(self, value: Vec<Option<FieldExtension>>) -> MetaBuilder
Extension field.
Sourcepub fn build_inner(self) -> Result<MetaInner, BuilderError>
pub fn build_inner(self) -> Result<MetaInner, BuilderError>
Source§impl MetaBuilder
impl MetaBuilder
Sourcepub fn build(self) -> Result<Meta, BuilderError>
pub fn build(self) -> Result<Meta, BuilderError>
Finalize building Meta.