GET [base]/CarePlan/1649
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": "1649",
"meta": {
"versionId": "2",
"lastUpdated": "2021-01-06T14:02:30.578+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careplan"
]
},
"definition": [
{
"reference": "https://plan.cit-careplan-1525.local/fhir/PlanDefinition/4330"
}
],
"partOf": [
{
"reference": "https://careplan.cit-careplan-1525.local/fhir/CarePlan/1645"
}
],
"status": "draft",
"intent": "option",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careplan-category",
"code": "TBD"
}
]
}
],
"subject": {
"reference": "https://patient.cit-careplan-1525.local/fhir/Patient/58049"
},
"context": {
"reference": "https://careplan.cit-careplan-1525.local/fhir/EpisodeOfCare/1647"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"careTeam": [
{
"reference": "https://organization.cit-careplan-1525.local/fhir/CareTeam/46173"
},
{
"reference": "https://organization.cit-careplan-1525.local/fhir/CareTeam/97002"
},
{
"reference": "https://organization.cit-careplan-1525.local/fhir/CareTeam/56303"
}
],
"addresses": [
{
"reference": "https://careplan.cit-careplan-1525.local/fhir/Condition/1648"
}
]
}
GET [base]/CarePlan?care-team=https%3A%2F%2Forganization.cit-careplan-1525.local%2Ffhir%2FCareTeam%2F92800&patient=https%3A%2F%2Fpatient.cit-careplan-1525.local%2Ffhir%2FPatient%2F28496&context.team=https%3A%2F%2Forganization.cit-careplan-1525.local%2Ffhir%2FCareTeam%2F77629
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": "344430cc-2b0d-4ff6-a950-2145081dccba",
"meta": {
"lastUpdated": "2021-01-06T14:02:21.357+00:00"
},
"type": "searchset",
"total": 2,
"link": [
{
"relation": "self",
"url": "https://careplan.cit-careplan-1525.local/fhir/CarePlan?_format=json&_pretty=true&care-team=https%3A%2F%2Forganization.cit-careplan-1525.local%2Ffhir%2FCareTeam%2F92800&context.team=https%3A%2F%2Forganization.cit-careplan-1525.local%2Ffhir%2FCareTeam%2F77629&patient=https%3A%2F%2Fpatient.cit-careplan-1525.local%2Ffhir%2FPatient%2F28496"
}
],
"entry": [
{
"fullUrl": "https://careplan.cit-careplan-1525.local/fhir/CarePlan/1613",
"resource": {
"resourceType": "CarePlan",
"id": "1613",
"meta": {
"versionId": "1",
"lastUpdated": "2021-01-06T14:02:20.718+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careplan"
]
},
"definition": [
{
"reference": "https://plan.cit-careplan-1525.local/fhir/PlanDefinition/43490"
}
],
"status": "draft",
"intent": "option",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careplan-category",
"code": "TBD"
}
]
}
],
"subject": {
"reference": "https://patient.cit-careplan-1525.local/fhir/Patient/28496"
},
"context": {
"reference": "https://careplan.cit-careplan-1525.local/fhir/EpisodeOfCare/1609"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"careTeam": [
{
"reference": "https://organization.cit-careplan-1525.local/fhir/CareTeam/92800"
}
],
"addresses": [
{
"reference": "https://careplan.cit-careplan-1525.local/fhir/Condition/1612"
}
]
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "https://careplan.cit-careplan-1525.local/fhir/CarePlan/1615",
"resource": {
"resourceType": "CarePlan",
"id": "1615",
"meta": {
"versionId": "1",
"lastUpdated": "2021-01-06T14:02:21.012+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careplan"
]
},
"definition": [
{
"reference": "https://plan.cit-careplan-1525.local/fhir/PlanDefinition/23052"
}
],
"status": "draft",
"intent": "option",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careplan-category",
"code": "TBD"
}
]
}
],
"subject": {
"reference": "https://patient.cit-careplan-1525.local/fhir/Patient/28496"
},
"context": {
"reference": "https://careplan.cit-careplan-1525.local/fhir/EpisodeOfCare/1609"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"careTeam": [
{
"reference": "https://organization.cit-careplan-1525.local/fhir/CareTeam/92800"
}
],
"addresses": [
{
"reference": "https://careplan.cit-careplan-1525.local/fhir/Condition/1614"
}
]
},
"search": {
"mode": "match"
}
}
]
}
GET [base]/CarePlan/1811/_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": "1811",
"meta": {
"versionId": "2",
"lastUpdated": "2021-01-06T14:03:34.217+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-1525.local/fhir/CareTeam/19390"
}
},
{
"url": "period",
"valuePeriod": {
"start": "2021-01-05T14:03:33+00:00",
"end": "2021-01-06T14:03:34+00:00"
}
}
]
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-teamHistory",
"extension": [
{
"url": "careTeam",
"valueReference": {
"reference": "https://organization.cit-careplan-1525.local/fhir/CareTeam/59751"
}
},
{
"url": "period",
"valuePeriod": {
"start": "2021-01-06T14:03:34+00:00"
}
}
]
}
],
"definition": [
{
"reference": "https://plan.cit-careplan-1525.local/fhir/PlanDefinition/33540"
}
],
"status": "draft",
"intent": "option",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careplan-category",
"code": "TBD"
}
]
}
],
"subject": {
"reference": "https://patient.cit-careplan-1525.local/fhir/Patient/19803"
},
"context": {
"reference": "https://careplan.cit-careplan-1525.local/fhir/EpisodeOfCare/1809"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"careTeam": [
{
"reference": "https://organization.cit-careplan-1525.local/fhir/CareTeam/59751"
}
],
"addresses": [
{
"reference": "https://careplan.cit-careplan-1525.local/fhir/Condition/1810"
}
]
}
POST [base]/CarePlan/1825/$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": "1825",
"meta": {
"versionId": "1",
"lastUpdated": "2021-01-06T14:03:36.437+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careplan"
]
},
"definition": [
{
"reference": "https://plan.cit-careplan-1525.local/fhir/PlanDefinition/54740"
}
],
"status": "draft",
"intent": "option",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careplan-category",
"code": "TBD"
}
]
}
],
"subject": {
"reference": "https://patient.cit-careplan-1525.local/fhir/Patient/37831"
},
"context": {
"reference": "https://careplan.cit-careplan-1525.local/fhir/EpisodeOfCare/1823"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"addresses": [
{
"reference": "https://careplan.cit-careplan-1525.local/fhir/Condition/1824"
}
]
}
}
]
}
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/1811
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": "1811",
"meta": {
"versionId": "1",
"lastUpdated": "2021-01-06T14:03:34.031+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-1525.local/fhir/CareTeam/19390"
}
},
{
"url": "period",
"valuePeriod": {
"start": "2021-01-05T14:03:33+00:00"
}
}
]
}
],
"definition": [
{
"reference": "https://plan.cit-careplan-1525.local/fhir/PlanDefinition/33540"
}
],
"status": "draft",
"intent": "option",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careplan-category",
"code": "TBD"
}
]
}
],
"subject": {
"reference": "https://patient.cit-careplan-1525.local/fhir/Patient/19803"
},
"context": {
"reference": "https://careplan.cit-careplan-1525.local/fhir/EpisodeOfCare/1809"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"careTeam": [
{
"reference": "https://organization.cit-careplan-1525.local/fhir/CareTeam/59751"
}
],
"addresses": [
{
"reference": "https://careplan.cit-careplan-1525.local/fhir/Condition/1810"
}
]
}
Response
{
"resourceType": "CarePlan",
"id": "1811",
"meta": {
"versionId": "2",
"lastUpdated": "2021-01-06T14:03:34.217+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-1525.local/fhir/CareTeam/19390"
}
},
{
"url": "period",
"valuePeriod": {
"start": "2021-01-05T14:03:33+00:00",
"end": "2021-01-06T14:03:34+00:00"
}
}
]
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-teamHistory",
"extension": [
{
"url": "careTeam",
"valueReference": {
"reference": "https://organization.cit-careplan-1525.local/fhir/CareTeam/59751"
}
},
{
"url": "period",
"valuePeriod": {
"start": "2021-01-06T14:03:34+00:00"
}
}
]
}
],
"definition": [
{
"reference": "https://plan.cit-careplan-1525.local/fhir/PlanDefinition/33540"
}
],
"status": "draft",
"intent": "option",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careplan-category",
"code": "TBD"
}
]
}
],
"subject": {
"reference": "https://patient.cit-careplan-1525.local/fhir/Patient/19803"
},
"context": {
"reference": "https://careplan.cit-careplan-1525.local/fhir/EpisodeOfCare/1809"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"careTeam": [
{
"reference": "https://organization.cit-careplan-1525.local/fhir/CareTeam/59751"
}
],
"addresses": [
{
"reference": "https://careplan.cit-careplan-1525.local/fhir/Condition/1810"
}
]
}
POST [base]/CarePlan/1625/$suggest-care-teams
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiaHR0cHM6Ly9vcmdhbml6YXRpb24uY2l0LWNhcmVwbGFuLTE1MjUubG9jYWwvZmhpci9QcmFjdGl0aW9uZXIvMTEwMTgiLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiQ2FyZVBsYW4kc3VnZ2VzdC1jYXJlLXRlYW1zIiwiJHRlc3Qtb25seS1jcmVhdGUiXX0sImNvbnRleHQiOnsiY2FyZV90ZWFtX2lkIjoiaHR0cHM6Ly9vcmdhbml6YXRpb24uY2l0LWNhcmVwbGFuLTE1MjUubG9jYWwvZmhpci9DYXJlVGVhbS8zMTcwOSIsImVwaXNvZGVfb2ZfY2FyZV9pZCI6Imh0dHBzOi8vY2FyZXBsYW4uY2l0LWNhcmVwbGFuLTE1MjUubG9jYWwvZmhpci9FcGlzb2RlT2ZDYXJlLzE2MjMiLCJwYXRpZW50X2lkIjoiaHR0cHM6Ly9wYXRpZW50LmNpdC1jYXJlcGxhbi0xNTI1LmxvY2FsL2ZoaXIvUGF0aWVudC8zMjc5NiIsInRlYW1fb25fZW9jIjpmYWxzZX0sInVzZXJfdHlwZSI6IlBSQUNUSVRJT05FUiJ9.
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-1525.local/fhir/CareTeam/31709",
"resource": {
"resourceType": "CareTeam",
"id": "31709",
"meta": {
"versionId": "1",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careteam"
]
},
"identifier": [
{
"id": "579a7a72-ae67-425b-9d51-ab8e6e7cf5f6",
"system": "urn:ietf:rfc:3986"
}
],
"status": "active",
"name": "c108921c-1480-4baf-8746-04f19ce4524e",
"reasonCode": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/conditions",
"code": "TBD"
}
]
}
]
}
},
{
"fullUrl": "https://organization.cit-careplan-1525.local/fhir/CareTeam/78368",
"resource": {
"resourceType": "CareTeam",
"id": "78368",
"meta": {
"versionId": "1",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careteam"
]
},
"identifier": [
{
"id": "81124a0a-a87a-47ba-aae6-75ac5235bf6c",
"system": "urn:ietf:rfc:3986"
}
],
"status": "active",
"name": "53fa4e07-1dbf-4710-8e32-e12c4334704a",
"reasonCode": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/conditions",
"code": "TBD"
}
]
}
]
}
}
]
}
POST [base]/CarePlan/1653/$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-1525.local/fhir/CareTeam/9743"
}
},
{
"name": "removeCareTeams",
"valueReference": {
"reference": "https://organization.cit-careplan-1525.local/fhir/CareTeam/26260"
}
}
]
}
Response
{
"resourceType": "CarePlan",
"id": "1653",
"meta": {
"versionId": "2",
"lastUpdated": "2021-01-06T14:02:33.042+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careplan"
]
},
"definition": [
{
"reference": "https://plan.cit-careplan-1525.local/fhir/PlanDefinition/25560"
}
],
"status": "draft",
"intent": "option",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careplan-category",
"code": "TBD"
}
]
}
],
"subject": {
"reference": "https://patient.cit-careplan-1525.local/fhir/Patient/20938"
},
"context": {
"reference": "https://careplan.cit-careplan-1525.local/fhir/EpisodeOfCare/1651"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"careTeam": [
{
"reference": "https://organization.cit-careplan-1525.local/fhir/CareTeam/37765"
},
{
"reference": "https://organization.cit-careplan-1525.local/fhir/CareTeam/9743"
}
],
"addresses": [
{
"reference": "https://careplan.cit-careplan-1525.local/fhir/Condition/1652"
}
]
}