Skip to content
Partner Developer Portal

Schema

ColumnData TypeDescriptionExample
is_deletedbooleanIf this record should be considered soft deleted; all columns excluding primary keys will be NULL if TRUEfalse
consultation_idvarbinaryUnique identifier for the consultationF422B34E0AC397B6A8C9D0E1F2345678
consultation_source_code_idbigintEMIS code ID representing the consultation purpose; used for categorisation1572871000006117
effective_datetimetimestamp(6) with time zoneDate and time when the consultation came into effect2023-05-12 14:30:15.000000 UTC
has_consultation_sectionsbooleanIndicates whether the consultation has linked sections in the consultation_section modeltrue
is_completebooleanIndicates whether the consultation is completetrue
location_code_idbigintEMIS code ID representing the type of location where the consultation took place1563411000006111
model_updated_datetimetimestamp(6) with time zoneDate and time the model last updated this record2023-05-12 14:30:15.000000 UTC
patient_idvarbinaryUnique patient identifierF422B34E0AC397B6A8C9D0E1F2345678
slot_idvarbinaryUnique identifier for the appointment slot linked to this consultationF422B34E0AC397B6A8C9D0E1F2345678
transform_datetimetimestamp(6) with time zoneDate and time the data was made available in the model with a relevant change2023-05-12 14:30:15.000000 UTC

Use this query to preview recent rows and validate expected columns:

SELECT *
FROM explorer_open_safely.consultation
LIMIT 100;