Skip to content
Partner Developer Portal

Schema

Column NameData TypeDescriptionExample
cancellation_datetimetimestamp(6) with time zoneDate and time the issue was cancelled; NULL if not cancelled2023-05-12 14:30:15.000000 UTC
code_idbigintEMIS code ID - internal identifier2986010
consultation_idvarbinaryUnique identifier for the linked consultation for this diary entryF422B34E0AC397B6 [16]
consultation_source_code_idbigintEMIS code ID representing the consultation purpose; used for categorisation1572871000006117
course_duration_in_daysbigintIntended course duration in days7
dmd_product_code_idbigintDictionary of Medicines and Devices (dm+d) product identifier; also a SNOMED CT concept identifier12354611500001104
dosagevarcharDosage instructions for the medication as recorded at the point of issueOne To Be Taken At Bedtime
drug_record_idvarbinaryUnique identifier for the linked medication drug recordF422B34E0AC397B6 [16]
effective_datetimetimestamp(6) with time zoneDate and time the issue record came into effect2023-05-12 14:30:15.000000 UTC
estimated_nhs_costdecimal(10,4)Estimated NHS cost of the issued medication2.84
is_cancelledbooleanIndicates if the prescription issue has been cancelledfalse
is_deletedbooleanIf this record should be considered soft deleted; all columns excluding primary keys will be NULL if TRUEfalse
is_prescribed_as_contraceptivebooleanIndicates if the medication is prescribed as a contraceptivefalse
is_privately_prescribedbooleanIndicates if the medication is privately prescribedfalse
issue_method_descriptionvarcharDescription of the issue methodElectronic
issue_record_idvarbinaryUnique identifier for the medication issue recordF422B34E0AC397B6 [16]
local_mixture_namevarcharName of the local mixture, populated when the issue relates to a locally prepared mixtureHYDROCORTISONE 0.5 PERCENT IN WSP
max_next_issue_daysbigintThe maximum number of days that a patient can wait for before getting a prescription7
min_next_issue_daysbigintThe number of days that a patient needs to wait in-between getting prescriptions25
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]
prescription_type_descriptionvarcharDescription of the prescription type (‘Acute’, ‘Repeat’, ‘Repeat Dispensing’ or ‘Automatic’)acute
quantitydecimal(9,3)Total quantity of medication issued28
quantity_multiplicanddecimal(9,3)Multiplicand component of the quantity calculation1
quantity_multiplierdecimal(9,3)Multiplier component of the quantity calculation200
quantity_multiplier_uomvarcharUnit of measure for the quantity multiplierml
quantity_representationvarcharHuman-readable representation of the quantity28 tablet(s)
quantity_unitvarcharUnit of measure for the total issued quantitytablet(s)
review_datetimestamp(6) with time zoneDate that this prescription needs to be reviewed by a clinician2023-05-12 14:30:15.000000 UTC
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