The SanteDB GS1 BMS interfaces are undergoing refactoring from OpenIZ. The information in these pages document the OpenIZ GS1 plugin that is currently ported to SanteDB however has not been validated.
GS1 Stock Messaging Workflows
The overall order flow in SanteDB follows the order flow in GS1:
An order is created in SanteDB (a Request for Supply Act ) which is stored with product classes and quantities requested.
SanteDB's iCDR constructs a Order message and sends it to the supplier
The supplier validates the order and responds to SanteDB with an OrderResponse which is linked in SanteDB (a Promise to Supply which Fulfills the Request for Supply)
The supplier picks and packs the order and despatches the order sending SanteDB with actual product (GTIN and LOT#) via a DespatchAdvice , SanteDB stores the order in RIM (a EventOccurence Supply which documents Departure of the Promise for Supply)
The product arrives at the clinic, the clinic staff count and verify the product and confirm receipt (a EventOccurrence of Supply which documents Arrival of the EventOccurence Supply)
SanteDB's iCDR constructs a ReceiveAdvice message and sends it to the supplier.
Order Flow
The order flow is triggered whenever a client of the iCDR submits an Act with mood code Request and a type of Supply (i.e. Request for Supply). When configured, the iCDR will construct a GS1 Order message and will issue the message over AS.2 over HTTP with mime encoded attachment or can perform a simple POST with the order message as the request.
The logistics management information system may perform an internal approval of the order and can accept the order (with modifications to the quantities) via a GS1 Order Response.
The order and order response is made up of a series of tradeItemDetail which are mapped to the Product participations in the original Supply request (these are typically Materials). If an order response is set then the iCDR creates a new Act with mood-code of Promise linking the new act with the request act as a Fulfills relationship.
For example, an order request from Elbonia's Good Health Hospital:
Once the order is approved by the LMIS / Distributor it is expected that the requested order will be picked and packed. Once the order has been despatched (i.e. it is on a truck, or courier, etc.) the LMIS will respond with a GS1 Despatch Advice message.
The Despatch Advice differs from the Order message in that it contains:
The actual quantity of each item packed and shipped
The actual product codes (GTIN) and lot #'s of products shipped
The expected date of delivery (EDD)
The iCDR converts this into an Act with class code of Supply , mood code of EventOccurence and a status of Active, dCDRs will synchronize this from the core iCDR model on their next synchronization, or clients may request the information in any of the supported iCDR messaging formats. The new Act is linked to the original Act with an ActRelationship carrying relationship type of Fulfills (i.e. the new act fulfills the request act)
Orderless Despatch
In some jurisdictions stock is sent without explicit ordering to a facility. These orderless despatches are supported by SanteDB and are implemented as a GS1 DespatchAdvice message with no source order information.
Order Receive
Once an order is received by the remote facility or original caller, the user will open the package and will verify the contents. This may include:
Verifying the quantities of stock shipped
Verifying the cold storage status (VVM) of any vials of product shipped
Identifying breakage and items to be rejected.
The caller creates a new Act with class code Supply with status code of Complete and mood code of EventOccurence. The created act is linked to the despatched act with an ActRelationship carrying type Arrival (i.e. the new act documents the arrival of the previous act).
The previous act has its status code set to Complete .
For example, an order receive message for Good Health Hospital may appear as: