pub struct Observation {Show 32 fields
pub id: Option<String>,
pub meta: Option<Box<Meta>>,
pub implicitRules: Option<Box<FHIRUri>>,
pub language: Option<Box<FHIRCode>>,
pub text: Option<Box<Narrative>>,
pub contained: Option<Vec<Box<Resource>>>,
pub extension: Option<Vec<Box<Extension>>>,
pub modifierExtension: Option<Vec<Box<Extension>>>,
pub identifier_: Option<Vec<Box<Identifier>>>,
pub basedOn: Option<Vec<Box<Reference>>>,
pub partOf: Option<Vec<Box<Reference>>>,
pub status: Box<ObservationStatus>,
pub category: Option<Vec<Box<CodeableConcept>>>,
pub code: Box<CodeableConcept>,
pub subject: Option<Box<Reference>>,
pub focus: Option<Vec<Box<Reference>>>,
pub encounter: Option<Box<Reference>>,
pub effective: Option<ObservationEffectiveTypeChoice>,
pub issued: Option<Box<FHIRInstant>>,
pub performer: Option<Vec<Box<Reference>>>,
pub value: Option<ObservationValueTypeChoice>,
pub dataAbsentReason: Option<Box<CodeableConcept>>,
pub interpretation: Option<Vec<Box<CodeableConcept>>>,
pub note: Option<Vec<Box<Annotation>>>,
pub bodySite: Option<Box<CodeableConcept>>,
pub method: Option<Box<CodeableConcept>>,
pub specimen: Option<Box<Reference>>,
pub device: Option<Box<Reference>>,
pub referenceRange: Option<Vec<ObservationReferenceRange>>,
pub hasMember: Option<Vec<Box<Reference>>>,
pub derivedFrom: Option<Vec<Box<Reference>>>,
pub component: Option<Vec<ObservationComponent>>,
}Expand description
Measurements and simple assertions made about a patient, device or other subject.
Fields§
§id: Option<String>The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
meta: Option<Box<Meta>>The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.
implicitRules: Option<Box<FHIRUri>>A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.
language: Option<Box<FHIRCode>>The base language in which the resource is written.
text: Option<Box<Narrative>>A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it “clinically safe” for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.
contained: Option<Vec<Box<Resource>>>These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
extension: Option<Vec<Box<Extension>>>May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
modifierExtension: Option<Vec<Box<Extension>>>May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element’s descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
identifier_: Option<Vec<Box<Identifier>>>A unique identifier assigned to this observation.
basedOn: Option<Vec<Box<Reference>>>A plan, proposal or order that is fulfilled in whole or in part by this event. For example, a MedicationRequest may require a patient to have laboratory test performed before it is dispensed.
partOf: Option<Vec<Box<Reference>>>A larger event of which this particular Observation is a component or step. For example, an observation as part of a procedure.
status: Box<ObservationStatus>The status of the result value.
category: Option<Vec<Box<CodeableConcept>>>A code that classifies the general type of observation being made.
code: Box<CodeableConcept>Describes what was observed. Sometimes this is called the observation “name”.
subject: Option<Box<Reference>>The patient, or group of patients, location, or device this observation is about and into whose record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the focus element or the code itself specifies the actual focus of the observation.
focus: Option<Vec<Box<Reference>>>The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother’s record. The focus of an observation could also be an existing condition, an intervention, the subject’s diet, another observation of the subject, or a body structure such as tumor or implanted device. An example use case would be using the Observation resource to capture whether the mother is trained to change her child’s tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.
encounter: Option<Box<Reference>>The healthcare event (e.g. a patient and healthcare provider interaction) during which this observation is made.
effective: Option<ObservationEffectiveTypeChoice>The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the “physiologically relevant time”. This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.
issued: Option<Box<FHIRInstant>>The date and time this version of the observation was made available to providers, typically after the results have been reviewed and verified.
performer: Option<Vec<Box<Reference>>>Who was responsible for asserting the observed value as “true”.
value: Option<ObservationValueTypeChoice>The information determined as a result of making the observation, if the information has a simple value.
dataAbsentReason: Option<Box<CodeableConcept>>Provides a reason why the expected value in the element Observation.value[x] is missing.
interpretation: Option<Vec<Box<CodeableConcept>>>A categorical assessment of an observation value. For example, high, low, normal.
note: Option<Vec<Box<Annotation>>>Comments about the observation or the results.
bodySite: Option<Box<CodeableConcept>>Indicates the site on the subject’s body where the observation was made (i.e. the target site).
method: Option<Box<CodeableConcept>>Indicates the mechanism used to perform the observation.
specimen: Option<Box<Reference>>The specimen that was used when this observation was made.
device: Option<Box<Reference>>The device used to generate the observation data.
referenceRange: Option<Vec<ObservationReferenceRange>>Guidance on how to interpret the value by comparison to a normal or recommended range. Multiple reference ranges are interpreted as an “OR”. In other words, to represent two distinct target populations, two referenceRange elements would be used.
hasMember: Option<Vec<Box<Reference>>>This observation is a group observation (e.g. a battery, a panel of tests, a set of vital sign measurements) that includes the target as a member of the group.
derivedFrom: Option<Vec<Box<Reference>>>The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.
component: Option<Vec<ObservationComponent>>Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same attributes. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations.
Trait Implementations§
Source§impl Clone for Observation
impl Clone for Observation
Source§fn clone(&self) -> Observation
fn clone(&self) -> Observation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Observation
impl Debug for Observation
Source§impl Default for Observation
impl Default for Observation
Source§fn default() -> Observation
fn default() -> Observation
Source§impl FHIRJSONDeserializer for Observation
impl FHIRJSONDeserializer for Observation
fn from_json_str(s: &str) -> Result<Self, DeserializeError>
fn from_serde_value( obj: &Value, context: Context<'_>, ) -> Result<Self, DeserializeError>
Source§impl FHIRJSONSerializer for Observation
impl FHIRJSONSerializer for Observation
fn serialize_value( &self, writer: &mut dyn Write, ) -> Result<bool, SerializeError>
fn serialize_extension( &self, writer: &mut dyn Write, ) -> Result<bool, SerializeError>
fn serialize_field( &self, field: &str, writer: &mut dyn Write, ) -> Result<bool, SerializeError>
fn is_fp_primitive(&self) -> bool
Source§impl MetaValue for Observation
impl MetaValue for Observation
fn fields(&self) -> Vec<&'static str>
fn get_field<'a>(&'a self, field: &str) -> Option<&'a dyn MetaValue>
fn get_field_mut<'a>(&'a mut self, field: &str) -> Option<&'a mut dyn MetaValue>
fn get_index_mut<'a>( &'a mut self, index: usize, ) -> Option<&'a mut dyn MetaValue>
fn get_index<'a>(&'a self, _index: usize) -> Option<&'a dyn MetaValue>
fn typename(&self) -> &'static str
fn as_any(&self) -> &dyn Any
fn flatten(&self) -> Vec<&dyn MetaValue>
Auto Trait Implementations§
impl Freeze for Observation
impl RefUnwindSafe for Observation
impl Send for Observation
impl Sync for Observation
impl Unpin for Observation
impl UnwindSafe for Observation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more