Skip to content
Partner Developer Portal byOptum

Schema

ColumnData TypeDescription
consultation_section_idbigintPseudo-identifier generated via generate_pseudo_id using the section identifier and organisation to create a single primary key column.
consultation_section_original_headingvarcharOriginal section heading text; human-readable description associated with the heading code identifier.
event_idbigintPseudo-identifier generated via generate_pseudo_id using the event identifier and organisation; links to observation, recall, or issue_record models.
consultation_idbigintPseudo-identifier generated via generate_pseudo_id using the consultation identifier and organisation; foreign key referencing the consultation model.
consultation_section_category_codevarcharSection category code produced in the serving layer via @section_category_code(consultation_section_category_id) to align with the iPCV v2 serving layer.
emis_patient_idbigintPatient identifier hashed by concatenating patient ID with organisation.
consultation_source_emis_code_idbigintCode representing the purpose for the consultation; used for categorisation (e.g., 1572871000006117 – Long Term Conditions Management).
recorded_datetimestamp(6) with time zoneDate and time when the entry for this consultation section was made in EMIS Web.
effective_datetimestamp(6) with time zoneDate and time when the consultation section came into effect.
completebooleanIndicates whether this consultation section is complete.
model_last_updatetimestamp(6) with time zoneTimestamp indicating when the model last updated this record (data type to be confirmed).
is_deletedbooleanSoft-delete flag; include in queries to exclude deleted records.
transform_datetimetimestamp(6) with time zoneDatetime when the data was made available in the model due to an entry or relevant change.
organisationvarcharOrganisation identifier required for Ranger to apply DSA.