Page Status: Outdated

Create MultiDoseDispensingBasis (sv: skapa dosunderlag)

This section describes the process of creating a list of type multi-dose-disp-list for a patient that has agreed to receive medication in multi-dose dispense bags.

The basic approach to achieve this use case is to use HTTP POST on the List resource referring to the profile NLLMultiDoseDispensingBasis

POST [base]/fhir/Basic

All POST and PUT interaction should be accompanied with a NLLProvenance in the X-Provenance header.

Interaction diagram

This interaction shows a sequence where a client wants to create a list to represent the multi-dose dispense list (sv: dosunderlag) for a patient to start getting prescriptions dispensed in dose bags. The consent (sv: dossamtycke) must be available before this resource can be created. The interactions are initiated with the client fetching the logical id of the patient in question. The sequence is finalized with a POST request where the patient is referenced with its logical id and the correct category of the list is defined.

Examples

Example 1 - Create MultiDoseDispensingBasis

This example shows how to create a Basic of type multi-dose-disp-list for a patient that should start receiving prescriptions for medication in dose dispense bags (sv: bli dospatient). To create a list (sv: dosunderlag) for a person, it is required to first fetch the Patient resource for that person in order to find its logical id.

POST [base]/fhir/Basic

{
    "resourceType": "Basic",
    "meta": {
        "profile": [
            "http://electronichealth.se/fhir/StructureDefinition/NLLMultiDoseDispMedList"
        ]
    },
    "code": {
        "coding": [
            {
                "system": "http://electronichealth.se/fhir/ValueSet/list-types",
                "code": "multi-dose-disp-list"
            }
        ]
    },
    "subject": {
        "reference": "Patient/0e5b86db-82ba-479c"
    }
}

The list should be posted with a provenance included in the X-Provenance header.


{
    "resourceType": "Provenance",
    "meta": {
        "profile": [
            "http://electronichealth.se/fhir/StructureDefinition/NLLProvenance"
        ]
    },
    "contained": [
        {
            "resourceType": "Practitioner",
            "id": "thePractitioner",
            "meta": {
                "profile": [
                    "http://electronichealth.se/fhir/StructureDefinition/NLLPractitioner"
                ]
            },
            "extension": [
                {
                    "extension": [
                        {
                            "url": "http://electronichealth.se/fhir/StructureDefinition/NLLWorkplaceSummary#workplaceName",
                            "valueString": "Min vardcentral"
                        },
                        {
                            "url": "http://electronichealth.se/fhir/StructureDefinition/NLLWorkplaceSummary#workplaceIdentifier",
                            "valueCoding": {
                                "system": "http://electronichealth.se/identifier/organizationnumber",
                                "code": "2021006552"
                            }
                        }
                    ],
                    "url": "http://electronichealth.se/fhir/StructureDefinition/NLLWorkplaceSummary"
                }
            ],
            "identifier": [
                {
                    "system": "http://electronichealth.se/identifier/forskrivarkod",
                    "value": "9000027"
                }
            ],
            "name": [
                {
                    "family": "Läkarsson",
                    "given": [
                        "Kim"
                    ]
                }
            ],
            "telecom": [
                {
                    "extension": [
                        {
                            "url": "http://electronichealth.se/fhir/StructureDefinition/NLLContactPointType",
                            "valueCode": "P"
                        },
                        {
                            "url": "http://electronichealth.se/fhir/StructureDefinition/NLLAvailableToPatient",
                            "valueBoolean": false
                        }
                    ],
                    "value": "011-900000",
                    "rank": 1
                }
            ],
            "address": [
                {
                    "extension": [
                        {
                            "url": "http://electronichealth.se/fhir/StructureDefinition/NLLAvailableToPatient",
                            "valueBoolean": false
                        }
                    ],
                    "type": "postal",
                    "line": [
                        "Gatan 1"
                    ]
                }
            ],
            "qualification": [
                {
                    "code": {
                        "coding": [
                            {
                                "system": "http://electronichealth.se/fhir/ValueSet/profession-code",
                                "code": "LK"
                            }
                        ]
                    }
                }
            ]
        }
    ],
    "activity": {
        "coding": [
            {
                "system": "system-TBD",
                "code": "REGISTRERA_DOSUNDERLAG"
            }
        ]
    },
    "agent": [
        {
            "type": {
                "coding": [
                    {
                        "code": "enterer"
                    }
                ]
            },
            "who": {
                "reference": "#thePractitioner"
            }
        }
    ]
}