Page Status: updated 2022-10-31

Multi dose dispensing (Basic) - Create

Page index

Introduction

Sv. Registrera dosunderlag.

This page describes how to create a basis for multi dose dispensing (sv. dosunderlag) for a patient by an example.

Creating a multi dose dispensing is done by the following operation.

POST [base]/Basic

A set of HTTP headers must be provided in order to create a multi dose dispensing and the multi dose dispensing itself is provided as a Basic of type MultiDoseDispensingBasis in the HTTP body.

Before a MultiDoseDispensingBasis 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.

Examples

HTTP 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

Example 1 - Create a multi dose dispensing basis

This example shows how to create a multi dose dispensing basis for a patient. Most information is set by the National Medication List when an multi dose dispensing basis is created. The result can be seen in example Fetch multi dose dispensing basis.

The typical next step in the process is to set the producing pharmacy, see example Update a multi dose dispensing basis.

HTTP headers

Header Value Comment
authorization {...,"PERSONNUMMER":"199104142394","EFTERNAMN":"Sweeney","FORNAMN":"Todd","GRUPPFORSKRIVARKOD":["9000001"],"UTOKAD_YRKESKOD":["AL"],"loa":3} Selected information from the OAuth2-ticket in decoded form
prefer
x-access
x-org-info {"orgenhetsOrt":"Sala"} Decoded value
x-patientref
x-provenance Provenance for a healthcare user Decoded value
x-purpose
x-request-id 7d5acf10-57f6-4387-b61d-2c59db3d05b0
x-user-agent {"name":"Test application","version":"0.01010101010.1 beta"} Decoded value

HTTP body: Create MultiDoseDispensingBasis