Page Status: updated 2022-11-24

NLLPrescriptionBundle (Bundle)

Page index

Introduction

The profile NLLPrescriptionBundle is used when managing multiple medication requests in one transaction. The currently supported scenarios are related to certain situations when managing parallell prescriptions. See VR178 in Handbok för vård och apoteksaktörer - Nationella läkemedelslistan - Generella verksamhetsregler for details about conditions that apply when using bundles for managing parallell prescriptions.

More information about parallell prescriptions can be found in Handbok för vård och apoteksaktörer - Nationella läkemedelslistan and short description is available in this implementation guide on the page describing MedicationRequest MedicationRequest

In this use case the endpoint is [base] and not [base]/Bundle.

Overview

idΣ0..1string
metaΣ0..1Meta
implicitRulesΣ ?!0..1uri
language0..1codeBinding
identifierΣ0..1Identifier
typeS Σ1..1codeBinding
timestampΣ0..1instant
totalΣ I0..1unsignedInt
id0..1string
extensionI0..*Extension
modifierExtensionΣ ?! I0..*Extension
relationΣ1..1string
urlΣ1..1uri
id0..1string
extensionI0..*Extension
modifierExtensionΣ ?! I0..*Extension
fullUrlS Σ0..1uri
resourceS Σ I1..1NLLMedicationRequest
id0..1string
id0..1string
id0..1string
extensionI0..*Extension
url1..1uriFixed Value
id0..1string
extensionI0..*Extension
id0..1string
extensionI0..*Extension
systemΣ0..1uri
versionΣ0..1string
codeS Σ1..1code
displayΣ0..1string
userSelectedΣ0..1boolean
textS Σ0..1string
id0..1string
extensionI0..*Extension
url1..1uriFixed Value
id0..1string
extensionI0..*Extension
id0..1string
extensionI0..*Extension
systemΣ0..1uri
versionΣ0..1string
codeS Σ1..1code
displayΣ0..1string
userSelectedΣ0..1boolean
textΣ0..1string
url1..1uriFixed Value
modifierExtensionΣ ?! I0..*Extension
methodS Σ1..1codeBinding
urlS Σ1..1uri
ifNoneMatchΣ0..1string
ifModifiedSinceΣ0..1instant
ifMatchΣ0..1string
ifNoneExistΣ0..1string
id0..1string
extensionI0..*Extension
modifierExtensionΣ ?! I0..*Extension
statusS Σ1..1string
locationS Σ0..1uri
etagΣ0..1string
lastModifiedΣ0..1instant
outcomeS Σ0..1Resource
signatureΣ0..1Signature

Details

Description of all elements can be found here, Element descriptions.

Provenance details, reason and activity

The updated prescriptions may be updated due to separate activities and for separate resaons. Therefore this data, which usually is provided in the header x-provenance, is now sent per prescription within the bundle. This is done on the extension Bundle.entry.request.extension:nllProvenanceDetails NLLProvenanceDetails which gives the possibility to provide a unique "reason" and "activity" for each MedicationRequest in the request.

Error handling

If an error is detected on one of the medication request resources in the bundle the whole set of medication requests are rejected with an HTTP status of 4xx. The returned OperationOutcome will contain information about the detected issues and errors.

Supported operations

HTTP methods

Operation Supported Comment
POST yes See comment below

A new medication request is created by setting entry.request.method to POST. An existing medication request is updated by setting entry.request.method to PUT.

The result is eighter a Bundle of type transaction-response with one entry per entry in the incoming Bundle or an OperationOutcome if the request was rejected.

When interacting with this resource a set of HTTP-headers must be included in the request, see HTTP Header and Authorization.

Query operations

Search is not supported for this resource.