Skip to content
Partner Developer Portal

Schema

Column NameData TypeDescription
mds_item_idintegerPrimary key for the MDS item.
mds_item_guidvarcharUnique identifier for the MDS item across systems.
organisationvarcharAn organisation is synonymous with a pharmacy and is also known as the RXid.
is_deletedbooleanWhether this record should be considered deleted. Data deleted at source has non-key columns set to null while primary keys are retained.
pharmacy_idintegerForeign key to the pharmacy table.
patient_idintegerForeign key to the patient table, identifying the patient.
unique_patient_idvarcharUnique identifier for the patient, generated as a surrogate key from organisation and patient_id.
patient_guidvarcharUnique identifier for the patient across systems.
nursing_home_idintegerForeign key for nursing home identification.
preparation_code_idintegerPreparation code identifier.
pack_code_idintegerLocal identifier of ProScript Connect packs.
pharmacy_namevarcharThe name of the pharmacy.
patient_deletedbooleanWhether or not the patient is deleted.
patient_full_namevarcharFull name of the patient (formatted).
patient_deceasedbooleanWhether or not the patient has died.
date_addedtimestampThe date when the MDS item was added.
dispensed_datetimestampThe date when the item was dispensed.
nursing_home_namevarcharNursing home name.
nursing_home_typevarcharNursing home type.
quantitynumericQuantity of the MDS item.
product_namevarcharText description of the product - pack name.
branch_identifiervarcharBranch identifier assigned by head office for data exchange workflows.
national_practice_codevarcharPharmacy NacsCode used to identify the pharmacy when the user logs in.
row_idvarcharUnique hash generated based on column values, used to identify data changes.
last_updated_datedateDate that this record was last updated by the orchestration process.