pub struct HumanNameBuilder { /* private fields */ }Expand description
Builder for HumanNameInner.
Implementations§
Source§impl HumanNameBuilder
impl HumanNameBuilder
Sourcepub fn id(self, value: String) -> HumanNameBuilder
pub fn id(self, value: String) -> HumanNameBuilder
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>) -> HumanNameBuilder
pub fn extension(self, value: Vec<Extension>) -> HumanNameBuilder
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 use(self, value: NameUse) -> HumanNameBuilder
pub fn use(self, value: NameUse) -> HumanNameBuilder
NameUse; usual | official | temp | nickname | anonymous | old | maiden
Identifies the purpose for this name.
Applications can assume that a name is current unless it explicitly says that it is temporary or old.
Sourcepub fn use_ext(self, value: FieldExtension) -> HumanNameBuilder
pub fn use_ext(self, value: FieldExtension) -> HumanNameBuilder
Extension field.
Sourcepub fn text(self, value: String) -> HumanNameBuilder
pub fn text(self, value: String) -> HumanNameBuilder
Text representation of the full name
Specifies the entire name as it should be displayed e.g. on an application UI. This may be provided instead of or as well as the specific parts.
Can provide both a text representation and parts. Applications updating a name SHALL ensure that when both text and parts are present, no content is included in the text that isn’t found in a part.
Sourcepub fn text_ext(self, value: FieldExtension) -> HumanNameBuilder
pub fn text_ext(self, value: FieldExtension) -> HumanNameBuilder
Extension field.
Sourcepub fn family(self, value: String) -> HumanNameBuilder
pub fn family(self, value: String) -> HumanNameBuilder
Family name (often called ‘Surname’)
The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father.
Family Name may be decomposed into specific parts using extensions (de, nl, es related cultures).
Sourcepub fn family_ext(self, value: FieldExtension) -> HumanNameBuilder
pub fn family_ext(self, value: FieldExtension) -> HumanNameBuilder
Extension field.
Sourcepub fn given(self, value: Vec<Option<String>>) -> HumanNameBuilder
pub fn given(self, value: Vec<Option<String>>) -> HumanNameBuilder
Given names (not always ‘first’). Includes middle names
Given name.
If only initials are recorded, they may be used in place of the full name parts. Initials may be separated into multiple given names but often aren’t due to paractical limitations. This element is not called “first name” since given names do not always come first.
Sourcepub fn given_ext(self, value: Vec<Option<FieldExtension>>) -> HumanNameBuilder
pub fn given_ext(self, value: Vec<Option<FieldExtension>>) -> HumanNameBuilder
Extension field.
Sourcepub fn prefix(self, value: Vec<Option<String>>) -> HumanNameBuilder
pub fn prefix(self, value: Vec<Option<String>>) -> HumanNameBuilder
Parts that come before the name
Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name.
Sourcepub fn prefix_ext(self, value: Vec<Option<FieldExtension>>) -> HumanNameBuilder
pub fn prefix_ext(self, value: Vec<Option<FieldExtension>>) -> HumanNameBuilder
Extension field.
Sourcepub fn suffix(self, value: Vec<Option<String>>) -> HumanNameBuilder
pub fn suffix(self, value: Vec<Option<String>>) -> HumanNameBuilder
Parts that come after the name
Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name.
Sourcepub fn suffix_ext(self, value: Vec<Option<FieldExtension>>) -> HumanNameBuilder
pub fn suffix_ext(self, value: Vec<Option<FieldExtension>>) -> HumanNameBuilder
Extension field.
Sourcepub fn period(self, value: Period) -> HumanNameBuilder
pub fn period(self, value: Period) -> HumanNameBuilder
Time period when name was/is in use
Indicates the period of time when this name was valid for the named person.
Sourcepub fn period_ext(self, value: FieldExtension) -> HumanNameBuilder
pub fn period_ext(self, value: FieldExtension) -> HumanNameBuilder
Extension field.
Sourcepub fn build_inner(self) -> Result<HumanNameInner, BuilderError>
pub fn build_inner(self) -> Result<HumanNameInner, BuilderError>
Source§impl HumanNameBuilder
impl HumanNameBuilder
Sourcepub fn build(self) -> Result<HumanName, BuilderError>
pub fn build(self) -> Result<HumanName, BuilderError>
Finalize building HumanName.