pub struct AnnotationBuilder { /* private fields */ }
Expand description
Builder for AnnotationInner
.
Implementations§
Source§impl AnnotationBuilder
impl AnnotationBuilder
Sourcepub fn id(self, value: String) -> AnnotationBuilder
pub fn id(self, value: String) -> AnnotationBuilder
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>) -> AnnotationBuilder
pub fn extension(self, value: Vec<Extension>) -> AnnotationBuilder
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.
Individual responsible for the annotation
The individual responsible for making the annotation.
Organization is used when there’s no need for specific attribution as to who made the comment.
Extension field.
Sourcepub fn time(self, value: DateTime) -> AnnotationBuilder
pub fn time(self, value: DateTime) -> AnnotationBuilder
When the annotation was made
Indicates when this particular annotation was made.
Sourcepub fn time_ext(self, value: FieldExtension) -> AnnotationBuilder
pub fn time_ext(self, value: FieldExtension) -> AnnotationBuilder
Extension field.
Sourcepub fn text(self, value: String) -> AnnotationBuilder
pub fn text(self, value: String) -> AnnotationBuilder
The annotation - text content (as markdown)
The text of the annotation in markdown format.
Sourcepub fn text_ext(self, value: FieldExtension) -> AnnotationBuilder
pub fn text_ext(self, value: FieldExtension) -> AnnotationBuilder
Extension field.
Sourcepub fn build_inner(self) -> Result<AnnotationInner, BuilderError>
pub fn build_inner(self) -> Result<AnnotationInner, BuilderError>
Source§impl AnnotationBuilder
impl AnnotationBuilder
Sourcepub fn build(self) -> Result<Annotation, BuilderError>
pub fn build(self) -> Result<Annotation, BuilderError>
Finalize building Annotation.