/** * FHIR Version R5 * The following is auto generated resource definition. * * OpenAPI spec version: 3.0.1 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ import { Annotation } from './annotation'; import { Attachment } from './attachment'; import { Code } from './code'; import { CodeableConcept } from './codeableConcept'; import { Extension } from './extension'; import { Id } from './id'; import { Identifier } from './identifier'; import { Instant } from './instant'; import { Meta } from './meta'; import { Narrative } from './narrative'; import { ObservationComponent } from './observationComponent'; import { ObservationReferenceRange } from './observationReferenceRange'; import { ObservationTriggeredBy } from './observationTriggeredBy'; import { Period } from './period'; import { Quantity } from './quantity'; import { Range } from './range'; import { Ratio } from './ratio'; import { Reference } from './reference'; import { ResourceList } from './resourceList'; import { SampledData } from './sampledData'; import { Timing } from './timing'; import { Uri } from './uri'; /** * Measurements and simple assertions made about a patient, device or other subject. */ export interface Observation { /** * This is a Observation resource */ resourceType: 'Observation'; id?: Id; meta?: Meta; implicitRules?: Uri; language?: Code; text?: Narrative; /** * These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, nor can they have their own independent transaction scope. This is allowed to be a Parameters resource if and only if it is referenced by a resource that provides context/meaning. */ contained?: Array; /** * 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 managable, 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. */ extension?: Array; /** * 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 managable, 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). */ modifierExtension?: Array; /** * A unique identifier assigned to this observation. */ identifier?: Array; /** * The reference to a FHIR ObservationDefinition resource that provides the definition that is adhered to in whole or in part by this Observation instance. */ instantiatesCanonical?: string; instantiatesReference?: 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. */ basedOn?: Array; /** * Identifies the observation(s) that triggered the performance of this observation. */ triggeredBy?: Array; /** * A larger event of which this particular Observation is a component or step. For example, an observation as part of a procedure. */ partOf?: Array; status?: Code; /** * A code that classifies the general type of observation being made. */ category?: Array; code: CodeableConcept; subject?: 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. */ focus?: Array; encounter?: Reference; /** * 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. */ effectiveDateTime?: string; effectivePeriod?: Period; effectiveTiming?: Timing; /** * 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. */ effectiveInstant?: string; issued?: Instant; /** * Who was responsible for asserting the observed value as \"true\". */ performer?: Array; valueQuantity?: Quantity; valueCodeableConcept?: CodeableConcept; /** * The information determined as a result of making the observation, if the information has a simple value. */ valueString?: string; /** * The information determined as a result of making the observation, if the information has a simple value. */ valueBoolean?: boolean; /** * The information determined as a result of making the observation, if the information has a simple value. */ valueInteger?: number; valueRange?: Range; valueRatio?: Ratio; valueSampledData?: SampledData; /** * The information determined as a result of making the observation, if the information has a simple value. */ valueTime?: string; /** * The information determined as a result of making the observation, if the information has a simple value. */ valueDateTime?: string; valuePeriod?: Period; valueAttachment?: Attachment; valueReference?: Reference; dataAbsentReason?: CodeableConcept; /** * A categorical assessment of an observation value. For example, high, low, normal. */ interpretation?: Array; /** * Comments about the observation or the results. */ note?: Array; bodySite?: CodeableConcept; bodyStructure?: Reference; method?: CodeableConcept; specimen?: Reference; device?: Reference; /** * 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. */ referenceRange?: Array; /** * 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. */ hasMember?: Array; /** * 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. */ derivedFrom?: Array; /** * 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. */ component?: Array; }