Page Status: Outdated

Dispense (paper prescription) - Create

Page index

Introduction

Sv: Registrera uttag där underlaget är ett papper eller ett utländskt e-recept

This section describes the process of supplying a prescription in scenarios where the prescription which authorizes the dispense is not (and can't be) registered in the Swedish National Medication List, as an example prescription issued outside Sweden.

These dispenses use the MedicationDispense resource as a base, but with a different profile which has additional elements, NLLDispensePaperPrescription The authorizingPrescription can't be referred, instead the required information regarding the prescription details will be registered on the MedicationDispense. The basic approach to achieve this use case is to use HTTP POST to create a new MedicationDispense resource directed to the DetachedDispense endpoint

POST [base]/fhir/DetachedDispense

Sequence diagram

This interactions shows a sequence where the client creates a dispatch (sv: uttag) based on a paper prescription. It shows a sequence when one dispense only is created. The interaction requires a valid authorization token as an initial step, which is not shown in the diagram.

Note that the requests shown in the diagram doesn't include the full basepath. It only shows the last part of the http request including resource and possible search/query parameters.

Examples

HTTP Header

Required authorization and provenance information.

TODO

Parameter Mandatory Comment
Authorization
X-Access
X-Purpose
X-Provenance
X-Request-ID
X-User-Agent
X-OrgInfo
X-PatientRef

This is an example of access and purpose type. The type must reflect the given situation. A full list of access and purpose types will be enclosed in the developer portal [Confluence, EHM][1].

See HTTP Header and Authorization for generic information about the HTTP header.

Create dispense

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 - -
{
  "resourceType": "DetachedDispense",
  "meta": {
    "profile": [
      "http://electronichealth.se/fhir/StructureDefinition/NLLDetachedDispense"
    ]
  },
  "contained": [
    {
      "resourceType": "Practitioner",
      "id": "1",
      "meta": {
        "profile": [
          "http://electronichealth.se/fhir/StructureDefinition/NLLPractitioner"
        ]
      },
      "extension": [
        {
          "url": "http://electronichealth.se/fhir/StructureDefinition/NLLExtProffessionCode",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://electronichealth.se/ValueSet/ext-qualification-codes-1",
                "code": "LF"
              }
            ]
          }
        },
        {
          "url": "http://electronichealth.se/fhir/StructureDefinition/NLLWorkplaceSummary",
          "extension": [
            {
              "url": "http://electronichealth.se/fhir/StructureDefinition/NLLWorkplaceSummary#workplaceName",
              "valueString": "Stadens vårdcentral"
            }
          ]
        }
      ],
      "identifier": [
        {
          "system": "http://electronichealth.se/identifier/forskrivarkod",
          "value": "1234567"
        },
        {
          "system": "http://electronichealth.se/identifier/gruppforskrivarkod",
          "value": "7654321"
        }
      ],
      "name": [
        {
          "family": "Läkarsson",
          "given": [
            "Kim"
          ]
        }
      ],
      "address": [
        {
          "line": [
            "Lilla gatan 1"
          ],
          "city": "Storstaden",
          "postalCode": "77777"
        }
      ],
      "qualification": [
        {
          "code": {
            "coding": [
              {
                "system": "http://electronichealth.se/fhir/ValueSet/profession-code",
                "code": "LK"
              }
            ]
          }
        }
      ]
    },
    {
      "resourceType": "Location",
      "id": "2",
      "meta": {
        "profile": [
          "http://electronichealth.se/fhir/StructureDefinition/NLLPharmacyLocation"
        ]
      },
      "identifier": [
        {
          "system": "http://electronichealth.se/identifier/gln",
          "value": "7350045511999"
        }
      ]
    }
  ],
  "extension": [
    {
      "url": "http://electronichealth.se/fhir/StructureDefinition/NLLDispatchId",
      "valueString": "11114"
    },
    {
      "url": "http://electronichealth.se/fhir/StructureDefinition/NLLNumberOfPackagesDispensed",
      "valuePositiveInt": 1
    },
    {
      "url": "http://electronichealth.se/fhir/StructureDefinition/NLLPrescriberRef",
      "valueReference": {
        "reference": "#1"
      }
    },
    {
      "url": "http://electronichealth.se/fhir/StructureDefinition/NLLPrescriptionOriginalFormat",
      "valueCode": "PAPPER"
    },
    {
      "url": "http://electronichealth.se/fhir/StructureDefinition/NLLPrescriptionDate",
      "valueDateTime": "2020-03-01"
    },
    {
      "url": "http://electronichealth.se/fhir/StructureDefinition/NLLActorDispatchId",
      "valueString": "123"
    },
    {
      "url": "http://electronichealth.se/fhir/StructureDefinition/nllNPLid",
      "valueCoding": {
        "system": "http://medication.ehm.se/nplid",
        "code": "19551128000031"
      }
    }
  ],
  "medicationCodeableConcept": {
    "coding": [
      {
        "system": "http://electronichealth.se/fhir/CodeSystem/medicine-packages",
        "code": "19540701100046"
      }
    ]
  },
  "subject": {
    "reference": "Patient/423a1aaf-cfc9-4758-954e-34066625e5f6"
  },
  "location": {
    "reference": "#2"
  },
  "type": {
    "coding": [
      {
        "system": "http://electronichealth.se/fhir/ValueSet/dispense-types",
        "code": "TF"
      }
    ]
  },
  "whenHandedOver": "[timestamp]",
  "dosageInstruction": [
    {
      "text": "Smörjes på påverkat område"
    }
  ]
}