Page Status: updated 2025-06-13

Create Paper Based MedicationDispense

Page index

Introduction

sv. Registrera uttag.

This page describes how to create a paper based medication dispense for a patient.

Before a MedicationDispense is created, the user needs access to other information in the National Medication List. For more information on different scenarios and what information is required for each scenario, see Handbok för vård- och apotekstjänster: Verksamhetsområden.

Request

Creating a paper based medication dispense is done by the following operation;

POST [base]/MedicationDispense

Request Headers

See HTTP Header and Authorization for generic information about all HTTP headers used by the National Medication List including information about authorization, purpose and access type. The authorization token is translated to an authority role. The authority role together with the purpose and type of access is used by the National Medication List to determine what actions a user may perform and what information the user may access.

Header Comment
authorization The users's security token
prefer Type of returned content
x-access The cause for the call
x-context-id An ID to group a sequence of requests
x-org-info Information about the users's organisation
x-patientref The logical ID of the patient
x-provenance A provenance resource with information about the user interacting with NLL
x-purpose The purpose of the call
x-request-id A random and unique ID
x-user-agent Information about the calling system

Request Body

See NLLDispensePaperPrescription for more information about the MedicationDispense resource.

Examples

Example 1 - Create a dispense paper prescription

This example shows how a pharmacy registers a dispense when there is no prescription in the National Medication List. The prescription were in this case made by a physician in Norway to a Swedish patient. The dispense is therefore not linked to a prescription, i.e. the element authorizingPrescription is missing, and the patient is refered to by a literal reference, i.e. subject:reference points at Patient/b00a0407-b781-43e8-983b-74fdfb8eb97d.

Request

See Request above.

Request Headers

Header Value Comment
authorization {...,"APOTEKSID":"7350046611966","LEGITIMATIONSKOD":"920007","YRKESKOD":["AP"],"loa":3 Selected information from the OAuth2-ticket in decoded form
prefer return=representation
x-org-info ´{"orgenhetsOrt":"Sala"}´ Decoded value
x-provenance Provenance for a pharmacy user Decoded value
x-request-id 01e09388-ebb6-4f60-9d89-0605690b2f85
x-user-agent {"name":"Test system testaren","version":"0.01010101010.1 beta"} Decoded value

Request Body

See Create dispense paper prescription.