Page Status: updated 2022-10-31

Update NLLMultiDoseDispensingBasis (Basic)

Page index

Introduction

sv. Uppdatera dosunderlag.

This page describes how to update a Basic of type MultiDoseDispensingBasis for a patient by an example.

A PUT will update the resource in its entirety, it is therefore important to get the latest version of the resource before performing a change. The resource is identified by the logical id (the id element). A PUT on a non existing logical id will fail.

Before a MultiDoseDispensingBasis is updated, 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

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

PUT [base]/Basic

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 NLLMultiDoseDispensingBasis for more information about the MultiDoseDispensingBasis resource.

Examples

Example 1 - Update a multi dose dispensing basis

This example shows how to set the producing pharmacy. The result can be seen in example 2 on Get NLLMultiDoseDispensingBasis.

See how the multi dose dispensing basis is created in example 1 on Create NLLMultiDoseDispensingBasis.

Request Headers

Header
Value Comment
authorization {...,"PERSONNUMMER":"199006012398","EFTERNAMN":"Receptarie","FORNAMN":"Ritva","APOTEKSID":"7350046611966","UTOKAD_YRKESKOD":["RE"],"loa":3} Selected information from the OAuth2-ticket in decoded form
x-provenance Provenance for a pharmacy user Decoded value
x-request-id e3ad19da-2455-41c2-93ca-d0f72d6462d5
x-user-agent {"name":"Test application","version":"0.01010101010.1 beta"} Decoded value

Request Body

See Update MultiDoseDispensingBasis assigne producing pharmacy.