Definition
The overall encounter between a patient and a healthcare provider or service. It captures high-level context such as consultation purpose, timing, linked slot, and location code.
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 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_datetime, is_completeFROM explorer_open_safely.consultationWHERE NOT is_complete;