GET [base]/CarePlan/764
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiaHR0cHM6Ly9vcmdhbml6YXRpb24ubG9jYWwuZWhlYWx0aC5zdW5kaGVkLmRrL2ZoaXIvUHJhY3RpdGlvbmVyLzQwNjUzIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkVwaXNvZGVPZkNhcmUuc2VhcmNoIiwiRXBpc29kZU9mQ2FyZS5yZWFkIiwiQ2FyZVBsYW4ucmVhZCIsIkVwaXNvZGVPZkNhcmUkdXBkYXRlLWNhcmUtdGVhbXMiLCIkdGVzdC1vbmx5LWNyZWF0ZSJdfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
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": "764",
"meta": {
"versionId": "2",
"lastUpdated": "2020-03-26T12:59:05.958+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careplan"
]
},
"definition": [
{
"reference": "https://plan.local.ehealth.sundhed.dk/fhir/PlanDefinition/71873"
}
],
"status": "draft",
"intent": "option",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careplan-category",
"code": "TBD"
}
]
}
],
"subject": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/36693"
},
"context": {
"reference": "https://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/760"
},
"period": {
"start": "1970-01-01T01:00:01+01:00",
"end": "1970-01-01T01:01:40+01:00"
},
"careTeam": [
{
"reference": "https://organization.local.ehealth.sundhed.dk/fhir/CareTeam/41444"
},
{
"reference": "https://organization.local.ehealth.sundhed.dk/fhir/CareTeam/39475"
}
],
"addresses": [
{
"reference": "https://careplan.local.ehealth.sundhed.dk/fhir/Condition/763"
}
]
}
GET [base]/CarePlan?patient=https%3A%2F%2Fpatient.local.ehealth.sundhed.dk%2Ffhir%2FPatient%2F54235
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiJHRlc3Qtb25seS1jcmVhdGUiLCJDYXJlUGxhbi5zZWFyY2giXX0sImNvbnRleHQiOnsicGF0aWVudF9pZCI6Imh0dHBzOi8vcGF0aWVudC5sb2NhbC5laGVhbHRoLnN1bmRoZWQuZGsvZmhpci9QYXRpZW50LzU0MjM1In0sInVzZXJfdHlwZSI6IlBBVElFTlQifQ.
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": "800cb6bb-8f0d-43ee-8ad6-b79c24e672a1",
"meta": {
"lastUpdated": "2020-03-26T12:58:09.266+00:00"
},
"type": "searchset",
"total": 1,
"link": [
{
"relation": "self",
"url": "https://careplan.local.ehealth.sundhed.dk/fhir/CarePlan?_format=json&_pretty=true&patient=https%3A%2F%2Fpatient.local.ehealth.sundhed.dk%2Ffhir%2FPatient%2F54235"
}
],
"entry": [
{
"fullUrl": "https://careplan.local.ehealth.sundhed.dk/fhir/CarePlan/478",
"resource": {
"resourceType": "CarePlan",
"id": "478",
"meta": {
"versionId": "1",
"lastUpdated": "2020-03-26T12:58:09.088+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careplan"
]
},
"definition": [
{
"reference": "https://plan.local.ehealth.sundhed.dk/fhir/PlanDefinition/84398"
}
],
"status": "draft",
"intent": "option",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careplan-category",
"code": "TBD"
}
]
}
],
"subject": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/54235"
},
"context": {
"reference": "https://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/477"
},
"period": {
"start": "1970-01-01T01:00:01+01:00",
"end": "1970-01-01T01:01:40+01:00"
},
"addresses": [
{
"reference": "https://careplan.local.ehealth.sundhed.dk/fhir/Condition/475"
}
]
},
"search": {
"mode": "match"
}
}
]
}
GET [base]/CarePlan/490/_history/2
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiRXBpc29kZU9mQ2FyZS5yZWFkIiwiQ2FyZVBsYW4ucmVhZCIsIiR0ZXN0LW9ubHktY3JlYXRlIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
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": "490",
"meta": {
"versionId": "2",
"lastUpdated": "2020-03-26T12:58:11.260+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.local.ehealth.sundhed.dk/fhir/CareTeam/16692"
}
},
{
"url": "period",
"valuePeriod": {
"start": "2020-03-26T12:58:11+00:00"
}
}
]
}
],
"definition": [
{
"reference": "https://plan.local.ehealth.sundhed.dk/fhir/PlanDefinition/11252"
}
],
"status": "draft",
"intent": "option",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careplan-category",
"code": "TBD"
}
]
}
],
"subject": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/47614"
},
"context": {
"reference": "https://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/489"
},
"period": {
"start": "1970-01-01T01:00:01+01:00",
"end": "1970-01-01T01:01:40+01:00"
},
"careTeam": [
{
"reference": "https://organization.local.ehealth.sundhed.dk/fhir/CareTeam/16692"
}
],
"addresses": [
{
"reference": "https://careplan.local.ehealth.sundhed.dk/fhir/Condition/487"
}
]
}
POST [base]/CarePlan/434/$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": "434",
"meta": {
"versionId": "1",
"lastUpdated": "2020-03-26T12:58:01.834+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careplan"
]
},
"definition": [
{
"reference": "https://plan.local.ehealth.sundhed.dk/fhir/PlanDefinition/70643"
}
],
"status": "draft",
"intent": "option",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careplan-category",
"code": "TBD"
}
]
}
],
"subject": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/85514"
},
"context": {
"reference": "https://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/433"
},
"period": {
"start": "1970-01-01T01:00:01+01:00",
"end": "1970-01-01T01:01:40+01:00"
},
"addresses": [
{
"reference": "https://careplan.local.ehealth.sundhed.dk/fhir/Condition/431"
}
]
}
}
]
}
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/490
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiQ2FyZVBsYW4kdXBkYXRlLnJlc3BvbnNpYmlsaXR5IiwiQ2FyZVBsYW4ucmVhZCIsIkNhcmVQbGFuLnVwZGF0ZSIsIiR0ZXN0LW9ubHktY3JlYXRlIl19LCJjb250ZXh0Ijp7ImNhcmVfdGVhbV9pZCI6Imh0dHBzOi8vb3JnYW5pemF0aW9uLmxvY2FsLmVoZWFsdGguc3VuZGhlZC5kay9maGlyL0NhcmVUZWFtLzk2MDUwIiwiZXBpc29kZV9vZl9jYXJlX2lkIjoiaHR0cHM6Ly9jYXJlcGxhbi5sb2NhbC5laGVhbHRoLnN1bmRoZWQuZGsvZmhpci9FcGlzb2RlT2ZDYXJlLzQ4OSIsInBhdGllbnRfaWQiOiJodHRwczovL3BhdGllbnQubG9jYWwuZWhlYWx0aC5zdW5kaGVkLmRrL2ZoaXIvUGF0aWVudC80NzYxNCJ9LCJ1c2VyX3R5cGUiOiJQUkFDVElUSU9ORVIifQ.
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": "490",
"meta": {
"versionId": "1",
"lastUpdated": "2020-03-26T12:58:11.063+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careplan"
]
},
"definition": [
{
"reference": "https://plan.local.ehealth.sundhed.dk/fhir/PlanDefinition/11252"
}
],
"status": "draft",
"intent": "option",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careplan-category",
"code": "TBD"
}
]
}
],
"subject": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/47614"
},
"context": {
"reference": "https://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/489"
},
"period": {
"start": "1970-01-01T01:00:01+01:00",
"end": "1970-01-01T01:01:40+01:00"
},
"careTeam": [
{
"reference": "https://organization.local.ehealth.sundhed.dk/fhir/CareTeam/16692"
}
],
"addresses": [
{
"reference": "https://careplan.local.ehealth.sundhed.dk/fhir/Condition/487"
}
]
}
Response
{
"resourceType": "CarePlan",
"id": "490",
"meta": {
"versionId": "2",
"lastUpdated": "2020-03-26T12:58:11.260+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.local.ehealth.sundhed.dk/fhir/CareTeam/16692"
}
},
{
"url": "period",
"valuePeriod": {
"start": "2020-03-26T12:58:11+00:00"
}
}
]
}
],
"definition": [
{
"reference": "https://plan.local.ehealth.sundhed.dk/fhir/PlanDefinition/11252"
}
],
"status": "draft",
"intent": "option",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careplan-category",
"code": "TBD"
}
]
}
],
"subject": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/47614"
},
"context": {
"reference": "https://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/489"
},
"period": {
"start": "1970-01-01T01:00:01+01:00",
"end": "1970-01-01T01:01:40+01:00"
},
"careTeam": [
{
"reference": "https://organization.local.ehealth.sundhed.dk/fhir/CareTeam/16692"
}
],
"addresses": [
{
"reference": "https://careplan.local.ehealth.sundhed.dk/fhir/Condition/487"
}
]
}
POST [base]/CarePlan/268/$suggest-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": "regionCode",
"valueString": "DK-85"
}
]
}
Response
{
"resourceType": "Bundle",
"type": "searchset",
"entry": [
{
"fullUrl": "https://organization.local.ehealth.sundhed.dk/fhir/CareTeam/94800",
"resource": {
"resourceType": "CareTeam",
"id": "94800",
"meta": {
"versionId": "1",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careteam"
]
},
"identifier": [
{
"id": "a7e23e8c-5355-494c-9d75-eb929f9647f8",
"system": "urn:ietf:rfc:3986"
}
],
"status": "active",
"name": "5709ae22-f718-4f20-aad0-1b81b513c758",
"reasonCode": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/conditions",
"code": "TBD"
}
]
}
]
}
},
{
"fullUrl": "https://organization.local.ehealth.sundhed.dk/fhir/CareTeam/4663",
"resource": {
"resourceType": "CareTeam",
"id": "4663",
"meta": {
"versionId": "1",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careteam"
]
},
"identifier": [
{
"id": "2fd371fe-f287-468f-82a8-3b3fef53c507",
"system": "urn:ietf:rfc:3986"
}
],
"status": "active",
"name": "623aecd1-11b6-4094-9ba9-d358cb6a500c",
"reasonCode": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/conditions",
"code": "TBD"
}
]
}
]
}
}
]
}
POST [base]/CarePlan/482/$update-care-teams
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiQ2FyZVBsYW4kdXBkYXRlLWNhcmUtdGVhbXMiLCJDYXJlUGxhbiR1cGRhdGUucmVzcG9uc2liaWxpdHkiLCJDYXJlUGxhbi5yZWFkIiwiJHRlc3Qtb25seS1jcmVhdGUiXX0sImNvbnRleHQiOnsiY2FyZV90ZWFtX2lkIjoiaHR0cHM6Ly9vcmdhbml6YXRpb24ubG9jYWwuZWhlYWx0aC5zdW5kaGVkLmRrL2ZoaXIvQ2FyZVRlYW0vNDQ5MzYiLCJlcGlzb2RlX29mX2NhcmVfaWQiOiJodHRwczovL2NhcmVwbGFuLmxvY2FsLmVoZWFsdGguc3VuZGhlZC5kay9maGlyL0VwaXNvZGVPZkNhcmUvNDgxIiwicGF0aWVudF9pZCI6Imh0dHBzOi8vcGF0aWVudC5sb2NhbC5laGVhbHRoLnN1bmRoZWQuZGsvZmhpci9QYXRpZW50LzYzMDE1In0sInVzZXJfdHlwZSI6IlBSQUNUSVRJT05FUiJ9.
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.local.ehealth.sundhed.dk/fhir/CareTeam/44936"
}
}
]
}
Response
{
"resourceType": "CarePlan",
"id": "482",
"meta": {
"versionId": "1",
"lastUpdated": "2020-03-26T12:58:09.945+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careplan"
]
},
"definition": [
{
"reference": "https://plan.local.ehealth.sundhed.dk/fhir/PlanDefinition/69761"
}
],
"status": "draft",
"intent": "option",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careplan-category",
"code": "TBD"
}
]
}
],
"subject": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/63015"
},
"context": {
"reference": "https://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/481"
},
"period": {
"start": "1970-01-01T01:00:01+01:00",
"end": "1970-01-01T01:01:40+01:00"
},
"careTeam": [
{
"reference": "https://organization.local.ehealth.sundhed.dk/fhir/CareTeam/44936"
}
],
"addresses": [
{
"reference": "https://careplan.local.ehealth.sundhed.dk/fhir/Condition/479"
}
]
}