#[non_exhaustive]pub enum Coded {
Code {
system: String,
code: String,
version: Option<String>,
display: Option<String>,
},
Coding(Concept),
CodeableConcept {
coding: Vec<Concept>,
text: Option<String>,
},
}Expand description
The coded value ValueSet/$validate-code tests, in the three input forms
the operation declares
(https://hl7.org/fhir/R4/valueset-operation-validate-code.html).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Code
The code, system, systemVersion and display parameters. “If a
code is provided, a system or a context must be provided”, so the
system is mandatory here.
Fields
Coding(Concept)
The coding parameter.
CodeableConcept
The codeableConcept parameter: “the server returns true if one of the
coding values is in the value set”.
Trait Implementations§
impl Eq for Coded
Source§impl Ord for Coded
impl Ord for Coded
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Coded
impl PartialOrd for Coded
impl StructuralPartialEq for Coded
Auto Trait Implementations§
impl Freeze for Coded
impl RefUnwindSafe for Coded
impl Send for Coded
impl Sync for Coded
impl Unpin for Coded
impl UnsafeUnpin for Coded
impl UnwindSafe for Coded
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.