pub struct DataRequirement {
    pub id: Option<Id>,
    pub extension: Option<Vec<Extension>>,
    pub type_: Option<CodeDt>,
    pub profile: Option<Vec<CanonicalDt>>,
    pub subject: Option<Reference>,
    pub must_support: Option<Vec<StringDt>>,
    pub code_filter: Option<Vec<DataRequirementCodeFilterElement>>,
    pub date_filter: Option<Vec<DataRequirementDateFilterElement>>,
    pub value_filter: Option<Vec<DataRequirementValueFilterElement>>,
    pub limit: Option<PositiveIntDt>,
    pub sort: Option<Vec<DataRequirementSortElement>>,
}

Fields§

§id: Option<Id>

Unique id for inter-element referencing

§extension: Option<Vec<Extension>>

Additional content defined by implementations

§type_: Option<CodeDt>

The type of the required data

§profile: Option<Vec<CanonicalDt>>

The profile of the required data

§subject: Option<Reference>

E.g. Patient, Practitioner, RelatedPerson, Organization, Location, Device

§must_support: Option<Vec<StringDt>>

Indicates specific structure elements that are referenced by the knowledge module

§code_filter: Option<Vec<DataRequirementCodeFilterElement>>

What codes are expected

§date_filter: Option<Vec<DataRequirementDateFilterElement>>

What dates/date ranges are expected

§value_filter: Option<Vec<DataRequirementValueFilterElement>>

What values are expected

§limit: Option<PositiveIntDt>

Number of results

§sort: Option<Vec<DataRequirementSortElement>>

Order of the results

Implementations§

source§

impl DataRequirement

source

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

source

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

source

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

source

pub fn set_subject(self, v: Reference) -> Self

source

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

source

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

source

pub fn set_code_filter(self, v: Vec<DataRequirementCodeFilterElement>) -> Self

source

pub fn add_code_filter(self, v: DataRequirementCodeFilterElement) -> Self

source

pub fn set_date_filter(self, v: Vec<DataRequirementDateFilterElement>) -> Self

source

pub fn add_date_filter(self, v: DataRequirementDateFilterElement) -> Self

source

pub fn set_value_filter(self, v: Vec<DataRequirementValueFilterElement>) -> Self

source

pub fn add_value_filter(self, v: DataRequirementValueFilterElement) -> Self

source

pub fn set_limit<T: Into<PositiveIntDt>>(self, v: T) -> Self

source

pub fn set_sort(self, v: Vec<DataRequirementSortElement>) -> Self

source

pub fn add_sort(self, v: DataRequirementSortElement) -> Self

Trait Implementations§

source§

impl Clone for DataRequirement

source§

fn clone(&self) -> DataRequirement

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 DataRequirement

source§

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

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

impl Default for DataRequirement

source§

fn default() -> DataRequirement

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

impl<'de> Deserialize<'de> for DataRequirement

source§

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

source§

impl Element for DataRequirement

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 DataRequirement

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