Bundle

Palautus bundle esimerkeistä löytyy esimerkit yhden lääkemääräyksen tietojen palautumisesta sekä 15 lääkemääräyksen tietojen palautumisesta.

Esimerkki 1

Tämä esimerkki kuvaa tilannetta, kun palautuu yksi lääkemääräys.

{
    "resourceType": "Bundle",
    "id": "b4ebb4e7-ab7e-449e-8cd3-4ff025f7a16c",
    "type": "searchset",
    "total": 1,
    "entry":  [
        {
            "resource": {
                "resourceType": "MedicationRequest",
                "id": "1.2.246.10.11111111.93001.2021.11635860139390123",
                "contained":  [
                    {
                        "resourceType": "Medication",
                        "id": "1",
                        "extension":  [
                            {
                                "url": "http://resepti.kanta.fi/StructureDefinition/extension/drug",
                                "valueString": "RENITEC COMP"
                            },
                            {
                                "url": "http://resepti.kanta.fi/StructureDefinition/extension/typeOfMedicinalProduct",
                                "valueCoding": {
                                    "system": "urn:oid:1.2.246.537.6.604.2014",
                                    "code": "1"
                                }
                            },
                            {
                                "url": "http://resepti.kanta.fi/StructureDefinition/extension/pharmaceuticalProductStrength",
                                "valueString": "20/12,5 mg"
                            }
                        ],
                        "identifier":  [
                            {
                                "system": "urn:oid:1.2.246.537.6.55.2004",
                                "value": "446393"
                            }
                        ],
                        "code": {
                            "coding":  [
                                {
                                    "system": "urn:oid:1.2.246.537.6.32.2007",
                                    "code": "C09BA02",
                                    "display": "Enalapriili ja diureetit"
                                }
                            ]
                        },
                        "form": {
                            "text": "tabletti"
                        }
                    },
                    {
                        "resourceType": "Patient",
                        "id": "2",
                        "identifier":  [
                            {
                                "system": "urn:oid:1.2.246.21",
                                "value": "020535-900C"
                            }
                        ],
                        "name":  [
                            {
                                "use": "official",
                                "family": "Virta",
                                "_family": {
                                    "extension":  [
                                        {
                                            "url": "http://hl7.org/fhir/StructureDefinition/humanname-own-name",
                                            "valueString": "Virta"
                                        }
                                    ]
                                },
                                "given":  [
                                    "Pirjo-Leena",
                                    "Valma"
                                ]
                            },
                            {
                                "use": "nickname",
                                "given":  [
                                    "Pirjo-Leena"
                                ]
                            }
                        ],
                        "birthDate": "1935-05-02"
                    },
                    {
                        "resourceType": "PractitionerRole",
                        "id": "3",
                        "practitioner": {
                            "reference": "#4"
                        },
                        "organization": {
                            "reference": "#5"
                        }
                    },
                    {
                        "resourceType": "Practitioner",
                        "id": "4",
                        "identifier":  [
                            {
                                "system": "urn:oid:1.2.246.537.25",
                                "value": "032763"
                            }
                        ],
                        "name":  [
                            {
                                "use": "official",
                                "family": "Seppä",
                                "_family": {
                                    "extension":  [
                                        {
                                            "url": "http://hl7.org/fhir/StructureDefinition/humanname-own-name",
                                            "valueString": "Seppä"
                                        }
                                    ]
                                },
                                "given":  [
                                    "Aili"
                                ]
                            },
                            {
                                "use": "nickname",
                                "given":  [
                                    "Aili"
                                ]
                            }
                        ],
                        "qualification": {
                            "code": {
                                "coding":  [
                                    {
                                        "system": "urn:oid:1.2.246.537.6.140.2008",
                                        "code": "034"
                                    }
                                ]
                            }
                        }
                    },
                    {
                        "resourceType": "Organization",
                        "id": "5",
                        "identifier":  [
                            {
                                "system": "urn:ietf:rfc:3986",
                                "value": "urn:oid:1.2.246.10.1602257.10.1"
                            }
                        ],
                        "name": "Testi terveysasema",
                        "partOf": {
                            "reference": "#6"
                        }
                    },
                    {
                        "resourceType": "Organization",
                        "id": "6",
                        "identifier":  [
                            {
                                "system": "urn:ietf:rfc:3986",
                                "value": "urn:oid:1.2.246.10.1602257.10.1"
                            }
                        ]
                    }
                ],
                "extension":  [
                    {
                        "url": "http://resepti.kanta.fi/StructureDefinition/extension/versionNumber",
                        "valuePositiveInt": 1
                    },
                    {
                        "url": "http://resepti.kanta.fi/StructureDefinition/extension/neRep",
                        "valueBoolean": false
                    },
                    {
                        "url": "http://resepti.kanta.fi/StructureDefinition/extension/permanentMedication",
                        "valueBoolean": false
                    },
                    {
                        "url": "http://resepti.kanta.fi/StructureDefinition/extension/usage",
                        "valueString": "Verenpainelääke."
                    },
                    {
                        "url": "http://resepti.kanta.fi/StructureDefinition/extension/doseDispensing",
                        "valueBoolean": false
                    },
                    {
                        "url": "http://resepti.kanta.fi/StructureDefinition/extension/dispenseStatus",
                        "extension":  [
                            {
                                "url": "dispenseStatus",
                                "valueCoding": {
                                    "system": "urn:oid:1.2.246.537.5.40123.2006",
                                    "code": "1"
                                }
                            }
                        ]
                    },
                    {
                        "url": "http://resepti.kanta.fi/StructureDefinition/extension/reservedStatus",
                        "extension":  [
                            {
                                "url": "reservedStatus",
                                "valueCoding": {
                                    "system": "urn:oid:1.2.246.537.5.40122.2006",
                                    "code": "1"
                                }
                            }
                        ]
                    },
                    {
                        "url": "http://resepti.kanta.fi/StructureDefinition/extension/lockStatus",
                        "extension":  [
                            {
                                "url": "lockStatus",
                                "valueCoding": {
                                    "system": "urn:oid:1.2.246.537.5.40124.2006",
                                    "code": "1"
                                }
                            }
                        ]
                    },
                    {
                        "url": "http://resepti.kanta.fi/StructureDefinition/extension/renewalStatus",
                        "valueCoding": {
                            "system": "urn:oid:1.2.246.537.5.40106.2006",
                            "code": "0"
                        }
                    },
                    {
                        "url": "http://resepti.kanta.fi/StructureDefinition/extension/prescriptionSavedByPharmacy",
                        "valueCoding": {
                            "system": "urn:oid:1.2.246.537.5.40303.201501",
                            "code": "2"
                        }
                    },
                    {
                        "url": "http://resepti.kanta.fi/StructureDefinition/extension/medicineId",
                        "extension":  [
                            {
                                "url": "medicineId",
                                "valueIdentifier": {
                                    "system": "urn:ietf:rfc:3986",
                                    "value": "1.2.246.10.11111111.93001.2021.11635860139390123.0"
                                }
                            },
                            {
                                "url": "medicineIdPart",
                                "valuePositiveInt": 1
                            }
                        ]
                    },
                    {
                        "url": "http://resepti.kanta.fi/StructureDefinition/extension/dosageIfNeeded",
                        "valueBoolean": false
                    }
                ],
                "identifier":  [
                    {
                        "system": "http://resepti.kanta.fi/fhir/id/id",
                        "value": "urn:oid:1.2.246.10.11111111.93001.2021.11635860139390123"
                    },
                    {
                        "system": "http://resepti.kanta.fi/fhir/id/setId",
                        "value": "urn:oid:1.2.246.10.11111111.93001.2021.11635860139390123"
                    }
                ],
                "status": "active",
                "statusReason": {
                    "coding":  [
                        {
                            "system": "urn:oid:1.2.246.537.5.40105.2006",
                            "code": "1"
                        }
                    ]
                },
                "intent": "order",
                "category":  [
                    {
                        "coding":  [
                            {
                                "system": "urn:oid:1.2.246.537.6.605.2014",
                                "code": "1"
                            }
                        ]
                    }
                ],
                "medicationReference": {
                    "reference": "#1"
                },
                "subject": {
                    "reference": "#2"
                },
                "authoredOn": "2021-11-02T15:35:39+02:00",
                "requester": {
                    "reference": "#3"
                },
                "dosageInstruction":  [
                    {
                        "extension":  [
                            {
                                "url": "http://resepti.kanta.fi/StructureDefinition/extension/sic",
                                "valueBoolean": false
                            },
                            {
                                "url": "http://resepti.kanta.fi/StructureDefinition/extension/weightPatientUnder12YearsOld",
                                "valueQuantity": {
                                    "unit": "kg",
                                    "value": 45
                                }
                            },
                            {
                                "url": "http://resepti.kanta.fi/StructureDefinition/extension/onlyTextDosageInUse",
                                "valueBoolean": false
                            }
                        ],
                        "text": "1 tabletti aamulla",
                        "additionalInstruction":  [
                            {
                                "text": "käyttöohjeen lisätieto tähän"
                            }
                        ],
                        "timing": {
                            "repeat": {
                                "boundsPeriod": {
                                    "start": "2020-11-20"
                                },
                                "frequency": 1,
                                "period": 1,
                                "periodUnit": "d",
                                "when":  [
                                    "MORN.early"
                                ]
                            }
                        },
                        "asNeededBoolean": false,
                        "route": {
                            "coding":  [
                                {
                                    "system": "urn:oid:1.2.246.537.6.1403.202001",
                                    "code": "1055"
                                }
                            ]
                        },
                        "doseAndRate":  [
                            {
                                "doseQuantity": {
                                    "value": 1,
                                    "unit": "18",
                                    "system": "urn:oid:1.2.246.537.6.138.202001",
                                    "code": "18"
                                }
                            }
                        ]
                    }
                ],
                "dispenseRequest": {
                    "extension":  [
                        {
                            "url": "http://resepti.kanta.fi/StructureDefinition/extension/prescriptionType",
                            "valueCoding": {
                                "system": "urn:oid:1.2.246.537.5.40100.2006",
                                "code": "1"
                            }
                        },
                        {
                            "url": "http://resepti.kanta.fi/StructureDefinition/extension/package",
                            "extension":  [
                                {
                                    "url": "packageAmount",
                                    "valuePositiveInt": 1
                                },
                                {
                                    "url": "packageFactor",
                                    "valuePositiveInt": 1
                                },
                                {
                                    "url": "packageSizeText",
                                    "valueString": "98 fol"
                                }
                            ]
                        },
                        {
                            "url": "http://resepti.kanta.fi/StructureDefinition/extension/realDispenseStatus",
                            "valueCoding": {
                                "system": "urn:oid:1.2.246.537.5.40123.2006",
                                "code": "1"
                            }
                        },
                        {
                            "url": "http://resepti.kanta.fi/StructureDefinition/extension/drugPrescribedQuantityText",
                            "valueString": "1X98 fol"
                        }
                    ],
                    "validityPeriod": {
                        "end": "2023-11-02T15:35:39+02:00"
                    }
                },
                "substitution": {
                    "allowedBoolean": true
                }
            }
        }
    ]
}