Struct fhir_rs::datatype::complex::ElementDefinition
source · pub struct ElementDefinition {Show 32 fields
pub id: Option<Id>,
pub extension: Option<Vec<Extension>>,
pub modifier_extension: Option<Vec<Extension>>,
pub path: Option<StringDt>,
pub representation: Option<Vec<CodeDt>>,
pub slice_name: Option<StringDt>,
pub slice_is_constraining: Option<BooleanDt>,
pub label: Option<StringDt>,
pub code: Option<Vec<Coding>>,
pub short: Option<StringDt>,
pub definition: Option<MarkdownDt>,
pub comment: Option<MarkdownDt>,
pub requirements: Option<MarkdownDt>,
pub alias: Option<Vec<StringDt>>,
pub min: Option<UnsignedIntDt>,
pub max: Option<StringDt>,
pub content_reference: Option<UriDt>,
pub default_value: Option<Meta>,
pub meaning_when_missing: Option<MarkdownDt>,
pub order_meaning: Option<StringDt>,
pub fixed: Option<Meta>,
pub pattern: Option<Meta>,
pub min_value: Option<Quantity>,
pub max_value: Option<Quantity>,
pub max_length: Option<IntegerDt>,
pub condition: Option<Vec<IdDt>>,
pub must_have_value: Option<BooleanDt>,
pub value_alternatives: Option<Vec<CanonicalDt>>,
pub must_support: Option<BooleanDt>,
pub is_modifier: Option<BooleanDt>,
pub is_modifier_reason: Option<StringDt>,
pub is_summary: Option<BooleanDt>,
}
Fields§
§id: Option<Id>
Unique id for inter-element referencing
extension: Option<Vec<Extension>>
Additional content defined by implementations
modifier_extension: Option<Vec<Extension>>
Extensions that cannot be ignored even if unrecognized
path: Option<StringDt>
Path of the element in the hierarchy of elements
representation: Option<Vec<CodeDt>>
xmlAttr | xmlText | typeAttr | cdaText | xhtml
slice_name: Option<StringDt>
Name for this particular element (in a set of slices)
slice_is_constraining: Option<BooleanDt>
If this slice definition constrains an inherited slice definition (or not)
label: Option<StringDt>
Name for element to display with or prompt for element
code: Option<Vec<Coding>>
Corresponding codes in terminologies
short: Option<StringDt>
Concise definition for space-constrained presentation
definition: Option<MarkdownDt>
Full formal definition as narrative text
comment: Option<MarkdownDt>
Comments about the use of this element
requirements: Option<MarkdownDt>
Why this resource has been created
alias: Option<Vec<StringDt>>
Other names
min: Option<UnsignedIntDt>
Minimum Cardinality
max: Option<StringDt>
Maximum Cardinality (a number or *)
content_reference: Option<UriDt>
Reference to definition of content for the element
default_value: Option<Meta>
Specified value if missing from instance
meaning_when_missing: Option<MarkdownDt>
Implicit meaning when this element is missing
order_meaning: Option<StringDt>
What the order of the elements means
fixed: Option<Meta>
Value must be exactly this
pattern: Option<Meta>
Value must have at least these property values
min_value: Option<Quantity>
Minimum Allowed Value (for some types)
max_value: Option<Quantity>
Maximum Allowed Value (for some types)
max_length: Option<IntegerDt>
Max length for string type data
condition: Option<Vec<IdDt>>
Reference to invariant about presence
must_have_value: Option<BooleanDt>
For primitives, that a value must be present - not replaced by an extension
value_alternatives: Option<Vec<CanonicalDt>>
Extensions that are allowed to replace a primitive value
must_support: Option<BooleanDt>
If the element must be supported (discouraged - see obligations)
is_modifier: Option<BooleanDt>
If this modifies the meaning of other elements
is_modifier_reason: Option<StringDt>
Reason that this element is marked as a modifier
is_summary: Option<BooleanDt>
Include when _summary = true?
Implementations§
source§impl ElementDefinition
impl ElementDefinition
pub fn set_modifier_extension(self, v: Vec<Extension>) -> Self
pub fn add_modifier_extension(self, v: Extension) -> Self
pub fn set_path<T: Into<StringDt>>(self, v: T) -> Self
pub fn set_representation(self, v: Vec<CodeDt>) -> Self
pub fn add_representation<T: Into<CodeDt>>(self, v: T) -> Self
pub fn set_slice_name<T: Into<StringDt>>(self, v: T) -> Self
pub fn set_slice_is_constraining<T: Into<BooleanDt>>(self, v: T) -> Self
pub fn set_label<T: Into<StringDt>>(self, v: T) -> Self
pub fn set_code(self, v: Vec<Coding>) -> Self
pub fn add_code(self, v: Coding) -> Self
pub fn set_short<T: Into<StringDt>>(self, v: T) -> Self
pub fn set_definition<T: Into<MarkdownDt>>(self, v: T) -> Self
pub fn set_comment<T: Into<MarkdownDt>>(self, v: T) -> Self
pub fn set_requirements<T: Into<MarkdownDt>>(self, v: T) -> Self
pub fn set_alias(self, v: Vec<StringDt>) -> Self
pub fn add_alias<T: Into<StringDt>>(self, v: T) -> Self
pub fn set_min<T: Into<UnsignedIntDt>>(self, v: T) -> Self
pub fn set_max<T: Into<StringDt>>(self, v: T) -> Self
pub fn set_content_reference<T: Into<UriDt>>(self, v: T) -> Self
pub fn set_default_value(self, v: Meta) -> Self
pub fn set_meaning_when_missing<T: Into<MarkdownDt>>(self, v: T) -> Self
pub fn set_order_meaning<T: Into<StringDt>>(self, v: T) -> Self
pub fn set_fixed(self, v: Meta) -> Self
pub fn set_pattern(self, v: Meta) -> Self
pub fn set_min_value(self, v: Quantity) -> Self
pub fn set_max_value(self, v: Quantity) -> Self
pub fn set_max_length<T: Into<IntegerDt>>(self, v: T) -> Self
pub fn set_condition(self, v: Vec<IdDt>) -> Self
pub fn add_condition<T: Into<IdDt>>(self, v: T) -> Self
pub fn set_must_have_value<T: Into<BooleanDt>>(self, v: T) -> Self
pub fn set_value_alternatives(self, v: Vec<CanonicalDt>) -> Self
pub fn add_value_alternatives<T: Into<CanonicalDt>>(self, v: T) -> Self
pub fn set_must_support<T: Into<BooleanDt>>(self, v: T) -> Self
pub fn set_is_modifier<T: Into<BooleanDt>>(self, v: T) -> Self
pub fn set_is_modifier_reason<T: Into<StringDt>>(self, v: T) -> Self
pub fn set_is_summary<T: Into<BooleanDt>>(self, v: T) -> Self
Trait Implementations§
source§impl Clone for ElementDefinition
impl Clone for ElementDefinition
source§fn clone(&self) -> ElementDefinition
fn clone(&self) -> ElementDefinition
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more