Page Status: Outdated

Update producing pharmacy

This section describes the process of changing the pharmacy which produces dose dispnse bags for the patient (sv: uppdatera dostillhöroghet).

The basic approach to achieve this use case is to use HTTP PUT on the resource List.

PUT [base]/fhir/List

To find the list, a HTTP GET is used, with query parameters

GET [base]/fhir/List?subject.identifier=195011132098&code=dose

Examples

Example 1 - Update producing pharmacy

The example shows how to update the producing pharmacy for a case where the patient should belong to a new dose dispensing producing pharmacy after a given date. The full List resource should be defined in the body.

Header: required authorization and provenance information

Parameter Mandatory Comment
Authorization Yes Bearer [valid OAuth2 token]
X-Access N/A -
X-Purpose N/A -
X-Provenance Yes Must be provided with information as described below
activity.coding.code : BYTA_DOSTILLHORIGHET
agent.type : enterer .
agent.who : NLLPractitioner At least name, identifier, workplaceIdentifier must be defined. Make sure that the individual is the same as in the authorization ticket.

An example of a full provenance json structure can be seen in General information about Use Cases

POST [base]/fhir/List

{
...
    "contained": [
        {
            "id": "pharmacy",
            "identifier": [
                {
                    "system": "http://electronichealth.se/identifier/gln",
                    "value": "7350045511997"
                }
            ],
            "meta": {
                "profile": [
                    "http://electronichealth.se/fhir/StructureDefinition/NLLPharmacyLocation"
                ]
            },
            "resourceType": "Location"
        }
    ],
    "extension": [
        {
            "url": "http://electronichealth.se/fhir/StructureDefinition/NLLReceivingPharmacy",
            "valueReference": {
                "reference": "#pharmacy"
            }
        },
        {
            "url": "http://electronichealth.se/fhir/StructureDefinition/Status",
            "valueString": "EJ_GODKANT"
        }
    ],
...

}