Skip to content
Partner Developer Portal

Schema

ColumnData TypeDescriptionExample
code_idbigintEMIS code ID - internal identifier2986010
consultation_idvarbinaryUnique identifier for the linked consultation for this diary entryF422B34E0AC397B6 [16]
consultation_section_idvarbinaryUnique identifier for the linked consultation section for this diary entryF422B34E0AC397B6 [16]
consultation_source_code_idbigintEMIS code ID representing the consultation purpose; used for categorisation1572871000006117
diary_idvarbinaryUnique identifier for the diary entryF422B34E0AC397B6 [16]
duration_termvarcharHuman-readable term describing the duration of the diary entry2 weeks
effective_datetimetimestamp(6) with time zoneDate and time when the consultation section came into effect2023-05-12 14:30:15.000000 UTC
is_activebooleanIndicates whether the diary entry is currently activetrue
is_completebooleanIndicates whether the diary entry is completefalse
is_deletedbooleanIf this record should be considered soft deleted; all columns excluding primary keys will be NULL if TRUEfalse
model_updated_datetimetimestamp(6) with time zoneDate and time the model last updated this record2023-05-12 14:30:15.000000 UTC
organisationvarcharThe organisation that this data was replicated fromCDB-001
patient_idvarbinaryUnique patient identifierF422B34E0AC397B6 [16]
snomed_concept_idbigintSNOMED CT concept identifier; may be NULL if no matching concept exists123456789
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