pub struct ElementDefinitionBaseBuilder { /* private fields */ }
Expand description
Builder for ElementDefinitionBase
.
Implementations§
Source§impl ElementDefinitionBaseBuilder
impl ElementDefinitionBaseBuilder
Sourcepub fn id(self, value: String) -> Self
pub fn id(self, value: String) -> Self
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>) -> Self
pub fn extension(self, value: Vec<Extension>) -> Self
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 path(self, value: String) -> Self
pub fn path(self, value: String) -> Self
Path that identifies the base element
The Path that identifies the base element - this matches the ElementDefinition.path for that element. Across FHIR, there is only one base definition of any element - that is, an element definition on a StructureDefinition without a StructureDefinition.base.
Sourcepub fn path_ext(self, value: FieldExtension) -> Self
pub fn path_ext(self, value: FieldExtension) -> Self
Extension field.
Sourcepub fn min(self, value: u32) -> Self
pub fn min(self, value: u32) -> Self
Min cardinality of the base element
Minimum cardinality of the base element identified by the path.
This is provided for consistency with max, and may affect code generation of mandatory elements of the base resource are generated differently (some reference implementations have done this).
Sourcepub fn min_ext(self, value: FieldExtension) -> Self
pub fn min_ext(self, value: FieldExtension) -> Self
Extension field.
Sourcepub fn max(self, value: String) -> Self
pub fn max(self, value: String) -> Self
Max cardinality of the base element
Maximum cardinality of the base element identified by the path.
This is provided to code generation, since the serialization representation in JSON differs depending on whether the base element has max > 1. Also, some forms of code generation may differ.
Sourcepub fn max_ext(self, value: FieldExtension) -> Self
pub fn max_ext(self, value: FieldExtension) -> Self
Extension field.