GET [base]/CarePlan/1641
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/5.0.2 (FHIR Client; FHIR 3.0.2/DSTU3; apache)
Accept-Encoding: gzip
Response
{
"resourceType": "CarePlan",
"id": "1641",
"meta": {
"versionId": "2",
"lastUpdated": "2020-10-22T12:29:26.515+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careplan"
]
},
"definition": [
{
"reference": "https://plan.cit-careplan-1494.local/fhir/PlanDefinition/60740"
}
],
"partOf": [
{
"reference": "https://careplan.cit-careplan-1494.local/fhir/CarePlan/1637"
}
],
"status": "draft",
"intent": "option",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careplan-category",
"code": "TBD"
}
]
}
],
"subject": {
"reference": "https://patient.cit-careplan-1494.local/fhir/Patient/28068"
},
"context": {
"reference": "https://careplan.cit-careplan-1494.local/fhir/EpisodeOfCare/1639"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"careTeam": [
{
"reference": "https://organization.cit-careplan-1494.local/fhir/CareTeam/6945"
},
{
"reference": "https://organization.cit-careplan-1494.local/fhir/CareTeam/78275"
},
{
"reference": "https://organization.cit-careplan-1494.local/fhir/CareTeam/14741"
}
],
"addresses": [
{
"reference": "https://careplan.cit-careplan-1494.local/fhir/Condition/1640"
}
]
}
GET [base]/CarePlan?care-team=https%3A%2F%2Forganization.cit-careplan-1494.local%2Ffhir%2FCareTeam%2F75308&patient=https%3A%2F%2Fpatient.cit-careplan-1494.local%2Ffhir%2FPatient%2F66717&context.team=https%3A%2F%2Forganization.cit-careplan-1494.local%2Ffhir%2FCareTeam%2F6196
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/5.0.2 (FHIR Client; FHIR 3.0.2/DSTU3; apache)
Accept-Encoding: gzip
Response
{
"resourceType": "Bundle",
"id": "afdee94f-c4c9-41f7-92f0-dc324c1e90a6",
"meta": {
"lastUpdated": "2020-10-22T12:29:18.475+00:00"
},
"type": "searchset",
"total": 2,
"link": [
{
"relation": "self",
"url": "https://careplan.cit-careplan-1494.local/fhir/CarePlan?_format=json&_pretty=true&care-team=https%3A%2F%2Forganization.cit-careplan-1494.local%2Ffhir%2FCareTeam%2F75308&context.team=https%3A%2F%2Forganization.cit-careplan-1494.local%2Ffhir%2FCareTeam%2F6196&patient=https%3A%2F%2Fpatient.cit-careplan-1494.local%2Ffhir%2FPatient%2F66717"
}
],
"entry": [
{
"fullUrl": "https://careplan.cit-careplan-1494.local/fhir/CarePlan/1605",
"resource": {
"resourceType": "CarePlan",
"id": "1605",
"meta": {
"versionId": "1",
"lastUpdated": "2020-10-22T12:29:17.972+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careplan"
]
},
"definition": [
{
"reference": "https://plan.cit-careplan-1494.local/fhir/PlanDefinition/49895"
}
],
"status": "draft",
"intent": "option",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careplan-category",
"code": "TBD"
}
]
}
],
"subject": {
"reference": "https://patient.cit-careplan-1494.local/fhir/Patient/66717"
},
"context": {
"reference": "https://careplan.cit-careplan-1494.local/fhir/EpisodeOfCare/1601"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"careTeam": [
{
"reference": "https://organization.cit-careplan-1494.local/fhir/CareTeam/75308"
}
],
"addresses": [
{
"reference": "https://careplan.cit-careplan-1494.local/fhir/Condition/1604"
}
]
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "https://careplan.cit-careplan-1494.local/fhir/CarePlan/1607",
"resource": {
"resourceType": "CarePlan",
"id": "1607",
"meta": {
"versionId": "1",
"lastUpdated": "2020-10-22T12:29:18.176+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careplan"
]
},
"definition": [
{
"reference": "https://plan.cit-careplan-1494.local/fhir/PlanDefinition/270"
}
],
"status": "draft",
"intent": "option",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careplan-category",
"code": "TBD"
}
]
}
],
"subject": {
"reference": "https://patient.cit-careplan-1494.local/fhir/Patient/66717"
},
"context": {
"reference": "https://careplan.cit-careplan-1494.local/fhir/EpisodeOfCare/1601"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"careTeam": [
{
"reference": "https://organization.cit-careplan-1494.local/fhir/CareTeam/75308"
}
],
"addresses": [
{
"reference": "https://careplan.cit-careplan-1494.local/fhir/Condition/1606"
}
]
},
"search": {
"mode": "match"
}
}
]
}
GET [base]/CarePlan/1803/_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/5.0.2 (FHIR Client; FHIR 3.0.2/DSTU3; apache)
Accept-Encoding: gzip
Response
{
"resourceType": "CarePlan",
"id": "1803",
"meta": {
"versionId": "2",
"lastUpdated": "2020-10-22T12:30:25.672+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-1494.local/fhir/CareTeam/16520"
}
},
{
"url": "period",
"valuePeriod": {
"start": "2020-10-21T12:30:25+00:00",
"end": "2020-10-22T12:30:25+00:00"
}
}
]
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-teamHistory",
"extension": [
{
"url": "careTeam",
"valueReference": {
"reference": "https://organization.cit-careplan-1494.local/fhir/CareTeam/72266"
}
},
{
"url": "period",
"valuePeriod": {
"start": "2020-10-22T12:30:25+00:00"
}
}
]
}
],
"definition": [
{
"reference": "https://plan.cit-careplan-1494.local/fhir/PlanDefinition/88227"
}
],
"status": "draft",
"intent": "option",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careplan-category",
"code": "TBD"
}
]
}
],
"subject": {
"reference": "https://patient.cit-careplan-1494.local/fhir/Patient/58458"
},
"context": {
"reference": "https://careplan.cit-careplan-1494.local/fhir/EpisodeOfCare/1801"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"careTeam": [
{
"reference": "https://organization.cit-careplan-1494.local/fhir/CareTeam/72266"
}
],
"addresses": [
{
"reference": "https://careplan.cit-careplan-1494.local/fhir/Condition/1802"
}
]
}
POST [base]/CarePlan/1817/$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/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": "CarePlan",
"id": "1817",
"meta": {
"versionId": "1",
"lastUpdated": "2020-10-22T12:30:27.510+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careplan"
]
},
"definition": [
{
"reference": "https://plan.cit-careplan-1494.local/fhir/PlanDefinition/79589"
}
],
"status": "draft",
"intent": "option",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careplan-category",
"code": "TBD"
}
]
}
],
"subject": {
"reference": "https://patient.cit-careplan-1494.local/fhir/Patient/51770"
},
"context": {
"reference": "https://careplan.cit-careplan-1494.local/fhir/EpisodeOfCare/1815"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"addresses": [
{
"reference": "https://careplan.cit-careplan-1494.local/fhir/Condition/1816"
}
]
}
}
]
}
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]/CarePlan/1803
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/5.0.2 (FHIR Client; FHIR 3.0.2/DSTU3; apache)
Accept-Encoding: gzip
Content-Type: application/fhir+json; charset=UTF-8
Body:
{
"resourceType": "CarePlan",
"id": "1803",
"meta": {
"versionId": "1",
"lastUpdated": "2020-10-22T12:30:25.496+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-1494.local/fhir/CareTeam/16520"
}
},
{
"url": "period",
"valuePeriod": {
"start": "2020-10-21T12:30:25+00:00"
}
}
]
}
],
"definition": [
{
"reference": "https://plan.cit-careplan-1494.local/fhir/PlanDefinition/88227"
}
],
"status": "draft",
"intent": "option",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careplan-category",
"code": "TBD"
}
]
}
],
"subject": {
"reference": "https://patient.cit-careplan-1494.local/fhir/Patient/58458"
},
"context": {
"reference": "https://careplan.cit-careplan-1494.local/fhir/EpisodeOfCare/1801"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"careTeam": [
{
"reference": "https://organization.cit-careplan-1494.local/fhir/CareTeam/72266"
}
],
"addresses": [
{
"reference": "https://careplan.cit-careplan-1494.local/fhir/Condition/1802"
}
]
}
Response
{
"resourceType": "CarePlan",
"id": "1803",
"meta": {
"versionId": "2",
"lastUpdated": "2020-10-22T12:30:25.672+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-1494.local/fhir/CareTeam/16520"
}
},
{
"url": "period",
"valuePeriod": {
"start": "2020-10-21T12:30:25+00:00",
"end": "2020-10-22T12:30:25+00:00"
}
}
]
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-teamHistory",
"extension": [
{
"url": "careTeam",
"valueReference": {
"reference": "https://organization.cit-careplan-1494.local/fhir/CareTeam/72266"
}
},
{
"url": "period",
"valuePeriod": {
"start": "2020-10-22T12:30:25+00:00"
}
}
]
}
],
"definition": [
{
"reference": "https://plan.cit-careplan-1494.local/fhir/PlanDefinition/88227"
}
],
"status": "draft",
"intent": "option",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careplan-category",
"code": "TBD"
}
]
}
],
"subject": {
"reference": "https://patient.cit-careplan-1494.local/fhir/Patient/58458"
},
"context": {
"reference": "https://careplan.cit-careplan-1494.local/fhir/EpisodeOfCare/1801"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"careTeam": [
{
"reference": "https://organization.cit-careplan-1494.local/fhir/CareTeam/72266"
}
],
"addresses": [
{
"reference": "https://careplan.cit-careplan-1494.local/fhir/Condition/1802"
}
]
}
POST [base]/CarePlan/1617/$suggest-care-teams
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiaHR0cHM6Ly9vcmdhbml6YXRpb24uY2l0LWNhcmVwbGFuLTE0OTQubG9jYWwvZmhpci9QcmFjdGl0aW9uZXIvNDYxNDIiLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiQ2FyZVBsYW4kc3VnZ2VzdC1jYXJlLXRlYW1zIiwiJHRlc3Qtb25seS1jcmVhdGUiXX0sImNvbnRleHQiOnsiY2FyZV90ZWFtX2lkIjoiaHR0cHM6Ly9vcmdhbml6YXRpb24uY2l0LWNhcmVwbGFuLTE0OTQubG9jYWwvZmhpci9DYXJlVGVhbS82ODEiLCJlcGlzb2RlX29mX2NhcmVfaWQiOiJodHRwczovL2NhcmVwbGFuLmNpdC1jYXJlcGxhbi0xNDk0LmxvY2FsL2ZoaXIvRXBpc29kZU9mQ2FyZS8xNjE1IiwicGF0aWVudF9pZCI6Imh0dHBzOi8vcGF0aWVudC5jaXQtY2FyZXBsYW4tMTQ5NC5sb2NhbC9maGlyL1BhdGllbnQvOTM4MzMiLCJ0ZWFtX29uX2VvYyI6ZmFsc2V9LCJ1c2VyX3R5cGUiOiJQUkFDVElUSU9ORVIifQ.
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": "regionCode",
"valueString": "DK-85"
}
]
}
Response
{
"resourceType": "Bundle",
"type": "searchset",
"entry": [
{
"fullUrl": "https://organization.cit-careplan-1494.local/fhir/CareTeam/681",
"resource": {
"resourceType": "CareTeam",
"id": "681",
"meta": {
"versionId": "1",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careteam"
]
},
"identifier": [
{
"id": "926511ae-d24f-48fa-b230-7436b018e01e",
"system": "urn:ietf:rfc:3986"
}
],
"status": "active",
"name": "fc87c0df-d551-4b48-9642-2cb9ba217c47",
"reasonCode": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/conditions",
"code": "TBD"
}
]
}
]
}
},
{
"fullUrl": "https://organization.cit-careplan-1494.local/fhir/CareTeam/40581",
"resource": {
"resourceType": "CareTeam",
"id": "40581",
"meta": {
"versionId": "1",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careteam"
]
},
"identifier": [
{
"id": "d8762926-f9e4-4eeb-b094-377f5081b9d5",
"system": "urn:ietf:rfc:3986"
}
],
"status": "active",
"name": "76537151-6015-4779-90e1-683bdc457a68",
"reasonCode": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/conditions",
"code": "TBD"
}
]
}
]
}
}
]
}
POST [base]/CarePlan/1645/$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/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": "addCareTeams",
"valueReference": {
"reference": "https://organization.cit-careplan-1494.local/fhir/CareTeam/84614"
}
},
{
"name": "removeCareTeams",
"valueReference": {
"reference": "https://organization.cit-careplan-1494.local/fhir/CareTeam/86988"
}
}
]
}
Response
{
"resourceType": "CarePlan",
"id": "1645",
"meta": {
"versionId": "2",
"lastUpdated": "2020-10-22T12:29:28.815+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careplan"
]
},
"definition": [
{
"reference": "https://plan.cit-careplan-1494.local/fhir/PlanDefinition/54095"
}
],
"status": "draft",
"intent": "option",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careplan-category",
"code": "TBD"
}
]
}
],
"subject": {
"reference": "https://patient.cit-careplan-1494.local/fhir/Patient/8205"
},
"context": {
"reference": "https://careplan.cit-careplan-1494.local/fhir/EpisodeOfCare/1643"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"careTeam": [
{
"reference": "https://organization.cit-careplan-1494.local/fhir/CareTeam/24104"
},
{
"reference": "https://organization.cit-careplan-1494.local/fhir/CareTeam/84614"
}
],
"addresses": [
{
"reference": "https://careplan.cit-careplan-1494.local/fhir/Condition/1644"
}
]
}