Skip to content
Partner Developer Portal

Schema

Column NameData TypeDescriptionExample
ageintegerPatient age in years43
date_of_birthtimestamp(6)Patient date of birth, rounded to the first of the month2023-05-01 00:00:00.000000 UTC
date_of_deathtimestamp(6)Patient date of death2023-05-12 00:00:00.000000 UTC
ethnicity_code_idbigintEMIS code ID of ethnicity code3
has_carerbooleanIndicates whether the patient has a carertrue
has_diedbooleanIndicates if the patient has diedfalse
imd_roundeddoubleRounded index of multiple deprivation21100
index_of_multiple_deprivation_decilebigintIndicates the official measure of relative deprivation in the UK5
is_activebooleanIndicates if the patient record is activetrue
is_consent_93c1booleanIndicates whether a patient has consented for data sharing; FALSE = Patient HAS a type 1 opt-out, TRUE/NULL = Patient DOES NOT have a type 1 opt-outtrue
is_deletedbooleanIf this record should be considered soft deleted; all columns excluding primary keys will be NULL if TRUE; in GP England practices patient records will not be deleted but it is theoretically possiblefalse
is_national_data_opted_inbooleanIndicates if the patient opted in to national data sharing; FALSE = Patient is OPTED OUT, TRUE/NULL = Patient is OPTED INtrue
middle_level_super_output_areavarcharPatient middle super output area (MSOA)E02000001
model_updated_datetimetimestamp(6)Date and time the model last updated this record2023-05-12 14:30:15.000000 UTC
nhs_numbervarbinaryPseudonymised National Health Service numberF422B34E0AC397B6 [16]
organisationvarcharThe organisation that this data was replicated fromCDB-12345
patient_idvarbinaryUnique patient identifierF422B34E0AC397B6 [16]
preferred_language_code_idbigintEMIS code ID of preferred language code1
registration_end_datetimetimestamp(6)Date and time the patient registration ended with the practice2023-05-12 14:30:15.000000 UTC
registration_start_datetimetimestamp(6)Date and time the patient registered with the practice2023-05-12 14:30:15.000000 UTC
residential_institute_codevarcharProvides both current and legacy residential institute codesRI001
sexvarcharPatient sexMale
sexual_orientation_code_idbigintEMIS code ID of sexual orientation code2
transform_datetimetimestamp(6)Date and time the data was made available in the model with a relevant change2023-05-12 14:30:15.000000 UTC