Skip to content
Partner Developer Portal

Schema

The core schema represents the Issue Record model schema derived from source to present a unified view of prescription issue information.

Please note that how much of this model is visible varies between flavours.

Column NameData TypeDescriptionExample / Values
load_datetimetimestamp(6) with time zoneThe datetime that the record was last upserted into the EXA data lake from EMIS source system with a relevant change from source system.‘2026-08-13 05:43:50.000000 UTC’
_ingest_timevarcharThe load_datetime formatted as yyyyMMddHHmmss. This is a legacy column maintained for backward compatibility‘20230512143015’
issue_record_idbigintThe unique internal identifier for the issue record within an organisation.111222333
organisationvarcharAn identifier for the source of data (an organisation) relating to a given GP practice‘CDB-1234’
is_deletedbooleanIndicates whether the issue record has been deleted at source.FALSE
issue_record_guidvarcharThe GUID for the issue record within an organisation.‘a1b2c3d4-e5f6-4a5b-9c8d-0e1f2a3b4c5d’
issue_record_uuidvarcharThe UUID derived from issue_record_id and organisation, providing a stable unique identifier.‘a1b2c3d4-e5f6-4a5b-9c8d-0e1f2a3b4c5d’
patient_idbigintThe unique internal identifier for the patient record within the organisation, for whom the drug record was prescribed and issued.123456
patient_guidvarcharThe unique GUID for the patient record within an organisation‘a1b2c3d4-e5f6-4a5b-9c8d-0e1f2a3b4c5d’
patient_uuidvarcharThe UUID derived from patient_id and organisation, providing a stable unique identifier‘a1b2c3d4-e5f6-4a5b-9c8d-0e1f2a3b4c5d’
issue_record_organisation_idbigintThe unique internal identifier of the organisation where the drug record was prescribed and issued.1123
issue_record_organisation_guidvarcharThe GUID of the organisation where the drug record was prescribed and issued.‘550e8400-e29b-41d4-a716-446655440000’
issue_record_organisation_uuidvarcharThe UUID derived from issue_record_organisation_id and organisation, providing a stable unique identifier‘a1b2c3d4-e5f6-4a5b-9c8d-0e1f2a3b4c5d’
patient_organisation_idbigintThe unique internal identifier for the organisation where the patient is registered12345
patient_organisation_guidvarcharThe GUID of the organisation where the patient is registered‘c9d0e1f2-a3b4-2c5d-7e8f-9a0b1c2d3e4f’
patient_organisation_uuidvarcharThe UUID derived from patient_organisation_id and organisation, providing a stable unique identifier.‘a1b2c3d4-e5f6-4a5b-9c8d-0e1f2a3b4c5d’
drug_record_idbigintThe unique internal identifier for the drug record this issue was processed for (within an organisation).123456789
drug_record_guidvarcharThe GUID for the drug record this issue was processed for (within an organisation).‘a1b2c3d4-e5f6-4a5b-9c8d-0e1f2a3b4c5d’
drug_record_uuidvarcharThe UUID derived from drug_record_id and organisation, providing a stable unique identifier.‘a1b2c3d4-e5f6-4a5b-9c8d-0e1f2a3b4c5d’
consultation_idbigintThe unique internal identifier for the consultation record within an organisation in which the issue record was recorded.12345
consultation_guidvarcharThe GUID for the consultation record within an organisation‘d4e5f6a7-b8c9-7d0e-2f3a-4b5c6d7e8f9a’
consultation_uuidvarcharThe UUID derived from consultation_id and organisation, providing a stable unique identifier.‘e5f6a7b8-c9d0-8e1f-3a4b-5c6d7e8f9a0b’
consultation_section_idbigintThe unique internal identifier for the consultation section this record was issued from, within an organisation.12345
consultation_section_uuidvarcharThe UUID derived from consultation_section_id and organisation, providing a stable unique identifier.‘a1b2c3d4-e5f6-4a5b-9c8d-0e1f2a3b4c5d’
authorising_user_in_role_idbigintThe unique identifier of the clinician who authorised or authored the drug record113
authorising_user_in_role_uuidvarcharThe UUID derived from authorising_user_in_role_id and organisation, providing a stable unique identifier.‘a1b2c3d4-e5f6-4a5b-9c8d-0e1f2a3b4c5d’
entered_by_user_in_role_idbigintThe unique identifier of the user who entered the issue record645
entered_by_user_in_role_uuidvarcharThe UUID derived from entered_by_user_in_role_id and organisation, providing a stable unique identifier.‘a1b2c3d4-e5f6-4a5b-9c8d-0e1f2a3b4c5d’
cancelled_by_user_in_role_idbigintThe unique identifier of the user who cancelled the issue record. Will only be populated if an issue has been cancelled.4455
cancelled_by_user_in_role_uuidvarcharThe UUID of the user who cancelled the issue record derived from cancelled_by_user_in_role_id and organisation, providing a stable unique identifier‘a1b2c3d4-e5f6-4a5b-9c8d-0e1f2a3b4c5d’
prescription_type_idbigintThe unique identifier for the type of prescription2
prescription_type_descriptionvarcharThe type of prescription of the drug record i.e. acute, repeat, repeat-dispensing, or automatic‘repeat’
availability_datetimetimestamp(6) with time zoneThe date and time the issue record was recorded in the source system‘2023-09-01 10:30:00.000000 UTC’
effective_datetimetimestamp(6) with time zoneClinical effective date and time of the issue record‘2023-09-01 09:00:00.000000 UTC’
effective_datetime_precisionvarcharPrecision of the effective datetime; set to ‘YMDT’.‘YMDT’
cancellation_datetimetimestamp(6) with time zoneDate and time the issue record was cancelled‘2023-09-01 09:00:00.000000 UTC’
cancellation_reasonvarcharReason for the cancellation (free text)‘Patient request’
quantitydecimal(9, 3)Quantity prescribed56.000
quantity_unitvarcharUnit of the quantity‘tablet’
dosagevarcharDosage instructions for the drug record‘One to be taken twice daily’
original_termvarcharThe EMIS term for the medication prescribed.‘Amoxicillin 500mg capsules’
patient_textvarcharNotes made for the patient while recording the prescription (free text)‘Patient Info - Ibuprofen’
pharmacy_textvarcharNotes made for the pharmacy related to the prescription (free text)‘Pharmacy Info - Ibuprofen’
patient_messagevarcharA message for the patient, typically used to remind them of a medication review (free text)‘Patient Message - Ibuprofen’
pharmacy_messagevarcharA message that needs to be passed to the pharmacy (free text)‘Pharmacy Message - Ibuprofen’
local_mixture_idbigintThe unique identifier identifier for the local mixture prescribed8
local_mixture_namevarcharName of the locally prepared mixture, if applicable. This is for locally prescribed drug records that don’t have a coded equivalent. Expect this to be very sparseley populated.‘ADULT COUGH LINCTUS’
review_datedateDate the prescription is due for review‘2024-07-01’
course_duration_in_daysbigintCourse length of prescription, in days28
consultation_source_code_idbigintThe unique EMIS code identifier of the code describing the consultation source (e.g. GP Surgery, Telephone)1672851000006116
consultation_source_original_termvarcharThe EMIS term for the consultation source code‘GP Surgery’
code_idbigintThe unique EMIS code identifier for the medication prescribed1278741000033112
min_next_issue_daysbigintMinimum number of days before the next issue can be processed14
max_next_issue_daysbigintMaximum number of days before the next issue must be processed28
estimated_nhs_costrealEstimated NHS cost of this issue4.5
issue_method_idbigintInternal identifier for the issue method12
issue_method_descriptionvarcharMethod by which the issue was dispensed‘Electronic Repeat Dispensing’
quantity_unit_of_measure_idbigintInternal identifier for the quantity unit of measure120
quantity_representationvarcharComplete representation of the quantity prescribed, combining quantity and unit. representation‘21 tablet’
quantity_multiplicanddecimal(9, 3)Multiplicand component of quantity21.000
quantity_multiplierdecimal(9, 3)Multiplier component of quantity1.000
quantity_multiplier_uomvarcharUnit of measure for the multiplier‘pack’
is_cancelledbooleanIndicates whether the issue has been cancelledFALSE
is_privately_prescribedbooleanIndicates whether the drug was privately prescribedTRUE
is_prescribed_as_contraceptivebooleanIndicates whether the drug was prescribed as a contraceptiveFALSE
is_sensitivebooleanIndicates whether the drug record is flagged as sensitive. The sensitive reference set codes are 999004351000000109( gender related issues), 999004371000000100(assisted fertilisation), 999004361000000107(termination of pregnancy) and 999004381000000103 (sexually transmitted disease)FALSE
confidentiality_policy_idbigintIdentifier of the applied confidentiality policy-1
is_confidentialbooleanIndicates whether the issue record is confidential. This is based on confidentiality policy set against the patient / drug record /issue recordTRUE
transform_datetimetimestamp(6) with time zoneThe timestamp indicating when the record was last processed and updated in the data model. This field is crucial for understanding the current state of the data.‘2024-01-15 03:00:05.000000 UTC’
_execution_datevarcharThe transform_datetime formatted as yyyyMMddHHmmss. This is a legacy column provided only for backward compatibility with.‘20240115030005’

