GET [base]/PlanDefinition?name=5b76e9be-7c7f-4619-bca0-2d489dfc19c3&_include%3Arecurse=*
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiQWN0aXZpdHlEZWZpbml0aW9uLnJlYWQiLCJQbGFuRGVmaW5pdGlvbi5zZWFyY2giLCIkdGVzdC1vbmx5LWNyZWF0ZSIsIlBsYW5EZWZpbml0aW9uLnJlYWQiLCJEb2N1bWVudFJlZmVyZW5jZS5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.8.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Response
{
"resourceType": "Bundle",
"id": "e1ed4800-3cbd-426d-97fd-d1aef2230143",
"meta": {
"lastUpdated": "2020-02-03T14:07:36.833+00:00"
},
"type": "searchset",
"total": 1,
"link": [
{
"relation": "self",
"url": "https://plan.local.ehealth.sundhed.dk/fhir/PlanDefinition?_format=json&_include%3Arecurse=*&_pretty=true&name=5b76e9be-7c7f-4619-bca0-2d489dfc19c3"
}
],
"entry": [
{
"fullUrl": "https://plan.local.ehealth.sundhed.dk/fhir/PlanDefinition/119",
"resource": {
"resourceType": "PlanDefinition",
"id": "119",
"meta": {
"versionId": "1",
"lastUpdated": "2020-02-03T14:07:36.523+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": "https://organization.local.ehealth.sundhed.dk/fhir/Organization/15424"
}
},
{
"url": "role",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/modifier-role",
"code": "owner"
}
]
}
}
]
}
],
"version": "01dc4c67-8e9a-425c-a295-e06532e67fed",
"name": "5b76e9be-7c7f-4619-bca0-2d489dfc19c3",
"status": "active",
"relatedArtifact": [
{
"type": "predecessor",
"display": "b73df5fd-fada-4517-9232-aec84d4a1ac4",
"resource": {
"reference": "https://plan.local.ehealth.sundhed.dk/fhir/DocumentReference/118"
}
}
]
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "https://plan.local.ehealth.sundhed.dk/fhir/DocumentReference/118",
"resource": {
"resourceType": "DocumentReference",
"id": "118",
"meta": {
"versionId": "1",
"lastUpdated": "2020-02-03T14:07:36.247+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-documentreference"
]
},
"status": "current",
"type": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/document-type",
"code": "TBD"
}
]
},
"indexed": "2020-02-03T15:07:36.232+01:00",
"content": [
{
"attachment": {
"url": "http://some.com/"
}
}
]
},
"search": {
"mode": "include"
}
}
]
}
GET [base]/PlanDefinition/94/_history/2
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiNWVhYzNiNzQtM2YwZi00NjA4LWEzMDUtNTYzOWQyMzE2NjE4IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIlBsYW5EZWZpbml0aW9uLnVwZGF0ZSIsIlBsYW5EZWZpbml0aW9uLnJlYWQiXX0sImNvbnRleHQiOnsib3JnYW5pemF0aW9uX2lkIjoiaHR0cHM6Ly9vcmdhbml6YXRpb24ubG9jYWwuZWhlYWx0aC5zdW5kaGVkLmRrL2ZoaXIvT3JnYW5pemF0aW9uLzE3MjcxIn0sInVzZXJfdHlwZSI6IlBBVElFTlQifQ.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.8.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Response
{
"resourceType": "PlanDefinition",
"id": "94",
"meta": {
"versionId": "2",
"lastUpdated": "2020-02-03T14:07:28.835+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": "https://organization.local.ehealth.sundhed.dk/fhir/Organization/17271"
}
},
{
"url": "role",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/modifier-role",
"code": "owner"
}
]
}
}
]
}
],
"version": "745a49b7-3ea8-4223-bd9f-4eb2395e1800",
"status": "retired"
}
POST [base]/$apply
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiJHRlc3Qtb25seS1jcmVhdGUiLCJQbGFuRGVmaW5pdGlvbiRhcHBseSJdfSwiY29udGV4dCI6eyJjYXJlX3RlYW1faWQiOiJodHRwczovL29yZ2FuaXphdGlvbi5sb2NhbC5laGVhbHRoLnN1bmRoZWQuZGsvZmhpci9DYXJlVGVhbS84MjM0NSIsImVwaXNvZGVfb2ZfY2FyZV9pZCI6Imh0dHBzOi8vY2FyZXBsYW4ubG9jYWwuZWhlYWx0aC5zdW5kaGVkLmRrL2ZoaXIvRXBpc29kZU9mQ2FyZS80OTQifSwidXNlcl90eXBlIjoiUFJBQ1RJVElPTkVSIn0.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.8.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": "https://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/494"
}
},
{
"name": "planDefinition",
"valueReference": {
"reference": "https://plan.local.ehealth.sundhed.dk/fhir/PlanDefinition/22776"
}
}
]
}
Response
{
"resourceType": "CarePlan",
"id": "495",
"meta": {
"versionId": "1",
"lastUpdated": "2020-02-03T12:10:00.085+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careplan"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careplan-statusHistory",
"extension": [
{
"url": "status",
"valueCodeableConcept": {
"coding": [
{
"code": "draft"
}
]
}
},
{
"url": "period",
"valuePeriod": {
"start": "2020-02-03T12:10:00+00:00"
}
}
]
}
],
"definition": [
{
"reference": "https://plan.local.ehealth.sundhed.dk/fhir/PlanDefinition/22776"
}
],
"status": "draft",
"intent": "order",
"subject": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/79257"
},
"context": {
"reference": "https://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/494"
},
"period": {
"start": "2020-02-03T12:10:00+00:00"
},
"careTeam": [
{
"reference": "https://organization.local.ehealth.sundhed.dk/fhir/CareTeam/82345"
}
],
"addresses": [
{
"reference": "https://careplan.local.ehealth.sundhed.dk/fhir/Condition/493"
}
],
"activity": [
{
"reference": {
"reference": "https://careplan.local.ehealth.sundhed.dk/fhir/ProcedureRequest/496"
}
}
]
}
POST [base]/PlanDefinition
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiNzdiZDMzNmMtMGYwMC00YjhhLTg0ZGMtZmVlYTgzYjBkNTM4IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIlBsYW5EZWZpbml0aW9uLmNyZWF0ZSIsIlBsYW5EZWZpbml0aW9uLnJlYWQiXX0sImNvbnRleHQiOnsib3JnYW5pemF0aW9uX2lkIjoiaHR0cHM6Ly9vcmdhbml6YXRpb24ubG9jYWwuZWhlYWx0aC5zdW5kaGVkLmRrL2ZoaXIvT3JnYW5pemF0aW9uLzc4ODEwIn0sInVzZXJfdHlwZSI6IlBBVElFTlQifQ.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.8.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Content-Type: application/fhir+json; charset=UTF-8
Body:
{
"resourceType": "PlanDefinition",
"meta": {
"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": "https://organization.local.ehealth.sundhed.dk/fhir/Organization/78810"
}
},
{
"url": "role",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/modifier-role",
"code": "owner"
}
]
}
}
]
}
],
"version": "c7d54f22-177e-4ffb-9073-e3c3b4906108",
"status": "active"
}
Response
{
"resourceType": "PlanDefinition",
"id": "89",
"meta": {
"versionId": "1",
"lastUpdated": "2020-02-03T14:07:26.759+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": "https://organization.local.ehealth.sundhed.dk/fhir/Organization/78810"
}
},
{
"url": "role",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/modifier-role",
"code": "owner"
}
]
}
}
]
}
],
"version": "c7d54f22-177e-4ffb-9073-e3c3b4906108",
"status": "active"
}
POST [base]/PlanDefinition/$validate
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiUGxhbkRlZmluaXRpb24uY3JlYXRlIiwiUGxhbkRlZmluaXRpb24uc2VhcmNoIiwiJHRlc3Qtb25seS1jcmVhdGUiLCJQbGFuRGVmaW5pdGlvbi51cGRhdGUiLCJQbGFuRGVmaW5pdGlvbi5yZWFkIiwiUGxhbkRlZmluaXRpb24kYXBwbHkiXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.8.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": "resource",
"resource": {
"resourceType": "PlanDefinition",
"meta": {
"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": "https://organization.local.ehealth.sundhed.dk/fhir/Organization/50366"
}
},
{
"url": "role",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/modifier-role",
"code": "owner"
}
]
}
}
]
}
],
"version": "4955e67b-b521-4b8b-88c9-5813b903c993",
"status": "active"
}
}
]
}
Response
{
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>No issues detected during validation</pre></td>\r\r\r</tr>\r<tr>\r<td style=\"font-weight: bold;\">INFORMATION</td>\r<td>[]</td>\r\r\r\r<td><pre>No issues detected during validation</pre></td>\r\r\r</tr>\r</table>\r</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "No issues detected during validation"
},
{
"severity": "information",
"code": "informational",
"diagnostics": "No issues detected during validation"
}
]
}
PUT [base]/PlanDefinition/94
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiNWVhYzNiNzQtM2YwZi00NjA4LWEzMDUtNTYzOWQyMzE2NjE4IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIlBsYW5EZWZpbml0aW9uLnVwZGF0ZSIsIlBsYW5EZWZpbml0aW9uLnJlYWQiXX0sImNvbnRleHQiOnsib3JnYW5pemF0aW9uX2lkIjoiaHR0cHM6Ly9vcmdhbml6YXRpb24ubG9jYWwuZWhlYWx0aC5zdW5kaGVkLmRrL2ZoaXIvT3JnYW5pemF0aW9uLzE3MjcxIn0sInVzZXJfdHlwZSI6IlBBVElFTlQifQ.
If-Match: "1"
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.8.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Content-Type: application/fhir+json; charset=UTF-8
Body:
{
"resourceType": "PlanDefinition",
"id": "94",
"meta": {
"versionId": "1",
"lastUpdated": "2020-02-03T14:07:28.626+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": "https://organization.local.ehealth.sundhed.dk/fhir/Organization/17271"
}
},
{
"url": "role",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/modifier-role",
"code": "owner"
}
]
}
}
]
}
],
"version": "745a49b7-3ea8-4223-bd9f-4eb2395e1800",
"status": "retired"
}
Response
{
"resourceType": "PlanDefinition",
"id": "94",
"meta": {
"versionId": "2",
"lastUpdated": "2020-02-03T14:07:28.835+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": "https://organization.local.ehealth.sundhed.dk/fhir/Organization/17271"
}
},
{
"url": "role",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/modifier-role",
"code": "owner"
}
]
}
}
]
}
],
"version": "745a49b7-3ea8-4223-bd9f-4eb2395e1800",
"status": "retired"
}