pub struct UsageContextBuilder { /* private fields */ }
Expand description
Builder for UsageContextInner
.
Implementations§
Source§impl UsageContextBuilder
impl UsageContextBuilder
Sourcepub fn id(self, value: String) -> UsageContextBuilder
pub fn id(self, value: String) -> UsageContextBuilder
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>) -> UsageContextBuilder
pub fn extension(self, value: Vec<Extension>) -> UsageContextBuilder
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 code(self, value: Coding) -> UsageContextBuilder
pub fn code(self, value: Coding) -> UsageContextBuilder
UsageContextType; Type of context being specified
A code that identifies the type of context being specified by this usage context.
Sourcepub fn code_ext(self, value: FieldExtension) -> UsageContextBuilder
pub fn code_ext(self, value: FieldExtension) -> UsageContextBuilder
Extension field.
Sourcepub fn value(self, value: UsageContextValue) -> UsageContextBuilder
pub fn value(self, value: UsageContextValue) -> UsageContextBuilder
Value that defines the context
A value that defines the context specified in this context of use. The interpretation of the value is defined by the code.
Sourcepub fn value_ext(self, value: UsageContextValueExtension) -> UsageContextBuilder
pub fn value_ext(self, value: UsageContextValueExtension) -> UsageContextBuilder
Extension field.
Sourcepub fn build_inner(self) -> Result<UsageContextInner, BuilderError>
pub fn build_inner(self) -> Result<UsageContextInner, BuilderError>
Source§impl UsageContextBuilder
impl UsageContextBuilder
Sourcepub fn build(self) -> Result<UsageContext, BuilderError>
pub fn build(self) -> Result<UsageContext, BuilderError>
Finalize building UsageContext.