pub struct PractitionerBuilder { /* private fields */ }
Expand description
Builder for PractitionerInner
.
Implementations§
Source§impl PractitionerBuilder
impl PractitionerBuilder
Sourcepub fn id(self, value: String) -> PractitionerBuilder
pub fn id(self, value: String) -> PractitionerBuilder
Logical id of this artifact
The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
Within the context of the FHIR RESTful interactions, the resource has an id except for cases like the create and conditional update. Otherwise, the use of the resouce id depends on the given use case.
Sourcepub fn meta(self, value: Meta) -> PractitionerBuilder
pub fn meta(self, value: Meta) -> PractitionerBuilder
Metadata about the resource
The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.
Sourcepub fn implicit_rules(self, value: String) -> PractitionerBuilder
pub fn implicit_rules(self, value: String) -> PractitionerBuilder
A set of rules under which this content was created
A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.
Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of its narrative along with other profiles, value sets, etc.
Sourcepub fn language(self, value: String) -> PractitionerBuilder
pub fn language(self, value: String) -> PractitionerBuilder
Language; Language of the resource content
The base language in which the resource is written.
Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).
Sourcepub fn text(self, value: Narrative) -> PractitionerBuilder
pub fn text(self, value: Narrative) -> PractitionerBuilder
Text summary of the resource, for human interpretation
A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it “clinically safe” for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.
Contained resources do not have a narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a “text blob” or where text is additionally entered raw or narrated and encoded information is added later.
Sourcepub fn contained(self, value: Vec<Resource>) -> PractitionerBuilder
pub fn contained(self, value: Vec<Resource>) -> PractitionerBuilder
Contained, inline Resources
These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, nor can they have their own independent transaction scope. This is allowed to be a Parameters resource if and only if it is referenced by a resource that provides context/meaning.
This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags in their meta elements, but SHALL NOT have security labels.
Sourcepub fn extension(self, value: Vec<Extension>) -> PractitionerBuilder
pub fn extension(self, value: Vec<Extension>) -> PractitionerBuilder
Additional content defined by implementations
May be used to represent additional information that is not part of the basic definition of the resource. 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 modifier_extension(self, value: Vec<Extension>) -> PractitionerBuilder
pub fn modifier_extension(self, value: Vec<Extension>) -> PractitionerBuilder
Extensions that cannot be ignored
May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element’s descendants. Usually modifier elements provide negation or qualification. 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 is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
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 identifier(self, value: Vec<Option<Identifier>>) -> PractitionerBuilder
pub fn identifier(self, value: Vec<Option<Identifier>>) -> PractitionerBuilder
An identifier for the person as this agent
An identifier that applies to this person in this role.
Sourcepub fn identifier_ext(
self,
value: Vec<Option<FieldExtension>>,
) -> PractitionerBuilder
pub fn identifier_ext( self, value: Vec<Option<FieldExtension>>, ) -> PractitionerBuilder
Extension field.
Sourcepub fn active(self, value: bool) -> PractitionerBuilder
pub fn active(self, value: bool) -> PractitionerBuilder
Whether this practitioner’s record is in active use
Whether this practitioner’s record is in active use.
If the practitioner is not in use by one organization, then it should mark the period on the PractitonerRole with an end date (even if they are active) as they may be active in another role.
Sourcepub fn active_ext(self, value: FieldExtension) -> PractitionerBuilder
pub fn active_ext(self, value: FieldExtension) -> PractitionerBuilder
Extension field.
Sourcepub fn name(self, value: Vec<Option<HumanName>>) -> PractitionerBuilder
pub fn name(self, value: Vec<Option<HumanName>>) -> PractitionerBuilder
The name(s) associated with the practitioner
The name(s) associated with the practitioner.
The selection of the use property should ensure that there is a single usual name specified, and others use the nickname (alias), old, or other values as appropriate.
In general, select the value to be used in the ResourceReference.display based on this:
- There is more than 1 name
- Use = usual
- Period is current to the date of the usage
- Use = official
- Other order as decided by internal business rules.
Sourcepub fn name_ext(self, value: Vec<Option<FieldExtension>>) -> PractitionerBuilder
pub fn name_ext(self, value: Vec<Option<FieldExtension>>) -> PractitionerBuilder
Extension field.
Sourcepub fn telecom(self, value: Vec<Option<ContactPoint>>) -> PractitionerBuilder
pub fn telecom(self, value: Vec<Option<ContactPoint>>) -> PractitionerBuilder
A contact detail for the practitioner (that apply to all roles)
A contact detail for the practitioner, e.g. a telephone number or an email address.
Person may have multiple ways to be contacted with different uses or applicable periods. May need to have options for contacting the person urgently and to help with identification. These typically will have home numbers, or mobile numbers that are not role specific.
Sourcepub fn telecom_ext(
self,
value: Vec<Option<FieldExtension>>,
) -> PractitionerBuilder
pub fn telecom_ext( self, value: Vec<Option<FieldExtension>>, ) -> PractitionerBuilder
Extension field.
Sourcepub fn gender(self, value: AdministrativeGender) -> PractitionerBuilder
pub fn gender(self, value: AdministrativeGender) -> PractitionerBuilder
AdministrativeGender; male | female | other | unknown
Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes.
Sourcepub fn gender_ext(self, value: FieldExtension) -> PractitionerBuilder
pub fn gender_ext(self, value: FieldExtension) -> PractitionerBuilder
Extension field.
Sourcepub fn birth_date(self, value: Date) -> PractitionerBuilder
pub fn birth_date(self, value: Date) -> PractitionerBuilder
The date on which the practitioner was born
The date of birth for the practitioner.
Sourcepub fn birth_date_ext(self, value: FieldExtension) -> PractitionerBuilder
pub fn birth_date_ext(self, value: FieldExtension) -> PractitionerBuilder
Extension field.
Sourcepub fn deceased(self, value: PractitionerDeceased) -> PractitionerBuilder
pub fn deceased(self, value: PractitionerDeceased) -> PractitionerBuilder
Indicates if the practitioner is deceased or not
Indicates if the practitioner is deceased or not.
If there’s no value in the instance, it means there is no statement on whether or not the practitioner is deceased. Most systems will interpret the absence of a value as a sign of the person being alive.
Sourcepub fn deceased_ext(
self,
value: PractitionerDeceasedExtension,
) -> PractitionerBuilder
pub fn deceased_ext( self, value: PractitionerDeceasedExtension, ) -> PractitionerBuilder
Extension field.
Sourcepub fn address(self, value: Vec<Option<Address>>) -> PractitionerBuilder
pub fn address(self, value: Vec<Option<Address>>) -> PractitionerBuilder
Address(es) of the practitioner that are not role specific (typically home address)
Address(es) of the practitioner that are not role specific (typically home address). Work addresses are not typically entered in this property as they are usually role dependent.
The PractitionerRole does not have an address value on it, as it is expected that the location property be used for this purpose (which has an address).
Sourcepub fn address_ext(
self,
value: Vec<Option<FieldExtension>>,
) -> PractitionerBuilder
pub fn address_ext( self, value: Vec<Option<FieldExtension>>, ) -> PractitionerBuilder
Extension field.
Sourcepub fn photo(self, value: Vec<Option<Attachment>>) -> PractitionerBuilder
pub fn photo(self, value: Vec<Option<Attachment>>) -> PractitionerBuilder
Image of the person
Image of the person.
Sourcepub fn photo_ext(
self,
value: Vec<Option<FieldExtension>>,
) -> PractitionerBuilder
pub fn photo_ext( self, value: Vec<Option<FieldExtension>>, ) -> PractitionerBuilder
Extension field.
Sourcepub fn qualification(
self,
value: Vec<Option<PractitionerQualification>>,
) -> PractitionerBuilder
pub fn qualification( self, value: Vec<Option<PractitionerQualification>>, ) -> PractitionerBuilder
Qualifications, certifications, accreditations, licenses, training, etc. pertaining to the provision of care
The official qualifications, certifications, accreditations, training, licenses (and other types of educations/skills/capabilities) that authorize or otherwise pertain to the provision of care by the practitioner.
For example, a medical license issued by a medical board of licensure authorizing the practitioner to practice medicine within a certain locality.
The PractitionerRole.specialty defines the functional role that they are practicing at a given organization or location. Those specialties may or might not require a qualification, and are not defined on the practitioner.
Sourcepub fn qualification_ext(
self,
value: Vec<Option<FieldExtension>>,
) -> PractitionerBuilder
pub fn qualification_ext( self, value: Vec<Option<FieldExtension>>, ) -> PractitionerBuilder
Extension field.
Sourcepub fn communication(
self,
value: Vec<Option<PractitionerCommunication>>,
) -> PractitionerBuilder
pub fn communication( self, value: Vec<Option<PractitionerCommunication>>, ) -> PractitionerBuilder
A language which may be used to communicate with the practitioner
A language which may be used to communicate with the practitioner, often for correspondence/administrative purposes.
The PractitionerRole.communication
property should be used for publishing the languages that a practitioner is able to communicate with patients (on a per Organization/Role basis).
If no language is specified, this implies that the default local language is spoken. If you need to convey proficiency for multiple modes, then you need multiple Practitioner.Communication associations.
For animals, language is not a relevant field, and should be absent from the instance.
Sourcepub fn communication_ext(
self,
value: Vec<Option<FieldExtension>>,
) -> PractitionerBuilder
pub fn communication_ext( self, value: Vec<Option<FieldExtension>>, ) -> PractitionerBuilder
Extension field.
Sourcepub fn build_inner(self) -> Result<PractitionerInner, BuilderError>
pub fn build_inner(self) -> Result<PractitionerInner, BuilderError>
Source§impl PractitionerBuilder
impl PractitionerBuilder
Sourcepub fn build(self) -> Result<Practitioner, BuilderError>
pub fn build(self) -> Result<Practitioner, BuilderError>
Finalize building Practitioner.