The table below presents the flavour specific schema and maps columns between core, V1, and V2. Refer to Changes in iPCV V2 for more information.

Column NameData TypeData in V1Data in V2Core MappingComments
_ingest_timevarchar✓✓
is_deletedboolean✗✓
issue_record_idbigint✗✓
emis_issue_guidvarchar✓✓issue_record_guid
exa_issue_guidvarchar✓✓issue_record_uuid
drug_record_idbigint✗✓
emis_drug_guidvarchar✓✓drug_record_guid
exa_drug_guidvarchar✓✓drug_record_uuid
nhs_prescribing_agencyvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
emis_enteredby_userinrole_guidvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
emis_authorising_userinrole_guidvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
cancellation_userinrole_guidvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
entered_by_user_in_role_idbigint✗✓
entered_by_user_in_role_uuidvarchar✗✓
authorising_user_in_role_idbigint✗✓
authorising_user_in_role_uuidvarchar✗✓
cancelled_by_user_in_role_idbigint✗✓
cancelled_by_user_in_role_uuidvarchar✗✓
cancellation_reasonvarchar✓✓
is_cancelledboolean✗✓
emis_code_idbigint✓✓code_id
confidential_flagboolean✓✓is_confidential
confidentiality_policy_idbigint✓✓
consultation_source_emis_code_idbigint✓✓consultation_source_code_id
consultation_source_emis_original_termvarchar✓✓consultation_source_original_term
dosevarchar✓✓dosage
duration_in_daysbigint✓✓course_duration_in_days
duration_uomvarchar✓✓
fhir_medication_statusvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
fhir_medication_intentvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
effective_datetimestamp(6) with time zone✓✓effective_datetime
effective_date_precisionvarchar✓✓effective_datetime_precision
issue_method_idbigint✗✓
emis_issue_methodvarchar✓✓issue_method_description
prescription_type_idbigint✗✓
emis_prescription_typevarchar✓✓prescription_type_description
nhs_prescription_typevarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
patient_organisation_idbigint✗✓
emis_registration_organisation_guidvarchar✓✓patient_organisation_guid
patient_organisation_uuidvarchar✗✓
consultation_idbigint✗✓
emis_encounter_guidvarchar✓✓consultation_guid
exa_encounter_guidvarchar✓✓consultation_uuid
consultation_section_idbigint✗✓
consultation_section_uuidvarchar✗✓
estimated_nhs_costreal✓✓
max_nextissue_daysbigint✓✓max_next_issue_days
min_nextissue_daysbigint✓✓min_next_issue_days
issue_record_organisation_idbigint✗✓
issue_record_organisation_guidvarchar✓✓Renamed from emis_medication_organisation_guid in V1
issue_record_organisation_uuidvarchar✗✓
patient_messagevarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
patient_textvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
emis_patient_idbigint✓✓patient_id
patient_uuidvarchar✗✓
pharmacy_messagevarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
pharmacy_textvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
prescribed_as_contraceptive_flagboolean✓✓is_prescribed_as_contraceptive
privately_prescribed_flagboolean✓✓is_privately_prescribed
quantitydecimal(9, 3)✓✓
quantity_multiplicanddecimal(9, 3)✓✓
quantity_multiplierdecimal(9, 3)✓✓
quantity_multiplier_uomvarchar✓✓
quantity_representationvarchar✓✓
recorded_datetimestamp(6) with time zone✓✓availability_datetime
registration_guidvarchar✓✓patient_guid
registration_ods_codevarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
reimburse_typevarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
review_datedate✓✓
emis_original_termvarchar✓✓original_term
local_mixture_idbigint✗✓
local_mixture_namevarchar✗✓
sensitive_flagboolean✓✓is_sensitive
cancellation_datetimestamp(6) with time zone✓✓cancellation_datetime
quantity_unit_of_measure_idbigint✗✓
uomvarchar✓✓quantity_unit
_execution_datevarchar✓✓
transform_datetimetimestamp(6) with time zone✗✓
organisationvarchar✓✓
confidential_patient_flagboolean✓✗
sensitive_patient_flagboolean✓✗
dummy_patient_flagboolean✓✗
regular_patient_flagboolean✓✗
regular_and_current_active_flagboolean✓✗
regular_current_active_and_inactive_flagboolean✓✗
non_regular_and_current_active_flagboolean✓✗
opt_out_93c1_flagboolean✓✗
opt_out_9nd19nu09nu4_flagboolean✓✗
opt_out_9nd19nu0_flagboolean✓✗
opt_out_9nu0_flagboolean✓✗
snomed_concept_idbigint✓✗
snomed_description_idbigint✓✗
other_codevarchar✓✗
other_code_systemvarchar✓✗
other_displayvarchar✓✗
uom_dmdvarchar✓✗
exa_prescription_guidvarchar✓✗
_record_versionvarchar✓✗
_update_datevarchar✓✗
_update_hourvarchar✓✗

