Bundle
Når man søker opp careplan (se Api) for en pasient med include=* får man en bundle i respons, men CarePlan og tilhørende refererte ressurser, i henhold til FHIR-standarden.
curl --location --request POST 'api/careplan/CarePlan/_search' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'subject:Patient.identifier=13116900216' \
--data-urlencode '_include=*'
Forenklet eksempel
Se dokumentasjon av de ulike FHIR-ressursene for hva som skal fylles ut i hvilke profiler.
{
"resourceType": "Bundle",
"type": "searchset",
"total": 1,
"entry": [
{
"resource": {
"resourceType": "CarePlan",
"id": "29469cf1-a409-4809-8ca5-828e27451615",
"meta": {...},
"identifier": [
{
"system": "urn:ietf:rfc:3986",
"value": "3e4ae253-c79e-44f8-98f1-1df7c0e5c729"
}
],
"status": "active",
"intent": "plan",
"title": "Behandlingsplan",
"subject": {...},
"addresses": [
{
"reference": "Condition/2d331a0f-d48a-4e2a-a881-8e7a9111029e"
},
{
"reference": "Condition/0342768b-2d7d-49c7-80ec-69cffa0ef6fb"
}
],
"goal": [
{
"reference": "Goal/732c1206-670e-4961-be29-38940eb2c818"
},
{
"reference": "Goal/a4e11402-1e79-4816-8a90-38a7ed3a73b7"
}
],
"activity": [
{
"reference": {
"reference": "ServiceRequest/3e224aa8-9485-461a-a219-d9cf269880ee"
}
},
{
"reference": {
"reference": "ServiceRequest/cad36e82-aa91-4e4b-9e31-c5256a0a2bc5"
}
}
]
}
},
{
"resource": {
"resourceType": "Condition",
"id": "2d331a0f-d48a-4e2a-a881-8e7a9111029e",
"meta": {...},
"identifier": [...],
"clinicalStatus": {...},
"code": {...},
"subject": {...}
}
},
{
"resource": {
"resourceType": "Condition",
"id": "0342768b-2d7d-49c7-80ec-69cffa0ef6fb",
"meta": {...},
"identifier": [...],
"clinicalStatus": {...},
"code": {...},
"subject": {...},
"note": [...]
}
},
{
"resource": {
"resourceType": "Goal",
"id": "732c1206-670e-4961-be29-38940eb2c818",
"meta": {...},
"identifier": [... ],
"lifecycleStatus": "active",
"description": {
"text": "Inhalere medisiner uten inhalasjonskammer"
},
"subject": {...},
"expressedBy": {...},
"addresses": [
{
"reference": "Condition/2d331a0f-d48a-4e2a-a881-8e7a9111029e"
}
]
}
},
{
"resource": {
"resourceType": "Goal",
"id": "a4e11402-1e79-4816-8a90-38a7ed3a73b7",
"meta": {...},
"identifier": [...],
"lifecycleStatus": "active",
"description": {
"text": "Leve normalt"
},
"subject": {...},
"expressedBy": {...},
"addresses": [
{
"reference": "Condition/2d331a0f-d48a-4e2a-a881-8e7a9111029e"
},
{
"reference": "Condition/0342768b-2d7d-49c7-80ec-69cffa0ef6fb"
}
]
}
},
{
"resource": {
"resourceType": "ServiceRequest",
"id": "3e224aa8-9485-461a-a219-d9cf269880ee",
"meta": {...},
"identifier": [...],
"status": "active",
"intent": "plan",
"code": {...},
"orderDetail": [...],
"subject": {...},
"occurrenceTiming": {...},
"performer": [
{
"type": "PractitionerRole",
"display": "Klinisk ernæringsfysiolog OUS"
}
],
"reasonReference": [
{
"reference": "Condition/2d331a0f-d48a-4e2a-a881-8e7a9111029e"
}
]
}
},
{
"resource": {
"resourceType": "ServiceRequest",
"id": "cad36e82-aa91-4e4b-9e31-c5256a0a2bc5",
"meta": {...},
"identifier": [...],
"status": "active",
"intent": "plan",
"category": [...],
"orderDetail": [...],
"subject": {...},
"occurrenceTiming": {...},
"performer": [
{
"type": "Patient"
}
],
"reasonReference": [
{
"reference": "Condition/2d331a0f-d48a-4e2a-a881-8e7a9111029e"
}
]
}
}
]
}