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

source

pub fn set_modifier_extension(self, v: Vec<Extension>) -> Self

source

pub fn add_modifier_extension(self, v: Extension) -> Self

source

pub fn set_path<T: Into<StringDt>>(self, v: T) -> Self

source

pub fn set_representation(self, v: Vec<CodeDt>) -> Self

source

pub fn add_representation<T: Into<CodeDt>>(self, v: T) -> Self

source

pub fn set_slice_name<T: Into<StringDt>>(self, v: T) -> Self

source

pub fn set_slice_is_constraining<T: Into<BooleanDt>>(self, v: T) -> Self

source

pub fn set_label<T: Into<StringDt>>(self, v: T) -> Self

source

pub fn set_code(self, v: Vec<Coding>) -> Self

source

pub fn add_code(self, v: Coding) -> Self

source

pub fn set_short<T: Into<StringDt>>(self, v: T) -> Self

source

pub fn set_definition<T: Into<MarkdownDt>>(self, v: T) -> Self

source

pub fn set_comment<T: Into<MarkdownDt>>(self, v: T) -> Self

source

pub fn set_requirements<T: Into<MarkdownDt>>(self, v: T) -> Self

source

pub fn set_alias(self, v: Vec<StringDt>) -> Self

source

pub fn add_alias<T: Into<StringDt>>(self, v: T) -> Self

source

pub fn set_min<T: Into<UnsignedIntDt>>(self, v: T) -> Self

source

pub fn set_max<T: Into<StringDt>>(self, v: T) -> Self

source

pub fn set_content_reference<T: Into<UriDt>>(self, v: T) -> Self

source

pub fn set_default_value(self, v: Meta) -> Self

source

pub fn set_meaning_when_missing<T: Into<MarkdownDt>>(self, v: T) -> Self

source

pub fn set_order_meaning<T: Into<StringDt>>(self, v: T) -> Self

source

pub fn set_fixed(self, v: Meta) -> Self

source

pub fn set_pattern(self, v: Meta) -> Self

source

pub fn set_min_value(self, v: Quantity) -> Self

source

pub fn set_max_value(self, v: Quantity) -> Self

source

pub fn set_max_length<T: Into<IntegerDt>>(self, v: T) -> Self

source

pub fn set_condition(self, v: Vec<IdDt>) -> Self

source

pub fn add_condition<T: Into<IdDt>>(self, v: T) -> Self

source

pub fn set_must_have_value<T: Into<BooleanDt>>(self, v: T) -> Self

source

pub fn set_value_alternatives(self, v: Vec<CanonicalDt>) -> Self

source

pub fn add_value_alternatives<T: Into<CanonicalDt>>(self, v: T) -> Self

source

pub fn set_must_support<T: Into<BooleanDt>>(self, v: T) -> Self

source

pub fn set_is_modifier<T: Into<BooleanDt>>(self, v: T) -> Self

source

pub fn set_is_modifier_reason<T: Into<StringDt>>(self, v: T) -> Self

source

pub fn set_is_summary<T: Into<BooleanDt>>(self, v: T) -> Self

Trait Implementations§

source§

impl Clone for ElementDefinition

source§

fn clone(&self) -> ElementDefinition

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ElementDefinition

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for ElementDefinition

source§

fn default() -> ElementDefinition

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for ElementDefinition

source§

fn deserialize<De>(deserializer: De) -> Result<Self>
where De: Deserializer<'de>,

source§

impl Element for ElementDefinition

source§

fn has_id(&self) -> bool

source§

fn id(&self) -> &Option<String>

source§

fn set_id<T: Into<String>>(self, id: T) -> Self

source§

fn has_extension(&self) -> bool

source§

fn extension(&self) -> &Option<Vec<Extension>>

source§

fn set_extension(self, ext: Vec<Extension>) -> Self

source§

fn add_extension(self, ext: Extension) -> Self

source§

impl Serialize for ElementDefinition

source§

fn serialize<Ser: Serializer>(&self, serializer: Ser) -> Result<()>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more