GET [base]/PlanDefinition?name=7b3f6455-ca87-4fb8-80f3-855575ca30fd
Header
Accept-Charset: utf-8
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.7.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Response
{
"resourceType": "Bundle",
"id": "4e080500-64c4-4598-bc5b-d3d9db5b44b4",
"meta": {
"lastUpdated": "2019-05-29T09:14:33.761+00:00"
},
"type": "searchset",
"total": 2,
"link": [
{
"relation": "self",
"url": "http://local.ehealth.sundhed.dk:31380/hapi-fhir-server/fhir/PlanDefinition?_format\u003djson\u0026_pretty\u003dtrue\u0026name\u003d7b3f6455-ca87-4fb8-80f3-855575ca30fd"
}
],
"entry": [
{
"fullUrl": "http://local.ehealth.sundhed.dk:31380/hapi-fhir-server/fhir/PlanDefinition/325",
"resource": {
"resourceType": "PlanDefinition",
"id": "325",
"meta": {
"versionId": "1",
"lastUpdated": "2019-05-29T09:14:33.597+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-plandefinition"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-modifier-role",
"extension": [
{
"url": "reference",
"valueReference": {
"reference": "http://local.ehealth.sundhed.dk:31380/organization/fhir/Organization/80239"
}
},
{
"url": "role",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/modifier-role",
"code": "owner"
}
]
}
}
]
}
],
"version": "93786fd7-b907-4eb5-a8fe-1169681ac1a7",
"name": "7b3f6455-ca87-4fb8-80f3-855575ca30fd",
"status": "active"
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "http://local.ehealth.sundhed.dk:31380/hapi-fhir-server/fhir/PlanDefinition/323",
"resource": {
"resourceType": "PlanDefinition",
"id": "323",
"meta": {
"versionId": "1",
"lastUpdated": "2019-05-29T09:14:33.328+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-plandefinition"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-modifier-role",
"extension": [
{
"url": "reference",
"valueReference": {
"reference": "http://local.ehealth.sundhed.dk:31380/organization/fhir/Organization/23389"
}
},
{
"url": "role",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/modifier-role",
"code": "owner"
}
]
}
}
]
}
],
"version": "4acdff9d-8859-49f1-a0a3-aeba5c9d1edd",
"name": "7b3f6455-ca87-4fb8-80f3-855575ca30fd",
"status": "active"
},
"search": {
"mode": "match"
}
}
]
}
GET [base]/PlanDefinition/327/_history/2
Header
Accept-Charset: utf-8
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.7.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Response
{
"resourceType": "PlanDefinition",
"id": "327",
"meta": {
"versionId": "2",
"lastUpdated": "2019-05-29T09:14:34.168+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-plandefinition"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-modifier-role",
"extension": [
{
"url": "reference",
"valueReference": {
"reference": "http://local.ehealth.sundhed.dk:31380/organization/fhir/Organization/27119"
}
},
{
"url": "role",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/modifier-role",
"code": "owner"
}
]
}
}
]
}
],
"version": "3b01d617-9d2d-4545-8908-2d8d7acc230f",
"status": "active"
}
POST [base]/PlanDefinition/314/$apply
Header
Accept-Charset: utf-8
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.7.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Content-Type: application/fhir+json; charset=UTF-8
Body:
{
"resourceType": "Parameters",
"parameter": [
{
"name": "episodeOfCare",
"valueReference": {
"reference": "http://local.ehealth.sundhed.dk:31380/hapi-fhir-server/fhir/EpisodeOfCare/316"
}
}
]
}
Response
{
"resourceType": "CarePlan",
"id": "322",
"meta": {
"versionId": "1",
"lastUpdated": "2019-05-29T09:14:32.601+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careplan"
]
},
"definition": [
{
"reference": "http://local.ehealth.sundhed.dk:31380/hapi-fhir-server/fhir/PlanDefinition/314"
}
],
"status": "active",
"intent": "order",
"category": [
{
"coding": [
{
"system": "http://snomed.info/sct",
"code": "412776001",
"display": "Chronic obstructive pulmonary disease clinical management plan"
}
]
}
],
"subject": {
"reference": "http://local.ehealth.sundhed.dk:31380/trifork-fhir-server/Patient/72690"
},
"context": {
"reference": "http://local.ehealth.sundhed.dk:31380/hapi-fhir-server/fhir/EpisodeOfCare/316"
},
"period": {
"start": "2019-05-29T09:14:32+00:00"
},
"addresses": [
{
"reference": "http://local.ehealth.sundhed.dk:31380/hapi-fhir-server/fhir/Condition/315"
}
],
"activity": [
{
"reference": {
"reference": "http://local.ehealth.sundhed.dk:31380/hapi-fhir-server/fhir/ProcedureRequest/320"
}
},
{
"reference": {
"reference": "http://local.ehealth.sundhed.dk:31380/hapi-fhir-server/fhir/ProcedureRequest/321"
}
}
]
}
PUT [base]/PlanDefinition/327
Header
Accept-Charset: utf-8
If-Match: "1"
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.7.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Content-Type: application/fhir+json; charset=UTF-8
Body:
{
"resourceType": "PlanDefinition",
"id": "327",
"meta": {
"versionId": "1",
"lastUpdated": "2019-05-29T09:14:34.016+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-plandefinition"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-modifier-role",
"extension": [
{
"url": "reference",
"valueReference": {
"reference": "http://local.ehealth.sundhed.dk:31380/organization/fhir/Organization/27119"
}
},
{
"url": "role",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/modifier-role",
"code": "owner"
}
]
}
}
]
}
],
"version": "3b01d617-9d2d-4545-8908-2d8d7acc230f",
"status": "active"
}
Response
{
"resourceType": "PlanDefinition",
"id": "327",
"meta": {
"versionId": "2",
"lastUpdated": "2019-05-29T09:14:34.168+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-plandefinition"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-modifier-role",
"extension": [
{
"url": "reference",
"valueReference": {
"reference": "http://local.ehealth.sundhed.dk:31380/organization/fhir/Organization/27119"
}
},
{
"url": "role",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/modifier-role",
"code": "owner"
}
]
}
}
]
}
],
"version": "3b01d617-9d2d-4545-8908-2d8d7acc230f",
"status": "active"
}