GET [base]/PlanDefinition?name=90493c21-5246-43d6-ac96-eb8e929125de&_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/5.0.2 (FHIR Client; FHIR 3.0.2/DSTU3; apache)
Accept-Encoding: gzip
Response
{
"resourceType": "Bundle",
"id": "588c29cc-14d6-412d-982b-f5e5ff05d54e",
"meta": {
"lastUpdated": "2020-10-23T11:07:36.540+00:00"
},
"type": "searchset",
"total": 1,
"link": [
{
"relation": "self",
"url": "https://plan.cit-plan-632.local/fhir/PlanDefinition?_format=json&_include%3Arecurse=*&_pretty=true&name=90493c21-5246-43d6-ac96-eb8e929125de"
}
],
"entry": [
{
"fullUrl": "https://plan.cit-plan-632.local/fhir/PlanDefinition/109",
"resource": {
"resourceType": "PlanDefinition",
"id": "109",
"meta": {
"versionId": "1",
"lastUpdated": "2020-10-23T11:07:36.377+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.cit-plan-632.local/fhir/Organization/31019"
}
},
{
"url": "role",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/modifier-role",
"code": "owner"
}
]
}
}
]
}
],
"version": "c7179a60-73d0-4372-a10d-c0ce60fdbf1f",
"name": "90493c21-5246-43d6-ac96-eb8e929125de",
"status": "active",
"relatedArtifact": [
{
"type": "predecessor",
"display": "d0c31d87-b1c6-4754-8ef3-b04cb4b5ac3c",
"resource": {
"reference": "https://plan.cit-plan-632.local/fhir/DocumentReference/108"
}
}
]
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "https://plan.cit-plan-632.local/fhir/DocumentReference/108",
"resource": {
"resourceType": "DocumentReference",
"id": "108",
"meta": {
"versionId": "1",
"lastUpdated": "2020-10-23T11:07:36.269+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-documentreference"
]
},
"status": "current",
"type": {
"coding": [
{
"system": "http://loinc.org",
"code": "69730-0"
}
]
},
"indexed": "2020-10-23T11:07:36.239+00:00",
"content": [
{
"attachment": {
"url": "http://some.com/"
}
}
]
},
"search": {
"mode": "include"
}
}
]
}
GET [base]/PlanDefinition/83/_history/2
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiUGxhbkRlZmluaXRpb24uY3JlYXRlIiwiQWN0aXZpdHlEZWZpbml0aW9uLnJlYWQiLCJQbGFuRGVmaW5pdGlvbi5zZWFyY2giLCIkdGVzdC1vbmx5LWNyZWF0ZSIsIlBsYW5EZWZpbml0aW9uLnVwZGF0ZSIsIlBsYW5EZWZpbml0aW9uLnJlYWQiLCJEb2N1bWVudFJlZmVyZW5jZS5yZWFkIiwiUGxhbkRlZmluaXRpb24kYXBwbHkiXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/5.0.2 (FHIR Client; FHIR 3.0.2/DSTU3; apache)
Accept-Encoding: gzip
Response
{
"resourceType": "PlanDefinition",
"id": "83",
"meta": {
"versionId": "2",
"lastUpdated": "2020-10-23T11:06:59.200+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.cit-plan-632.local/fhir/Organization/92783"
}
},
{
"url": "role",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/modifier-role",
"code": "owner"
}
]
}
}
]
}
],
"version": "0c36d25c-fceb-45e9-95b4-c9d60122344e",
"status": "active",
"relatedArtifact": [
{
"type": "documentation",
"resource": {
"reference": "https://plan.cit-plan-632.local/fhir/DocumentReference/84"
}
}
],
"action": [
{
"definition": {
"reference": "https://plan.cit-plan-632.local/fhir/PlanDefinition/85"
}
}
]
}
POST [base]/PlanDefinition
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiUGxhbkRlZmluaXRpb24uY3JlYXRlIiwiQWN0aXZpdHlEZWZpbml0aW9uLnJlYWQiLCJQbGFuRGVmaW5pdGlvbi5zZWFyY2giLCIkdGVzdC1vbmx5LWNyZWF0ZSIsIlBsYW5EZWZpbml0aW9uLnVwZGF0ZSIsIlBsYW5EZWZpbml0aW9uLnJlYWQiLCJEb2N1bWVudFJlZmVyZW5jZS5yZWFkIiwiUGxhbkRlZmluaXRpb24kYXBwbHkiXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/5.0.2 (FHIR Client; FHIR 3.0.2/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.cit-plan-632.local/fhir/Organization/1618"
}
},
{
"url": "role",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/modifier-role",
"code": "owner"
}
]
}
}
]
}
],
"version": "b8fd28e9-81d2-4df2-a394-410612aaef2e",
"status": "active",
"action": [
{
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-overviewUsageMode",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/overviewUsageMode",
"code": "display-item"
}
]
}
}
],
"definition": {
"reference": "https://plan.cit-plan-632.local/fhir/ActivityDefinition/44"
},
"action": [
{
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-overviewUsageMode",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/overviewUsageMode",
"code": "display-item"
}
]
}
}
],
"definition": {
"reference": "https://plan.cit-plan-632.local/fhir/ActivityDefinition/45"
}
}
]
}
]
}
Response
{
"resourceType": "PlanDefinition",
"id": "46",
"meta": {
"versionId": "1",
"lastUpdated": "2020-10-23T11:06:23.868+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.cit-plan-632.local/fhir/Organization/1618"
}
},
{
"url": "role",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/modifier-role",
"code": "owner"
}
]
}
}
]
}
],
"version": "b8fd28e9-81d2-4df2-a394-410612aaef2e",
"status": "active",
"action": [
{
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-overviewUsageMode",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/overviewUsageMode",
"code": "display-item"
}
]
}
}
],
"definition": {
"reference": "https://plan.cit-plan-632.local/fhir/ActivityDefinition/44"
},
"action": [
{
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-overviewUsageMode",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/overviewUsageMode",
"code": "display-item"
}
]
}
}
],
"definition": {
"reference": "https://plan.cit-plan-632.local/fhir/ActivityDefinition/45"
}
}
]
}
]
}
POST [base]/PlanDefinition/41/$apply
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiNjNlOTFhNmQtZjc4ZC00MGM3LTgzNjMtNDYxNGIwZDE1ZmZjIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIlBsYW5EZWZpbml0aW9uJGFwcGx5Il19LCJjb250ZXh0Ijp7Im9yZ2FuaXphdGlvbl9pZCI6Imh0dHBzOi8vb3JnYW5pemF0aW9uLmNpdC1wbGFuLTYzMi5sb2NhbC9maGlyL09yZ2FuaXphdGlvbi81Mjc2MyIsImNhcmVfdGVhbV9pZCI6Imh0dHBzOi8vb3JnYW5pemF0aW9uLmNpdC1wbGFuLTYzMi5sb2NhbC9maGlyL0NhcmVUZWFtLzM3ODk5IiwiZXBpc29kZV9vZl9jYXJlX2lkIjoiaHR0cHM6Ly9jYXJlcGxhbi5jaXQtcGxhbi02MzIubG9jYWwvZmhpci9FcGlzb2RlT2ZDYXJlLzIxOTU3IiwicGF0aWVudF9pZCI6Imh0dHBzOi8vcGF0aWVudC5jaXQtcGxhbi02MzIubG9jYWwvZmhpci9QYXRpZW50LzcyOTExIiwidGVhbV9vbl9lb2MiOmZhbHNlfSwidXNlcl90eXBlIjoiUEFUSUVOVCJ9.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/5.0.2 (FHIR Client; FHIR 3.0.2/DSTU3; apache)
Accept-Encoding: gzip
Content-Type: application/fhir+json; charset=UTF-8
Body:
{
"resourceType": "Parameters",
"parameter": [
{
"name": "episodeOfCare",
"valueReference": {
"reference": "https://careplan.cit-plan-632.local/fhir/EpisodeOfCare/21957"
}
}
]
}
Response
{
"resourceType": "CarePlan",
"id": "83764",
"meta": {
"versionId": "1",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careplan"
]
},
"definition": [
{
"reference": "https://plan.cit-plan-632.local/fhir/PlanDefinition/42"
}
],
"status": "draft",
"intent": "option",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careplan-category",
"code": "TBD"
}
]
}
],
"subject": {
"reference": "https://patient.cit-plan-632.local/fhir/Patient/14871"
},
"context": {
"reference": "https://careplan.cit-plan-632.local/fhir/EpisodeOfCare/58230"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"addresses": [
{
"reference": "https://careplan.cit-plan-632.local/fhir/Condition/49038"
}
]
}
POST [base]/PlanDefinition/$validate
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiUGxhbkRlZmluaXRpb24uY3JlYXRlIiwiQWN0aXZpdHlEZWZpbml0aW9uLnJlYWQiLCJQbGFuRGVmaW5pdGlvbi5zZWFyY2giLCIkdGVzdC1vbmx5LWNyZWF0ZSIsIlBsYW5EZWZpbml0aW9uLnVwZGF0ZSIsIlBsYW5EZWZpbml0aW9uLnJlYWQiLCJEb2N1bWVudFJlZmVyZW5jZS5yZWFkIiwiUGxhbkRlZmluaXRpb24kYXBwbHkiXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/5.0.2 (FHIR Client; FHIR 3.0.2/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.cit-plan-632.local/fhir/Organization/9153"
}
},
{
"url": "role",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/modifier-role",
"code": "owner"
}
]
}
}
]
}
],
"version": "e62ddb7d-cdf7-45c4-9ab8-36aa4aecff0a",
"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></tr><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>No issues detected during validation</pre></td></tr></table></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/83
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiUGxhbkRlZmluaXRpb24uY3JlYXRlIiwiQWN0aXZpdHlEZWZpbml0aW9uLnJlYWQiLCJQbGFuRGVmaW5pdGlvbi5zZWFyY2giLCIkdGVzdC1vbmx5LWNyZWF0ZSIsIlBsYW5EZWZpbml0aW9uLnVwZGF0ZSIsIlBsYW5EZWZpbml0aW9uLnJlYWQiLCJEb2N1bWVudFJlZmVyZW5jZS5yZWFkIiwiUGxhbkRlZmluaXRpb24kYXBwbHkiXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
If-Match: "1"
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/5.0.2 (FHIR Client; FHIR 3.0.2/DSTU3; apache)
Accept-Encoding: gzip
Content-Type: application/fhir+json; charset=UTF-8
Body:
{
"resourceType": "PlanDefinition",
"id": "83",
"meta": {
"versionId": "1",
"lastUpdated": "2020-10-23T11:06:52.091+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.cit-plan-632.local/fhir/Organization/92783"
}
},
{
"url": "role",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/modifier-role",
"code": "owner"
}
]
}
}
]
}
],
"version": "0c36d25c-fceb-45e9-95b4-c9d60122344e",
"status": "active",
"relatedArtifact": [
{
"type": "documentation",
"resource": {
"reference": "https://plan.cit-plan-632.local/fhir/DocumentReference/84"
}
}
],
"action": [
{
"definition": {
"reference": "https://plan.cit-plan-632.local/fhir/PlanDefinition/85"
}
}
]
}
Response
{
"resourceType": "PlanDefinition",
"id": "83",
"meta": {
"versionId": "2",
"lastUpdated": "2020-10-23T11:06:59.200+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.cit-plan-632.local/fhir/Organization/92783"
}
},
{
"url": "role",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/modifier-role",
"code": "owner"
}
]
}
}
]
}
],
"version": "0c36d25c-fceb-45e9-95b4-c9d60122344e",
"status": "active",
"relatedArtifact": [
{
"type": "documentation",
"resource": {
"reference": "https://plan.cit-plan-632.local/fhir/DocumentReference/84"
}
}
],
"action": [
{
"definition": {
"reference": "https://plan.cit-plan-632.local/fhir/PlanDefinition/85"
}
}
]
}