Definition
The Observation data model captures coded clinical observations recorded in EMIS Web and made available for OpenSafely analysis. It includes measurements, problem-linked observations, and referral markers.
Information
Section titled “Information”Each record represents a single observation event for a patient, optionally linked to a consultation and consultation section.
Each record can be uniquely identified using the observation_id and
organisation.
- is_deleted - Indicates whether the observation has been soft deleted in the source system.
- problem_is_deleted - Indicates whether the linked problem observation has been marked as deleted.
- is_problem / is_referral - Flags indicating the observation type.
- transform_datetime - Shows when the record was last updated in the data model.
Examples
Section titled “Examples”Recent numeric observations for a specific patient
SELECT observation_id, patient_id, effective_datetime, snomed_concept_id, numeric_operator, numeric_value, numeric_unit, consultation_id, organisationFROM explorer_open_safely.observationWHERE patient_id = <patient_id> AND organisation = <organisation> AND numeric_value IS NOT NULL AND NOT is_deletedORDER BY effective_datetime DESCActive problem-linked observations
SELECT observation_id, patient_id, effective_datetime, observation_type_description, problem_observation_id, problem_end_datetime, organisationFROM explorer_open_safely.observationWHERE is_problem AND problem_end_datetime IS NULL AND NOT is_deleted