The table below presents the flavour specific schema and maps columns between core, V1, and V2. Refer to Changes in iPCV V2 for more information.

Column NameData TypeData in V1Data in V2Core MappingComments
_ingest_timevarchar✓✓
is_deletedboolean✗✓
issue_record_idbigint✗✓
emis_issue_guidvarchar✓✓issue_record_guid
exa_issue_guidvarchar✓✓issue_record_uuid
drug_record_idbigint✗✓
emis_drug_guidvarchar✓✓drug_record_guid
exa_drug_guidvarchar✓✓drug_record_uuid
patient_idbigint✗✓
registration_guidvarchar✓✓patient_guid
patient_uuidvarchar✗✓
patient_organisation_idbigint✗✓
patient_organisation_guidvarchar✗✓
patient_organisation_uuidvarchar✗✓
effective_datetimestamp(6) with time zone✓✓effective_datetime
quantitydecimal(9, 3)✓✓
quantity_unit_of_measure_idbigint✗✓
uomvarchar✓✓quantity_unit
dosevarchar✓✓dosage
quantity_representationvarchar✓✓
quantity_multiplicanddecimal(9, 3)✓✓
quantity_multiplierdecimal(9, 3)✓✓
quantity_multiplier_uomvarchar✓✓
prescription_type_idbigint✗✓
emis_prescription_typevarchar✗✓prescription_type_description
nhs_prescription_typevarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
cancellation_datetimestamp(6) with time zone✓✓cancellation_datetime
emis_code_idbigint✓✓code_id
registration_ods_codevarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
transform_datetimetimestamp(6) with time zone✗✓
_execution_datevarchar✓✓
organisationvarchar✓✓
snomed_concept_idbigint✓✗

