Page Status: updated 2025-03-14
Bundles - TransactionBundle
Page index
- Introduction
- Examples
- HTTP Headers
- Example 1 - Create prescription and register a dispense in a transaction
- Example 2 - Update prescription and register a dispense in a transaction
- Example 3 - Prescribe and create data lock in a transaction
- Example 4 - Create a dose dispensation consent and a dose dispensing basis in one transaction
- Example 5 - Verify an update of a prescription and register a dispense one transaction
Introduction
This page describes how to use NLLTransactionBundle to make changes to multiple resources of different types in a single transaction by way of example.
There is no specific resource associated with this bundle, instead POST to the base URL:
POST [base]/
Verify
It is also possible to verify a NLLTransactionBundle using the operation $verify
, see OperationDefinition.
HTTP-headers
See HTTP Header and Authorization for generic information about all HTTP headers used by the National Medication List.
Examples
Example 1 - Create prescription and register a dispense in a transaction
Sv. Skapa förskrivning och registrera uttag i samma transaktion
This example shows how to create a prescription and register a dispensation in a single transaction. To be able to link the dispense to the not-yet-created prescription, we use a placeholder id.
Note that the id of the MedicationRequest in the response will not be the same as the placeholder id provided in the request.
HTTP body: Bundle
x-provenance header: Provenance
Example 2 - Update prescription and register a dispense in a transaction
Sv. Uppdatera förskrivning och registrera uttag i samma transaktion
This example is similar to example 1, but in this case the prescription is updated and is referenced by its current version.
HTTP body: Bundle
x-provenance header: Provenance
Example 3 - Prescribe and create data lock in a transaction
Sv. Skapa förskrivning och skapa sekretess-spärr i samma transaktion
This example shows how to create a prescription and register a data lock in a single transaction.
HTTP body: Bundle
x-provenance header: Provenance
Example 4 - Create a dose dispensation consent and a dose dispensing basis in one transaction
Sv. Skapa dossamtycke och dosunderlag i samma transaktion
This example shows how to create a dose consent (NLLMultiDoseDispConsent) and a dose dispense basis (NLLMultiDoseDispensingBasis) in a single transaction.
HTTP body: Bundle
x-provenance header: Provenance
Example 5 - Verify an update of a prescription and register a dispense one transaction
Sv. Kontrollera uppdatera förskrivning och registrera uttag i samma transaktion
This example shows how to verify creation of a prescription and registration a dispensation in a single transaction.
HTTP body: Parameters
x-provenance header: Provenance