pub enum UsageContextValue {
CodeableConcept(Box<CodeableConcept>),
Quantity(Box<Quantity>),
Range(Box<Range>),
Reference(Box<Reference>),
Canonical(Canonical),
}Expand description
The `value[x]` choice of `UsageContext`.
A value or set of possible values that defines the context specified in this context of use. The interpretation of the value is defined by the code. If a ‘range’ is specified, then the context means that the artifact applies for any value of the context that falls within range. If a ‘valueset’ is specified, then the context means that the artifact applies if a code matches the value set.
Variants§
CodeableConcept(Box<CodeableConcept>)
The CodeableConcept form.
Quantity(Box<Quantity>)
The Quantity form.
Range(Box<Range>)
The Range form.
Reference(Box<Reference>)
The Reference form.
Canonical(Canonical)
The canonical form.
Implementations§
Source§impl UsageContextValue
impl UsageContextValue
Sourcepub fn to_json_parts(
&self,
) -> Result<(&'static str, Option<Value>, Option<Value>), EncodeError>
pub fn to_json_parts( &self, ) -> Result<(&'static str, Option<Value>, Option<Value>), EncodeError>
The key suffix, the value part, and the _name part of this form.
§Errors
Returns super::super::codec::EncodeError when a held value has no JSON form.
Sourcepub fn from_json_parts(
suffix: &str,
value: Option<&Value>,
element: Option<&Value>,
path: &mut Path,
) -> Result<Self, DecodeError>
pub fn from_json_parts( suffix: &str, value: Option<&Value>, element: Option<&Value>, path: &mut Path, ) -> Result<Self, DecodeError>
Decodes the form named by suffix from its value and _name parts.
§Errors
Returns super::super::codec::DecodeError for an unknown suffix or a malformed part.