The table below presents the flavour specific schema and maps columns between core, V1, and V2. Refer to Changes in iPCV V2 for more information.

Column NameData TypeData in V1Data in V2Core MappingComments
_ingest_timevarchar✓✓
is_deletedboolean✗✓
issue_record_idbigint✗✓
emis_issue_guidvarchar✓✓issue_record_guid
exa_issue_guidvarchar✓✓issue_record_uuid
drug_record_idbigint✗✓
emis_drug_guidvarchar✓✓drug_record_guid
exa_drug_guidvarchar✓✓drug_record_uuid
nhs_prescribing_agencyvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
emis_enteredby_userinrole_guidvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
emis_authorising_userinrole_guidvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
cancellation_userinrole_guidvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
entered_by_user_in_role_idbigint✗✓
entered_by_user_in_role_uuidvarchar✗✓
authorising_user_in_role_idbigint✗✓
authorising_user_in_role_uuidvarchar✗✓
cancelled_by_user_in_role_idbigint✗✓
cancelled_by_user_in_role_uuidvarchar✗✓
cancellation_reasonvarchar✓✓
is_cancelledboolean✗✓
emis_code_idbigint✓✓code_id
confidential_flagboolean✓✓is_confidential
confidentiality_policy_idbigint✓✓
consultation_source_emis_code_idbigint✓✓consultation_source_code_id
consultation_source_emis_original_termvarchar✓✓consultation_source_original_term
dosevarchar✓✓dosage
duration_in_daysbigint✓✓course_duration_in_days
duration_uomvarchar✓✓
fhir_medication_statusvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
fhir_medication_intentvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
effective_datetimestamp(6) with time zone✓✓effective_datetime
effective_date_precisionvarchar✓✓effective_datetime_precision
issue_method_idbigint✗✓
emis_issue_methodvarchar✓✓issue_method_description
prescription_type_idbigint✗✓
emis_prescription_typevarchar✓✓prescription_type_description
nhs_prescription_typevarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
patient_organisation_idbigint✗✓
emis_registration_organisation_guidvarchar✓✓patient_organisation_guid
patient_organisation_uuidvarchar✗✓
consultation_idbigint✗✓
emis_encounter_guidvarchar✓✓consultation_guid
exa_encounter_guidvarchar✓✓consultation_uuid
consultation_section_idbigint✗✓
consultation_section_uuidvarchar✗✓
estimated_nhs_costreal✓✓
max_nextissue_daysbigint✓✓max_next_issue_days
min_nextissue_daysbigint✓✓min_next_issue_days
issue_record_organisation_idbigint✗✓
issue_record_organisation_guidvarchar✓✓Renamed from emis_medication_organisation_guid in V1
issue_record_organisation_uuidvarchar✗✓
emis_patient_idbigint✓✓patient_id
patient_uuidvarchar✗✓
prescribed_as_contraceptive_flagboolean✓✓is_prescribed_as_contraceptive
privately_prescribed_flagboolean✓✓is_privately_prescribed
quantitydecimal(9, 3)✓✓
recorded_datetimestamp(6) with time zone✓✓availability_datetime
registration_guidvarchar✓✓patient_guid
registration_ods_codevarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
reimburse_typevarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
review_datedate✓✓
emis_original_termvarchar✓✓original_term
local_mixture_idbigint✗✓
local_mixture_namevarchar✗✓
sensitive_flagboolean✓✓is_sensitive
cancellation_datetimestamp(6) with time zone✓✓cancellation_datetime
quantity_unit_of_measure_idbigint✗✓
uomvarchar✓✓quantity_unit
_execution_datevarchar✓✓
transform_datetimetimestamp(6) with time zone✗✓
organisationvarchar✓✓
_record_versionvarchar✓✗
_update_datevarchar✓✗
_update_hourvarchar✓✗
authorisedissues_authorised_datetimestamp(6) with time zone✓✗
authorisedissues_authorising_user_in_rolevarchar✓✗
authorisedissues_enteredby_userinolevarchar✓✗
authorisedissues_first_issue_datetimestamp(6) with time zone✓✗
confidential_patient_flagboolean✓✗
emis_medication_statusvarchar✓✗
dummy_patient_flagboolean✓✗
emis_mostrecent_issue_datetimestamp(6) with time zone✓✗
emis_mostrecent_issue_methodvarchar✓✗
end_datetimestamp(6) with time zone✓✗
exa_prescription_guidvarchar✓✗
exa_mostrecent_issue_datetimestamp(6) with time zone✓✗
non_regular_and_current_active_flagboolean✓✗
number_authorisedbigint✓✗
number_of_issuesbigint✓✗
opt_out_93c1_flagboolean✓✗
opt_out_9nd19nu09nu4_flagboolean✓✗
opt_out_9nd19nu0_flagboolean✓✗
opt_out_9nu0_flagboolean✓✗
other_codevarchar✓✗
other_code_systemvarchar✓✗
other_displayvarchar✓✗
regular_and_current_active_flagboolean✓✗
regular_current_active_and_inactive_flagboolean✓✗
regular_patient_flagboolean✓✗
sensitive_patient_flagboolean✓✗
snomed_concept_idbigint✓✗
snomed_description_idbigint✓✗
uom_dmdvarchar✓✗

