pub struct ExtensionBuilder { /* private fields */ }
Expand description
Builder for ExtensionInner
.
Implementations§
Source§impl ExtensionBuilder
impl ExtensionBuilder
Sourcepub fn id(self, value: String) -> ExtensionBuilder
pub fn id(self, value: String) -> ExtensionBuilder
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>) -> ExtensionBuilder
pub fn extension(self, value: Vec<Extension>) -> ExtensionBuilder
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 url(self, value: String) -> ExtensionBuilder
pub fn url(self, value: String) -> ExtensionBuilder
identifies the meaning of the extension
Source of the definition for the extension code - a logical name or a URL.
The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.
Sourcepub fn value(self, value: ExtensionValue) -> ExtensionBuilder
pub fn value(self, value: ExtensionValue) -> ExtensionBuilder
Value of extension
Value of extension - must be one of a constrained set of the data types (see Extensibility for a list).
Sourcepub fn value_ext(self, value: ExtensionValueExtension) -> ExtensionBuilder
pub fn value_ext(self, value: ExtensionValueExtension) -> ExtensionBuilder
Extension field.
Sourcepub fn build_inner(self) -> Result<ExtensionInner, BuilderError>
pub fn build_inner(self) -> Result<ExtensionInner, BuilderError>
Source§impl ExtensionBuilder
impl ExtensionBuilder
Sourcepub fn build(self) -> Result<Extension, BuilderError>
pub fn build(self) -> Result<Extension, BuilderError>
Finalize building Extension.