pub struct ElementDefinitionType {
pub id: Option<String>,
pub extension: Vec<Extension>,
pub code: String,
pub code_ext: Option<FieldExtension>,
pub profile: Vec<Option<String>>,
pub profile_ext: Vec<Option<FieldExtension>>,
pub target_profile: Vec<Option<String>>,
pub target_profile_ext: Vec<Option<FieldExtension>>,
pub aggregation: Vec<Option<AggregationMode>>,
pub aggregation_ext: Vec<Option<FieldExtension>>,
pub versioning: Option<ReferenceVersionRules>,
pub versioning_ext: Option<FieldExtension>,
}
Expand description
Sub-fields of the type 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.
code: String
ElementDefinitionTypes; Data type or Resource (reference to definition)
URL of Data type or Resource that is a(or the) type used for this element. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition e.g. “string” is a reference to http://hl7.org/fhir/StructureDefinition/string. Absolute URLs are only allowed in logical models.
If the element is a reference to another resource, this element contains “Reference”, and the targetProfile element defines what resources can be referenced. The targetProfile may be a reference to the general definition of a resource (e.g. http://hl7.org/fhir/StructureDefinition/Patient).
code_ext: Option<FieldExtension>
Extension field.
profile: Vec<Option<String>>
Profiles (StructureDefinition or IG) - one must apply
Identifies a profile structure or implementation Guide that applies to the datatype this element refers to. If any profiles are specified, then the content must conform to at least one of them. The URL can be a local reference - to a contained StructureDefinition, or a reference to another StructureDefinition or Implementation Guide by a canonical URL. When an implementation guide is specified, the type SHALL conform to at least one profile defined in the implementation guide.
It is possible to profile backbone element (e.g. part of a resource), using the http://hl7.org/fhir/StructureDefinition/elementdefinition-profile-element extension.
profile_ext: Vec<Option<FieldExtension>>
Extension field.
target_profile: Vec<Option<String>>
Profile (StructureDefinition or IG) on the Reference/canonical target - one must apply
Used when the type is “Reference” or “canonical”, and identifies a profile structure or implementation Guide that applies to the target of the reference this element refers to. If any profiles are specified, then the content must conform to at least one of them. The URL can be a local reference - to a contained StructureDefinition, or a reference to another StructureDefinition or Implementation Guide by a canonical URL. When an implementation guide is specified, the target resource SHALL conform to at least one profile defined in the implementation guide.
target_profile_ext: Vec<Option<FieldExtension>>
Extension field.
aggregation: Vec<Option<AggregationMode>>
AggregationMode; contained | referenced | bundled - how aggregated
If the type is a reference to another resource, how the resource is or can be aggregated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle.
See Aggregation Rules for further clarification.
aggregation_ext: Vec<Option<FieldExtension>>
Extension field.
versioning: Option<ReferenceVersionRules>
ReferenceVersionRules; either | independent | specific
Whether this reference needs to be version specific or version independent, or whether either can be used.
The base specification never makes a rule as to which form is allowed, but implementation guides may do this. See Aggregation Rules for further clarification.
versioning_ext: Option<FieldExtension>
Extension field.
Implementations§
Source§impl ElementDefinitionType
impl ElementDefinitionType
Sourcepub fn builder() -> ElementDefinitionTypeBuilder
pub fn builder() -> ElementDefinitionTypeBuilder
Start building a new instance
Trait Implementations§
Source§impl Clone for ElementDefinitionType
impl Clone for ElementDefinitionType
Source§fn clone(&self) -> ElementDefinitionType
fn clone(&self) -> ElementDefinitionType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more