The table below presents the flavour specific schema.

Column NameData TypeCore Mapping
is_deletedboolean
pseudo_issue_record_uuidvarcharissue_record_uuid
pseudo_patient_uuidvarcharpatient_uuid
pseudo_issue_record_organisation_uuidvarcharissue_record_organisation_uuid
pseudo_patient_organisation_uuidvarcharpatient_organisation_uuid
pseudo_drug_record_uuidvarchardrug_record_uuid
pseudo_consultation_uuidvarcharconsultation_uuid
pseudo_consultation_section_uuidvarcharconsultation_section_uuid
prescription_type_idbigint
prescription_type_descriptionvarchar
availability_datetimetimestamp(6) with time zone
effective_datetimetimestamp(6) with time zone
effective_datetime_precisionvarchar
cancellation_datetimetimestamp(6) with time zone
quantitydecimal(9, 3)
quantity_unitvarchar
dosagevarchar
original_termvarchar
local_mixture_idbigint
local_mixture_namevarchar
review_datedate
course_duration_in_daysbigint
consultation_source_code_idbigint
consultation_source_original_termvarchar
code_idbigint
min_next_issue_daysbigint
max_next_issue_daysbigint
estimated_nhs_costreal
issue_method_idbigint
issue_method_descriptionvarchar
quantity_unit_of_measure_idbigint
quantity_representationvarchar
quantity_multiplicanddecimal(9, 3)
quantity_multiplierdecimal(9, 3)
quantity_multiplier_uomvarchar
is_cancelledboolean
is_privately_prescribedboolean
is_prescribed_as_contraceptiveboolean
is_sensitiveboolean
confidentiality_policy_idbigint
is_confidentialboolean
organisationvarchar
transform_datetimetimestamp(6) with time zone

The table below presents the flavour specific schema and maps columns between core, V1, and V2. Refer to Changes in iPCV V2 for more information.

Column NameData TypeData in V1Data in V2Core MappingComments
_ingest_timevarchar✓✓
is_deletedboolean✗✓
issue_record_idbigint✗✓
emis_issue_guidvarchar✓✓issue_record_guid
exa_issue_guidvarchar✓✓issue_record_uuid
drug_record_idbigint✗✓
emis_drug_guidvarchar✓✓drug_record_guid
exa_drug_guidvarchar✓✓drug_record_uuid
nhs_prescribing_agencyvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
emis_enteredby_userinrole_guidvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
emis_authorising_userinrole_guidvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
cancellation_userinrole_guidvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
entered_by_user_in_role_idbigint✗✓
entered_by_user_in_role_uuidvarchar✗✓
authorising_user_in_role_idbigint✗✓
authorising_user_in_role_uuidvarchar✗✓
cancellation_reasonvarchar✓✓
cancelled_by_user_in_role_idbigint✗✓
cancelled_by_user_in_role_uuidvarchar✗✓
emis_code_idbigint✓✓code_id
confidential_flagboolean✓✓is_confidential
confidentiality_policy_idbigint✓✓
consultation_source_emis_code_idbigint✓✓consultation_source_code_id
consultation_source_emis_original_termvarchar✓✓consultation_source_original_term
dosevarchar✓✓dosage
duration_in_daysbigint✓✓course_duration_in_days
fhir_medication_statusvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
fhir_medication_intentvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
effective_datetimestamp(6) with time zone✓✓effective_datetime
effective_date_precisionvarchar✓✓effective_datetime_precision
issue_method_idbigint✗✓
emis_issue_methodvarchar✓✓issue_method_description
emis_mostrecent_issue_methodvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
prescription_type_idbigint✗✓
emis_prescription_typevarchar✓✓prescription_type_description
nhs_prescription_typevarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
patient_organisation_idbigint✗✓
emis_registration_organisation_guidvarchar✓✓patient_organisation_guid
patient_organisation_uuidvarchar✗✓
consultation_idbigint✗✓
emis_encounter_guidvarchar✓✓consultation_guid
exa_encounter_guidvarchar✓✓consultation_uuid
consultation_section_idbigint✗✓
consultation_section_uuidvarchar✗✓
estimated_nhs_costreal✓✓
max_nextissue_daysbigint✓✓max_next_issue_days
min_nextissue_daysbigint✓✓min_next_issue_days
issue_record_organisation_idbigint✗✓
issue_record_organisation_guidvarchar✓✓Renamed from emis_medication_organisation_guid in V1
issue_record_organisation_uuidvarchar✗✓
emis_patient_idbigint✓✓patient_id
patient_uuidvarchar✗✓
prescribed_as_contraceptive_flagboolean✓✓is_prescribed_as_contraceptive
privately_prescribed_flagboolean✓✓is_privately_prescribed
quantitydecimal(9, 3)✓✓
recorded_datetimestamp(6) with time zone✓✓availability_datetime
registration_guidvarchar✓✓patient_guid
registration_ods_codevarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
review_datedate✓✓
emis_original_termvarchar✓✓original_term
local_mixture_idbigint✗✓
local_mixture_namevarchar✗✓
sensitive_flagboolean✓✓is_sensitive
cancellation_datetimestamp(6) with time zone✓✓cancellation_datetime
is_cancelledboolean✗✓
quantity_unit_of_measure_idbigint✗✓
uomvarchar✓✓quantity_unit
_execution_datevarchar✓✓
transform_datetimetimestamp(6) with time zone✗✓
organisationvarchar✓✓
exa_prescription_guidvarchar✓✗
snomed_concept_idbigint✓✗
snomed_description_idbigint✓✗
other_code_systemvarchar✓✗
other_codevarchar✓✗
other_displayvarchar✓✗
emis_medication_statusvarchar✓✗
pharmacy_textvarchar✓✗
pharmacy_messagevarchar✓✗
patient_textvarchar✓✗
patient_messagevarchar✓✗
regular_patient_flagboolean✓✗
regular_current_active_and_inactive_flagboolean✓✗
regular_and_current_active_flagboolean✓✗
non_regular_and_current_active_flagboolean✓✗
sensitive_patient_flagboolean✓✗
confidential_patient_flagboolean✓✗

