GET [base]/CarePlan/1150
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiQ2FyZVBsYW4kc3VnZ2VzdC1jYXJlLXRlYW1zIiwiQ2FyZVBsYW4kdXBkYXRlLWNhcmUtdGVhbXMiLCJDYXJlUGxhbi5yZWFkIiwiJHRlc3Qtb25seS1jcmVhdGUiLCJDYXJlUGxhbi5zZWFyY2giXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
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": "CarePlan",
"id": "1150",
"meta": {
"versionId": "2",
"lastUpdated": "2020-06-23T08:13:37.400+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careplan"
]
},
"definition": [
{
"reference": "https://plan.cit-careplan-1279.local/fhir/PlanDefinition/11106"
}
],
"partOf": [
{
"reference": "https://careplan.cit-careplan-1279.local/fhir/CarePlan/1146"
}
],
"status": "draft",
"intent": "option",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careplan-category",
"code": "TBD"
}
]
}
],
"subject": {
"reference": "https://patient.cit-careplan-1279.local/fhir/Patient/24452"
},
"context": {
"reference": "https://careplan.cit-careplan-1279.local/fhir/EpisodeOfCare/1149"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"careTeam": [
{
"reference": "https://organization.cit-careplan-1279.local/fhir/CareTeam/80380"
},
{
"reference": "https://organization.cit-careplan-1279.local/fhir/CareTeam/75547"
},
{
"reference": "https://organization.cit-careplan-1279.local/fhir/CareTeam/70520"
}
],
"addresses": [
{
"reference": "https://careplan.cit-careplan-1279.local/fhir/Condition/1147"
}
]
}
GET [base]/CarePlan?care-team=https%3A%2F%2Forganization.cit-careplan-1279.local%2Ffhir%2FCareTeam%2F72965&patient=https%3A%2F%2Fpatient.cit-careplan-1279.local%2Ffhir%2FPatient%2F66683&context.team=https%3A%2F%2Forganization.cit-careplan-1279.local%2Ffhir%2FCareTeam%2F88736
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiQ2FyZVBsYW4kc3VnZ2VzdC1jYXJlLXRlYW1zIiwiQ2FyZVBsYW4kdXBkYXRlLWNhcmUtdGVhbXMiLCJDYXJlUGxhbi5yZWFkIiwiJHRlc3Qtb25seS1jcmVhdGUiLCJDYXJlUGxhbi5zZWFyY2giXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
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": "ccb4fd20-f8a2-4cd9-b60b-a675321fa742",
"meta": {
"lastUpdated": "2020-06-23T08:13:29.151+00:00"
},
"type": "searchset",
"total": 2,
"link": [
{
"relation": "self",
"url": "https://careplan.cit-careplan-1279.local/fhir/CarePlan?_format=json&_pretty=true&care-team=https%3A%2F%2Forganization.cit-careplan-1279.local%2Ffhir%2FCareTeam%2F72965&context.team=https%3A%2F%2Forganization.cit-careplan-1279.local%2Ffhir%2FCareTeam%2F88736&patient=https%3A%2F%2Fpatient.cit-careplan-1279.local%2Ffhir%2FPatient%2F66683"
}
],
"entry": [
{
"fullUrl": "https://careplan.cit-careplan-1279.local/fhir/CarePlan/1118",
"resource": {
"resourceType": "CarePlan",
"id": "1118",
"meta": {
"versionId": "1",
"lastUpdated": "2020-06-23T08:13:28.522+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careplan"
]
},
"definition": [
{
"reference": "https://plan.cit-careplan-1279.local/fhir/PlanDefinition/86260"
}
],
"status": "draft",
"intent": "option",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careplan-category",
"code": "TBD"
}
]
}
],
"subject": {
"reference": "https://patient.cit-careplan-1279.local/fhir/Patient/66683"
},
"context": {
"reference": "https://careplan.cit-careplan-1279.local/fhir/EpisodeOfCare/1114"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"careTeam": [
{
"reference": "https://organization.cit-careplan-1279.local/fhir/CareTeam/72965"
}
],
"addresses": [
{
"reference": "https://careplan.cit-careplan-1279.local/fhir/Condition/1117"
}
]
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "https://careplan.cit-careplan-1279.local/fhir/CarePlan/1120",
"resource": {
"resourceType": "CarePlan",
"id": "1120",
"meta": {
"versionId": "1",
"lastUpdated": "2020-06-23T08:13:28.733+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careplan"
]
},
"definition": [
{
"reference": "https://plan.cit-careplan-1279.local/fhir/PlanDefinition/68706"
}
],
"status": "draft",
"intent": "option",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careplan-category",
"code": "TBD"
}
]
}
],
"subject": {
"reference": "https://patient.cit-careplan-1279.local/fhir/Patient/66683"
},
"context": {
"reference": "https://careplan.cit-careplan-1279.local/fhir/EpisodeOfCare/1114"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"careTeam": [
{
"reference": "https://organization.cit-careplan-1279.local/fhir/CareTeam/72965"
}
],
"addresses": [
{
"reference": "https://careplan.cit-careplan-1279.local/fhir/Condition/1119"
}
]
},
"search": {
"mode": "match"
}
}
]
}
GET [base]/CarePlan/1298/_history/2
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiQ2FyZVBsYW4kc3VnZ2VzdC1jYXJlLXRlYW1zIiwiQ2FyZVBsYW4kdXBkYXRlLWNhcmUtdGVhbXMiLCJDYXJlUGxhbi5yZWFkIiwiJHRlc3Qtb25seS1jcmVhdGUiLCJDYXJlUGxhbi5zZWFyY2giXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
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": "CarePlan",
"id": "1298",
"meta": {
"versionId": "2",
"lastUpdated": "2020-06-23T08:14:20.591+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careplan"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-teamHistory",
"extension": [
{
"url": "careTeam",
"valueReference": {
"reference": "https://organization.cit-careplan-1279.local/fhir/CareTeam/72038"
}
},
{
"url": "period",
"valuePeriod": {
"start": "2020-06-22T08:14:20+00:00",
"end": "2020-06-23T08:14:20+00:00"
}
}
]
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-teamHistory",
"extension": [
{
"url": "careTeam",
"valueReference": {
"reference": "https://organization.cit-careplan-1279.local/fhir/CareTeam/28349"
}
},
{
"url": "period",
"valuePeriod": {
"start": "2020-06-23T08:14:20+00:00"
}
}
]
}
],
"definition": [
{
"reference": "https://plan.cit-careplan-1279.local/fhir/PlanDefinition/30066"
}
],
"status": "draft",
"intent": "option",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careplan-category",
"code": "TBD"
}
]
}
],
"subject": {
"reference": "https://patient.cit-careplan-1279.local/fhir/Patient/88013"
},
"context": {
"reference": "https://careplan.cit-careplan-1279.local/fhir/EpisodeOfCare/1297"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"careTeam": [
{
"reference": "https://organization.cit-careplan-1279.local/fhir/CareTeam/28349"
}
],
"addresses": [
{
"reference": "https://careplan.cit-careplan-1279.local/fhir/Condition/1295"
}
]
}
POST [base]/CarePlan/1312/$validate
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiQ2FyZVBsYW4kc3VnZ2VzdC1jYXJlLXRlYW1zIiwiQ2FyZVBsYW4kdXBkYXRlLWNhcmUtdGVhbXMiLCJDYXJlUGxhbi5yZWFkIiwiJHRlc3Qtb25seS1jcmVhdGUiLCJDYXJlUGxhbi5zZWFyY2giXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
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": "CarePlan",
"id": "1312",
"meta": {
"versionId": "1",
"lastUpdated": "2020-06-23T08:14:22.597+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careplan"
]
},
"definition": [
{
"reference": "https://plan.cit-careplan-1279.local/fhir/PlanDefinition/66937"
}
],
"status": "draft",
"intent": "option",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careplan-category",
"code": "TBD"
}
]
}
],
"subject": {
"reference": "https://patient.cit-careplan-1279.local/fhir/Patient/12669"
},
"context": {
"reference": "https://careplan.cit-careplan-1279.local/fhir/EpisodeOfCare/1311"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"addresses": [
{
"reference": "https://careplan.cit-careplan-1279.local/fhir/Condition/1309"
}
]
}
}
]
}
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]/CarePlan/1298
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiQ2FyZVBsYW4kc3VnZ2VzdC1jYXJlLXRlYW1zIiwiQ2FyZVBsYW4kdXBkYXRlLWNhcmUtdGVhbXMiLCJDYXJlUGxhbi5yZWFkIiwiJHRlc3Qtb25seS1jcmVhdGUiLCJDYXJlUGxhbi5zZWFyY2giXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
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": "CarePlan",
"id": "1298",
"meta": {
"versionId": "1",
"lastUpdated": "2020-06-23T08:14:20.409+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careplan"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-teamHistory",
"extension": [
{
"url": "careTeam",
"valueReference": {
"reference": "https://organization.cit-careplan-1279.local/fhir/CareTeam/72038"
}
},
{
"url": "period",
"valuePeriod": {
"start": "2020-06-22T08:14:20+00:00"
}
}
]
}
],
"definition": [
{
"reference": "https://plan.cit-careplan-1279.local/fhir/PlanDefinition/30066"
}
],
"status": "draft",
"intent": "option",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careplan-category",
"code": "TBD"
}
]
}
],
"subject": {
"reference": "https://patient.cit-careplan-1279.local/fhir/Patient/88013"
},
"context": {
"reference": "https://careplan.cit-careplan-1279.local/fhir/EpisodeOfCare/1297"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"careTeam": [
{
"reference": "https://organization.cit-careplan-1279.local/fhir/CareTeam/28349"
}
],
"addresses": [
{
"reference": "https://careplan.cit-careplan-1279.local/fhir/Condition/1295"
}
]
}
Response
{
"resourceType": "CarePlan",
"id": "1298",
"meta": {
"versionId": "2",
"lastUpdated": "2020-06-23T08:14:20.591+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careplan"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-teamHistory",
"extension": [
{
"url": "careTeam",
"valueReference": {
"reference": "https://organization.cit-careplan-1279.local/fhir/CareTeam/72038"
}
},
{
"url": "period",
"valuePeriod": {
"start": "2020-06-22T08:14:20+00:00",
"end": "2020-06-23T08:14:20+00:00"
}
}
]
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-teamHistory",
"extension": [
{
"url": "careTeam",
"valueReference": {
"reference": "https://organization.cit-careplan-1279.local/fhir/CareTeam/28349"
}
},
{
"url": "period",
"valuePeriod": {
"start": "2020-06-23T08:14:20+00:00"
}
}
]
}
],
"definition": [
{
"reference": "https://plan.cit-careplan-1279.local/fhir/PlanDefinition/30066"
}
],
"status": "draft",
"intent": "option",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careplan-category",
"code": "TBD"
}
]
}
],
"subject": {
"reference": "https://patient.cit-careplan-1279.local/fhir/Patient/88013"
},
"context": {
"reference": "https://careplan.cit-careplan-1279.local/fhir/EpisodeOfCare/1297"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"careTeam": [
{
"reference": "https://organization.cit-careplan-1279.local/fhir/CareTeam/28349"
}
],
"addresses": [
{
"reference": "https://careplan.cit-careplan-1279.local/fhir/Condition/1295"
}
]
}
POST [base]/CarePlan/1130/$suggest-care-teams
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiaHR0cHM6Ly9vcmdhbml6YXRpb24uY2l0LWNhcmVwbGFuLTEyNzkubG9jYWwvZmhpci9QcmFjdGl0aW9uZXIvNzU2MzMiLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiQ2FyZVBsYW4kc3VnZ2VzdC1jYXJlLXRlYW1zIiwiJHRlc3Qtb25seS1jcmVhdGUiXX0sImNvbnRleHQiOnsiY2FyZV90ZWFtX2lkIjoiaHR0cHM6Ly9vcmdhbml6YXRpb24uY2l0LWNhcmVwbGFuLTEyNzkubG9jYWwvZmhpci9DYXJlVGVhbS8yNzMxNiIsImVwaXNvZGVfb2ZfY2FyZV9pZCI6Imh0dHBzOi8vY2FyZXBsYW4uY2l0LWNhcmVwbGFuLTEyNzkubG9jYWwvZmhpci9FcGlzb2RlT2ZDYXJlLzExMjkiLCJwYXRpZW50X2lkIjoiaHR0cHM6Ly9wYXRpZW50LmNpdC1jYXJlcGxhbi0xMjc5LmxvY2FsL2ZoaXIvUGF0aWVudC8zNTQ2NyIsInRlYW1fb25fZW9jIjpmYWxzZX0sInVzZXJfdHlwZSI6IlBSQUNUSVRJT05FUiJ9.
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": "regionCode",
"valueString": "DK-85"
}
]
}
Response
{
"resourceType": "Bundle",
"type": "searchset",
"entry": [
{
"fullUrl": "https://organization.cit-careplan-1279.local/fhir/CareTeam/27316",
"resource": {
"resourceType": "CareTeam",
"id": "27316",
"meta": {
"versionId": "1",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careteam"
]
},
"identifier": [
{
"id": "915fbb98-34b2-45dd-ae14-5db36ace0254",
"system": "urn:ietf:rfc:3986"
}
],
"status": "active",
"name": "a5276d70-dacd-4b26-ad2e-9bad0ce6b19a",
"reasonCode": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/conditions",
"code": "TBD"
}
]
}
]
}
},
{
"fullUrl": "https://organization.cit-careplan-1279.local/fhir/CareTeam/2053",
"resource": {
"resourceType": "CareTeam",
"id": "2053",
"meta": {
"versionId": "1",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careteam"
]
},
"identifier": [
{
"id": "8f84b914-e4ea-4c1c-9bbf-46a4496eb362",
"system": "urn:ietf:rfc:3986"
}
],
"status": "active",
"name": "cf269982-c81e-4153-9938-9709bb3aa9bf",
"reasonCode": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/conditions",
"code": "TBD"
}
]
}
]
}
}
]
}
POST [base]/CarePlan/1154/$update-care-teams
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiQ2FyZVBsYW4kc3VnZ2VzdC1jYXJlLXRlYW1zIiwiQ2FyZVBsYW4kdXBkYXRlLWNhcmUtdGVhbXMiLCJDYXJlUGxhbi5yZWFkIiwiJHRlc3Qtb25seS1jcmVhdGUiLCJDYXJlUGxhbi5zZWFyY2giXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
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": "addCareTeams",
"valueReference": {
"reference": "https://organization.cit-careplan-1279.local/fhir/CareTeam/91995"
}
},
{
"name": "removeCareTeams",
"valueReference": {
"reference": "https://organization.cit-careplan-1279.local/fhir/CareTeam/62441"
}
}
]
}
Response
{
"resourceType": "CarePlan",
"id": "1154",
"meta": {
"versionId": "2",
"lastUpdated": "2020-06-23T08:13:40.008+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careplan"
]
},
"definition": [
{
"reference": "https://plan.cit-careplan-1279.local/fhir/PlanDefinition/69865"
}
],
"status": "draft",
"intent": "option",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careplan-category",
"code": "TBD"
}
]
}
],
"subject": {
"reference": "https://patient.cit-careplan-1279.local/fhir/Patient/41023"
},
"context": {
"reference": "https://careplan.cit-careplan-1279.local/fhir/EpisodeOfCare/1153"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"careTeam": [
{
"reference": "https://organization.cit-careplan-1279.local/fhir/CareTeam/18798"
},
{
"reference": "https://organization.cit-careplan-1279.local/fhir/CareTeam/91995"
}
],
"addresses": [
{
"reference": "https://careplan.cit-careplan-1279.local/fhir/Condition/1151"
}
]
}