Definition
The overall encounter between a patient and a healthcare provider or organisation It captures the high‑level context such as consultation type, dates and location.
Constraints and Notes
Section titled “Constraints and Notes”Soft deletion: Whenis_deletedis true, data fields will be nullified in upstream transformations and should be excluded from most analytical queries. Primary keys and foreign keys to patient data are preserved so deleted records and their relationships can still be identified. Foreign keys to coding tables and SNOMED CT identifiers are nullified as the coded information is no longer valid.
Examples
Section titled “Examples”Filter incomplete consultations
Section titled “Filter incomplete consultations”Simple query to return consultations that are not complete:
SELECT consultation_id, patient_id, effective_date, is_completeFROM explorer_open_safely.consultationWHERE NOT is_complete;