The table below presents the flavour specific schema and maps columns between core, V1, and V2. Refer to Changes in iPCV V2 for more information.

Column NameData TypeData in V1Data in V2Core MappingComments
_ingest_timevarchar✓✓
is_deletedboolean✓✓Renamed from deleted in V1
issue_record_idbigint✗✓
emis_issue_guidvarchar✓✓issue_record_guid
exa_issue_guidvarchar✓✓issue_record_uuid
drug_record_idbigint✗✓
emis_drug_guidvarchar✓✓drug_record_guid
drug_record_uuidvarchar✗✓
pseudo_registration_guidvarchar✓✓patient_guidhashed
pseudo_patient_uuidvarchar✗✓patient_uuidhashed
issue_record_organisation_idbigint✗✓
emis_medication_organisation_guidvarchar✓✓issue_record_organisation_guid
issue_record_organisation_uuidvarchar✗✓
patient_organisation_idbigint✗✓
emis_registration_organisation_guidvarchar✓✓patient_organisation_guid
patient_organisation_guidvarchar✗✓
effective_datedate✓✓effective_datetime
effective_date_precisionvarchar✓✓effective_datetime_precision
entered_datedate✓✓availability_datetime
entered_timevarchar✓✓availability_datetime
emis_authorising_userinrole_guidvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
emis_enteredby_userinrole_guidvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
authorising_user_in_role_idbigint✗✓
authorising_user_in_role_uuidvarchar✗✓
entered_by_user_in_role_idbigint✗✓
entered_by_user_in_role_uuidvarchar✗✓
emis_code_idbigint✓✓code_id
emis_original_termvarchar✓✓original_term
local_mixture_idbigint✗✓
local_mixture_namevarchar✗✓
dosevarchar✓✓dosage
quantitydecimal(9, 3)✓✓
quantity_unit_of_measure_idbigint✗✓
uomvarchar✓✓quantity_unit
duration_in_daysbigint✓✓course_duration_in_days
estimated_nhs_costreal✓✓
confidential_flagboolean✓✓is_confidential
processing_idbigint✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
_execution_datevarchar✓✓
transform_datetimetimestamp(6) with time zone✗✓
organisationvarchar✓✓

The table below presents the flavour specific schema and maps columns between core, V1, and V2. Refer to Changes in iPCV V2 for more information.

Column NameData TypeData in V1Data in V2Core MappingComments
_ingest_timevarchar✓✓
is_deletedboolean✓✓Renamed from deleted in V1
issue_record_idbigint✗✓
emis_issue_guidvarchar✓✓issue_record_guid
exa_issue_guidvarchar✓✓issue_record_uuid
drug_record_idbigint✗✓
emis_drug_guidvarchar✓✓drug_record_guid
drug_record_uuidvarchar✗✓
pseudo_registration_guidvarchar✓✓patient_guidhashed
pseudo_patient_uuidvarchar✗✓patient_uuidhashed
issue_record_organisation_idbigint✗✓
issue_record_organisation_guidvarchar✓✓Renamed from emis_medication_organisation_guid in V1
issue_record_organisation_uuidvarchar✗✓
patient_organisation_idbigint✗✓
emis_registration_organisation_guidvarchar✓✓patient_organisation_guid
patient_organisation_uuidvarchar✗✓
effective_datedate✓✓effective_datetime
effective_date_precisionvarchar✓✓effective_datetime_precision
entered_datedate✓✓availability_datetime
entered_timevarchar✓✓availability_datetime
emis_authorising_userinrole_guidvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
emis_enteredby_userinrole_guidvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
authorising_user_in_role_idbigint✗✓
authorising_user_in_role_uuidvarchar✗✓
entered_by_user_in_role_idbigint✗✓
entered_by_user_in_role_uuidvarchar✗✓
emis_code_idbigint✓✓code_id
emis_original_termvarchar✓✓original_term
local_mixture_idbigint✗✓
local_mixture_namevarchar✗✓
dosevarchar✓✓dosage
quantitydecimal(9, 3)✓✓
quantity_unit_of_measure_idbigint✗✓
uomvarchar✓✓quantity_unit
prescription_type_idbigint✗✓
emis_prescription_typevarchar✗✓prescription_type_description
duration_in_daysbigint✓✓course_duration_in_days
estimated_nhs_costreal✓✓
confidential_flagboolean✓✓is_confidential
processing_idbigint✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
transform_datetimetimestamp(6) with time zone✗✓
_execution_datevarchar✓✓Renamed from execution_date in V1
organisationvarchar✓✓

