Page Status: updated 2025-03-14

Bundles - TransactionBundle

Page index

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

Command 'pagelink' could not render: Page not found.
.

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: Create a prescription and register a dispensation of that prescription in a single transaction
x-provenance header: Example of Provenance for a pharmacy user

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: Update a prescription and register a dispensation of that prescription in a single transaction
x-provenance header: Example of Provenance for a pharmacy user

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: Create a prescription and create a data lock in a single transaction
x-provenance header: Example of Provenance of a physician at a health care unit

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: Register a patient's consent for multi dose dispensing and create a multi dose dispensing basis, in a single transaction
x-provenance header: Example of Provenance of a physician at a health care unit

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: Verify NLLTransactionBundle
x-provenance header: Provenance for a pharmacy user