pub struct CodeableConceptBuilder { /* private fields */ }
Expand description
Builder for CodeableConceptInner
.
Implementations§
Source§impl CodeableConceptBuilder
impl CodeableConceptBuilder
Sourcepub fn id(self, value: String) -> CodeableConceptBuilder
pub fn id(self, value: String) -> CodeableConceptBuilder
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>) -> CodeableConceptBuilder
pub fn extension(self, value: Vec<Extension>) -> CodeableConceptBuilder
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 coding(self, value: Vec<Option<Coding>>) -> CodeableConceptBuilder
pub fn coding(self, value: Vec<Option<Coding>>) -> CodeableConceptBuilder
Code defined by a terminology system
A reference to a code defined by a terminology system.
Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.
Sourcepub fn coding_ext(
self,
value: Vec<Option<FieldExtension>>,
) -> CodeableConceptBuilder
pub fn coding_ext( self, value: Vec<Option<FieldExtension>>, ) -> CodeableConceptBuilder
Extension field.
Sourcepub fn text(self, value: String) -> CodeableConceptBuilder
pub fn text(self, value: String) -> CodeableConceptBuilder
Plain text representation of the concept
A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.
Very often the text is the same as a displayName of one of the codings.
Sourcepub fn text_ext(self, value: FieldExtension) -> CodeableConceptBuilder
pub fn text_ext(self, value: FieldExtension) -> CodeableConceptBuilder
Extension field.
Sourcepub fn build_inner(self) -> Result<CodeableConceptInner, BuilderError>
pub fn build_inner(self) -> Result<CodeableConceptInner, BuilderError>
Source§impl CodeableConceptBuilder
impl CodeableConceptBuilder
Sourcepub fn build(self) -> Result<CodeableConcept, BuilderError>
pub fn build(self) -> Result<CodeableConcept, BuilderError>
Finalize building CodeableConcept.