The table below presents the flavour specific schema and maps columns between core, V1, and V2. Refer to Changes in iPCV V2 for more information.

Column NameData TypeData in V1Data in V2Core MappingComments
_ingest_timevarchar✓✓
is_deletedboolean✓✓Renamed from deleted in V1
issue_record_idbigint✗✓
issue_record_guidvarchar✓✓
id_type5varchar✓✓issue_record_uuid
drug_record_idbigint✗✓
drug_record_guidvarchar✓✓
drug_record_uuidvarchar✗✓
patient_guidvarchar✓✓
patient_uuidvarchar✗✓
issue_record_organisation_idbigint✗✓
issue_record_organisation_guidvarchar✓✓Renamed from organisation_guid in V1
issue_record_organisation_uuidvarchar✗✓
patient_organisation_idbigint✗✓
emis_registration_organisation_guidvarchar✓✓patient_organisation_guid
patient_organisation_uuidvarchar✗✓
effective_datedate✓✓effective_datetime
effective_date_precisionvarchar✓✓effective_datetime_precision
entered_datedate✓✓availability_datetime
entered_timevarchar✓✓availability_datetime
clinician_user_in_role_guidvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
entered_by_user_in_role_guidvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
authorising_user_in_role_idbigint✗✓
authorising_user_in_role_uuidvarchar✗✓
entered_by_user_in_role_idbigint✗✓
entered_by_user_in_role_uuidvarchar✗✓
code_idbigint✓✓
dosagevarchar✓✓
quantitydecimal(9, 3)✓✓
quantity_unit_of_measure_idbigint✗✓
quantity_unitvarchar✓✓
prescription_type_idbigint✗✓
prescription_type_descriptionvarchar✗✓
problem_observation_guidvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
course_duration_in_daysbigint✓✓
estimated_nhs_costreal✓✓
is_confidentialboolean✓✓
processing_idbigint✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
_execution_datevarchar✓✓Renamed from execution_date in V1
transform_datetimetimestamp(6) with time zone✗✓
organisationvarchar✓✓

The table below presents the flavour specific schema and maps columns between core, V1, and V2. Refer to Changes in iPCV V2 for more information.

Column NameData TypeData in V1Data in V2Core MappingComments
_ingest_timevarchar✓✓
is_deletedboolean✗✓
issue_record_idbigint✗✓
emis_issue_guidvarchar✓✓issue_record_guid
exa_issue_guidvarchar✓✓issue_record_uuid
drug_record_idbigint✗✓
emis_drug_guidvarchar✓✓drug_record_guid
exa_drug_guidvarchar✓✓drug_record_uuid
nhs_prescribing_agencyvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
emis_enteredby_userinrole_guidvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
emis_authorising_userinrole_guidvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
cancellation_userinrole_guidvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
entered_by_user_in_role_idbigint✗✓
entered_by_user_in_role_uuidvarchar✗✓
authorising_user_in_role_idbigint✗✓
authorising_user_in_role_uuidvarchar✗✓
cancellation_reasonvarchar✓✓
is_cancelledboolean✗✓
cancelled_by_user_in_role_idbigint✗✓
cancelled_by_user_in_role_uuidvarchar✗✓
emis_code_idbigint✓✓code_id
confidential_flagboolean✓✓is_confidential
confidentiality_policy_idbigint✓✓
consultation_source_emis_code_idbigint✓✓consultation_source_code_id
consultation_source_emis_original_termvarchar✓✓consultation_source_original_term
dosevarchar✓✓dosage
duration_in_daysbigint✓✓course_duration_in_days
duration_uomvarchar✓✓
fhir_medication_statusvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
fhir_medication_intentvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
effective_datetimestamp(6) with time zone✓✓effective_datetime
effective_date_precisionvarchar✓✓effective_datetime_precision
issue_method_idbigint✗✓
emis_issue_methodvarchar✓✓issue_method_description
prescription_type_idbigint✗✓
emis_prescription_typevarchar✓✓prescription_type_description
nhs_prescription_typevarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
patient_organisation_idbigint✗✓
emis_registration_organisation_guidvarchar✓✓patient_organisation_guid
patient_organisation_uuidvarchar✗✓
consultation_idbigint✗✓
emis_encounter_guidvarchar✓✓consultation_guid
exa_encounter_guidvarchar✓✓consultation_uuid
consultation_section_idbigint✗✓
consultation_section_uuidvarchar✗✓
estimated_nhs_costreal✓✓
max_nextissue_daysbigint✓✓max_next_issue_days
min_nextissue_daysbigint✓✓min_next_issue_days
issue_record_organisation_idbigint✗✓
issue_record_organisation_guidvarchar✓✓Renamed from emis_medication_organisation_guid in V1
issue_record_organisation_uuidvarchar✗✓
patient_messagevarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
patient_textvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
emis_patient_idbigint✓✓patient_id
patient_uuidvarchar✗✓
pharmacy_messagevarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
pharmacy_textvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
prescribed_as_contraceptive_flagboolean✓✓is_prescribed_as_contraceptive
privately_prescribed_flagboolean✓✓is_privately_prescribed
quantitydecimal(9, 3)✓✓
quantity_multiplicanddecimal(9, 3)✓✓
quantity_multiplierdecimal(9, 3)✓✓
quantity_multiplier_uomvarchar✓✓
quantity_representationvarchar✓✓
recorded_datetimestamp(6) with time zone✓✓availability_datetime
registration_guidvarchar✓✓patient_guid
registration_ods_codevarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
reimburse_typevarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
review_datedate✓✓
emis_original_termvarchar✓✓original_term
local_mixture_idbigint✗✓
local_mixture_namevarchar✗✓
sensitive_flagboolean✓✓is_sensitive
cancellation_datetimestamp(6) with time zone✓✓cancellation_datetime
quantity_unit_of_measure_idbigint✗✓
uomvarchar✓✓quantity_unit
_execution_datevarchar✓✓
transform_datetimetimestamp(6) with time zone✗✓
organisationvarchar✓✓
opt_out_93c1_flagboolean✓✗
opt_out_9nd19nu09nu4_flagboolean✓✗
opt_out_9nd19nu0_flagboolean✓✗
opt_out_9nu0_flagboolean✓✗
confidential_patient_flagboolean✓✗
sensitive_patient_flagboolean✓✗
dummy_patient_flagboolean✓✗
regular_patient_flagboolean✓✗
regular_and_current_active_flagboolean✓✗
regular_current_active_and_inactive_flagboolean✓✗
non_regular_and_current_active_flagboolean✓✗
snomed_concept_idbigint✓✗
snomed_description_idbigint✓✗
other_codevarchar✓✗
other_code_systemvarchar✓✗
other_displayvarchar✓✗
uom_dmdvarchar✓✗
exa_prescription_guidvarchar✓✗
_record_versionvarchar✓✗
_update_datevarchar✓✗
_update_hourvarchar✓✗

