pub struct ElementDefinitionBase {
pub id: Option<String>,
pub extension: Vec<Extension>,
pub path: String,
pub path_ext: Option<FieldExtension>,
pub min: u32,
pub min_ext: Option<FieldExtension>,
pub max: String,
pub max_ext: Option<FieldExtension>,
}
Expand description
Sub-fields of the base field in ElementDefinition
Fields§
§id: Option<String>
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.
extension: Vec<Extension>
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.
path: String
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.
path_ext: Option<FieldExtension>
Extension field.
min: u32
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).
min_ext: Option<FieldExtension>
Extension field.
max: String
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.
max_ext: Option<FieldExtension>
Extension field.
Implementations§
Source§impl ElementDefinitionBase
impl ElementDefinitionBase
Sourcepub fn builder() -> ElementDefinitionBaseBuilder
pub fn builder() -> ElementDefinitionBaseBuilder
Start building a new instance
Trait Implementations§
Source§impl Clone for ElementDefinitionBase
impl Clone for ElementDefinitionBase
Source§fn clone(&self) -> ElementDefinitionBase
fn clone(&self) -> ElementDefinitionBase
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more