Skip to content
Partner Developer Portal

Schema

Column NameData TypeDescription
is_deletedbooleanWhether this record should be considered deleted. Data deleted at source has non-key columns set to null while primary keys are retained.
organisationvarcharAn organisation is synonymous with a pharmacy and is also known as the RXid.
order_history_item_idintegerUnique identifier for the order history item.
order_history_idintegerUnique identifier for the order history.
order_pad_idintegerUnique identifier for the order pad.
order_history_item_descriptionvarcharItem description.
pack_code_idintegerLocal identifier of ProScript Connect packs.
order_quantityintegerOrdered quantity.
received_quantityintegerReceived quantity.
book_in_quantityintegerBooked in quantity.
costnumericCost of an item.
pip_codevarcharPIP code is a unique identifier allocated to a specific product.
order_codevarcharOrder code of an item.
order_status_reasonvarcharReason an order failed to transmit.
order_item_status_reasonvarcharReason an order item failed to transmit.
date_actioneddateDate when the order history item was actioned from Goods In.
order_history_item_guidvarcharGlobally unique identifier for the order history item.
supplied_byvarcharDetails of the wholesaler the item was sent to, including fulfilment by another supplier.
retail_pricenumericRetail price.
vat_ratenumericVAT rate.
pharmacy_idintegerForeign key to the pharmacy table.
wholesaler_idintegerForeign key to the wholesaler table.
order_referencevarcharOrder reference generated using OrderHistoryId and WholesalerCode.
order_history_status_idintegerOrder history status identifier. Foreign key to order history status.
order_history_added_date_timetimestampDate and time when the order history was added.
order_history_modified_date_timetimestampDate and time when the order history was last modified.
pharmacy_namevarcharThe name of the pharmacy.
wholesaler_codevarcharWholesaler code used to identify the order pad.
supplier_codesvarcharSecondary supplier codes used to search an item within products data.
wholesaler_account_numbervarcharWholesaler account number.
wholesaler_namevarcharWholesaler name.
wholesaler_type_idintegerForeign key to wholesaler type.
product_pack_sizenumericPack size from PKB.
product_namevarcharPKB product name.
manufacturer_namevarcharPKB manufacturer name.
product_pack_typeintegerDM+D product pack type (0 = VMPP, 1 = AMPP).
product_pack_code_idintegerDM+D pack identifier (VMPP/AMPP). Relates to virtual and actual product pack entities.
virtual_product_pack_idintegerGeneric pack information corresponding to a virtual product pack.
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.
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.
order_statusvarcharOrder status verbose value (for example Sending, Failed, Sent, Completed).
order_item_status_idintegerOrder history item status identifier. Foreign key to order item status.
order_item_statusvarcharOrder item status verbose value (for example None, Accepted, Rejected).