The table below presents the flavour specific schema and maps columns between core, V1, and V2. Refer to Changes in iPCV V2 for more information.

Column NameData TypeData in V1Data in V2Core MappingComments
_ingest_timevarchar✓
is_deletedboolean✓
issue_record_idbigint✓
emis_issue_guidvarchar✓issue_record_guid
exa_issue_guidvarchar✓issue_record_uuid
drug_record_idbigint✓
emis_drug_guidvarchar✓drug_record_guid
exa_drug_guidvarchar✓drug_record_uuid
pseudo_registration_guid_oureavarchar✓patient_guidhashed
pseudo_patient_uuidvarchar✓patient_uuidhashed
patient_organisation_idbigint✓
emis_registration_organisation_guidvarchar✓patient_organisation_guid
patient_organisation_uuidvarchar✓
issue_record_organisation_idbigint✓
issue_record_organisation_guidvarchar✓✓Renamed from emis_medication_organisation_guid in V1
issue_record_organisation_uuidvarchar✓
nhs_prescribing_agencyvarchar✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
emis_enteredby_userinrole_guidvarchar✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
emis_authorising_userinrole_guidvarchar✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
cancellation_userinrole_guidvarchar✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
entered_by_user_in_role_uuidvarchar✓
authorising_user_in_role_uuidvarchar✓
cancelled_by_user_in_role_uuidvarchar✓
cancellation_reasonvarchar✓
is_cancelledboolean✓
emis_code_idbigint✓code_id
confidential_flagboolean✓is_confidential
confidentiality_policy_idbigint✓
consultation_source_emis_code_idbigint✓consultation_source_code_id
consultation_source_emis_original_termvarchar✓consultation_source_original_term
dosevarchar✓dosage
duration_in_daysbigint✓course_duration_in_days
duration_uomvarchar✓
fhir_medication_statusvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
fhir_medication_intentvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
effective_datetimestamp(6) with time zone✓effective_datetime
effective_date_precisionvarchar✓effective_datetime_precision
issue_method_idbigint✓
emis_issue_methodvarchar✓issue_method_description
prescription_type_idbigint✓
emis_prescription_typevarchar✓prescription_type_description
nhs_prescription_typevarchar✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
consultation_idbigint✓
emis_encounter_guidvarchar✓consultation_guid
exa_encounter_guidvarchar✓consultation_uuid
consultation_section_idbigint✓
consultation_section_uuidvarchar✓
estimated_nhs_costreal✓
max_nextissue_daysbigint✓max_next_issue_days
min_nextissue_daysbigint✓min_next_issue_days
prescribed_as_contraceptive_flagboolean✓is_prescribed_as_contraceptive
privately_prescribed_flagboolean✓is_privately_prescribed
quantitydecimal(9, 3)✓
quantity_multiplicanddecimal(9, 3)✓
quantity_multiplierdecimal(9, 3)✓
quantity_multiplier_uomvarchar✓
quantity_representationvarchar✓
registration_ods_codevarchar✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
reimburse_typevarchar✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
review_datedate✓
emis_original_termvarchar✓original_term
local_mixture_idbigint✓
local_mixture_namevarchar✓
sensitive_flagboolean✓is_sensitive
cancellation_datetimestamp(6) with time zone✓cancellation_datetime
quantity_unit_of_measure_idbigint✓
uomvarchar✓quantity_unit
_execution_datevarchar✓
transform_datetimetimestamp(6) with time zone✓
organisationvarchar✓
_record_versionvarchar✓✗
_update_datevarchar✓✗
_update_hourvarchar✓✗