pub struct ImplementationGuideDefinitionResourceBuilder { /* private fields */ }
Expand description
Builder for ImplementationGuideDefinitionResource
.
Implementations§
Source§impl ImplementationGuideDefinitionResourceBuilder
impl ImplementationGuideDefinitionResourceBuilder
Sourcepub fn id(self, value: String) -> ImplementationGuideDefinitionResourceBuilder
pub fn id(self, value: String) -> ImplementationGuideDefinitionResourceBuilder
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>,
) -> ImplementationGuideDefinitionResourceBuilder
pub fn extension( self, value: Vec<Extension>, ) -> ImplementationGuideDefinitionResourceBuilder
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 modifier_extension(
self,
value: Vec<Extension>,
) -> ImplementationGuideDefinitionResourceBuilder
pub fn modifier_extension( self, value: Vec<Extension>, ) -> ImplementationGuideDefinitionResourceBuilder
Extensions that cannot be ignored even if unrecognized
May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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 reference(
self,
value: Reference,
) -> ImplementationGuideDefinitionResourceBuilder
pub fn reference( self, value: Reference, ) -> ImplementationGuideDefinitionResourceBuilder
Location of the resource
Where this resource is found.
Usually this is a relative URL that locates the resource within the implementation guide. If you authoring an implementation guide, and will publish it using the FHIR publication tooling, use a URI that may point to a resource, or to one of various alternative representations (e.g. spreadsheet). The tooling will convert this when it publishes it.
Sourcepub fn reference_ext(
self,
value: FieldExtension,
) -> ImplementationGuideDefinitionResourceBuilder
pub fn reference_ext( self, value: FieldExtension, ) -> ImplementationGuideDefinitionResourceBuilder
Extension field.
Sourcepub fn fhir_version(
self,
value: Vec<Option<FHIRVersion>>,
) -> ImplementationGuideDefinitionResourceBuilder
pub fn fhir_version( self, value: Vec<Option<FHIRVersion>>, ) -> ImplementationGuideDefinitionResourceBuilder
FHIRVersion; Versions this applies to (if different to IG)
Indicates the FHIR Version(s) this artifact is intended to apply to. If no versions are specified, the resource is assumed to apply to all the versions stated in ImplementationGuide.fhirVersion.
The resource SHALL be valid against all the versions it is specified to apply to. If the resource referred to is a StructureDefinition, the fhirVersion stated in the StructureDefinition cannot disagree with the version specified here; the specified versions SHALL include the version specified by the StructureDefinition, and may include additional versions using the http://hl7.org/fhir/StructureDefinition/structuredefinition-applicable-version extension.
Sourcepub fn fhir_version_ext(
self,
value: Vec<Option<FieldExtension>>,
) -> ImplementationGuideDefinitionResourceBuilder
pub fn fhir_version_ext( self, value: Vec<Option<FieldExtension>>, ) -> ImplementationGuideDefinitionResourceBuilder
Extension field.
Sourcepub fn name(self, value: String) -> ImplementationGuideDefinitionResourceBuilder
pub fn name(self, value: String) -> ImplementationGuideDefinitionResourceBuilder
Human readable name for the resource
A human assigned name for the resource. All resources SHOULD have a name, but the name may be extracted from the resource (e.g. ValueSet.name).
Sourcepub fn name_ext(
self,
value: FieldExtension,
) -> ImplementationGuideDefinitionResourceBuilder
pub fn name_ext( self, value: FieldExtension, ) -> ImplementationGuideDefinitionResourceBuilder
Extension field.
Sourcepub fn description(
self,
value: String,
) -> ImplementationGuideDefinitionResourceBuilder
pub fn description( self, value: String, ) -> ImplementationGuideDefinitionResourceBuilder
Reason why included in guide
A description of the reason that a resource has been included in the implementation guide.
This is mostly used with examples to explain why it is present (though they can have extensive comments in the examples).
Sourcepub fn description_ext(
self,
value: FieldExtension,
) -> ImplementationGuideDefinitionResourceBuilder
pub fn description_ext( self, value: FieldExtension, ) -> ImplementationGuideDefinitionResourceBuilder
Extension field.
Sourcepub fn is_example(
self,
value: bool,
) -> ImplementationGuideDefinitionResourceBuilder
pub fn is_example( self, value: bool, ) -> ImplementationGuideDefinitionResourceBuilder
Is this an example
If true, indicates the resource is an example instance.
Sourcepub fn is_example_ext(
self,
value: FieldExtension,
) -> ImplementationGuideDefinitionResourceBuilder
pub fn is_example_ext( self, value: FieldExtension, ) -> ImplementationGuideDefinitionResourceBuilder
Extension field.
Sourcepub fn profile(
self,
value: Vec<Option<String>>,
) -> ImplementationGuideDefinitionResourceBuilder
pub fn profile( self, value: Vec<Option<String>>, ) -> ImplementationGuideDefinitionResourceBuilder
Profile(s) this is an example of
If present, indicates profile(s) the instance is valid against.
Examples:
- StructureDefinition -> Any
- ValueSet -> expansion
- OperationDefinition -> Parameters
- Questionnaire -> QuestionnaireResponse.
Sourcepub fn profile_ext(
self,
value: Vec<Option<FieldExtension>>,
) -> ImplementationGuideDefinitionResourceBuilder
pub fn profile_ext( self, value: Vec<Option<FieldExtension>>, ) -> ImplementationGuideDefinitionResourceBuilder
Extension field.
Sourcepub fn grouping_id(
self,
value: String,
) -> ImplementationGuideDefinitionResourceBuilder
pub fn grouping_id( self, value: String, ) -> ImplementationGuideDefinitionResourceBuilder
Grouping this is part of
Reference to the id of the grouping this resource appears in.
This must correspond to a group.id element within this implementation guide.
Sourcepub fn grouping_id_ext(
self,
value: FieldExtension,
) -> ImplementationGuideDefinitionResourceBuilder
pub fn grouping_id_ext( self, value: FieldExtension, ) -> ImplementationGuideDefinitionResourceBuilder
Extension field.
Sourcepub fn build(
self,
) -> Result<ImplementationGuideDefinitionResource, BuilderError>
pub fn build( self, ) -> Result<ImplementationGuideDefinitionResource, BuilderError>
Builds a new ImplementationGuideDefinitionResource
.
§Errors
If a required field has not been initialized.