GET [base]/CarePlan/1132
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": "1132",
"meta": {
"versionId": "2",
"lastUpdated": "2020-08-12T07:58:15.516+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careplan"
]
},
"definition": [
{
"reference": "https://plan.cit-careplan-1426.local/fhir/PlanDefinition/84166"
}
],
"partOf": [
{
"reference": "https://careplan.cit-careplan-1426.local/fhir/CarePlan/1128"
}
],
"status": "draft",
"intent": "option",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careplan-category",
"code": "TBD"
}
]
}
],
"subject": {
"reference": "https://patient.cit-careplan-1426.local/fhir/Patient/44234"
},
"context": {
"reference": "https://careplan.cit-careplan-1426.local/fhir/EpisodeOfCare/1131"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"careTeam": [
{
"reference": "https://organization.cit-careplan-1426.local/fhir/CareTeam/24662"
},
{
"reference": "https://organization.cit-careplan-1426.local/fhir/CareTeam/93894"
},
{
"reference": "https://organization.cit-careplan-1426.local/fhir/CareTeam/92873"
}
],
"addresses": [
{
"reference": "https://careplan.cit-careplan-1426.local/fhir/Condition/1129"
}
]
}
GET [base]/CarePlan?care-team=https%3A%2F%2Forganization.cit-careplan-1426.local%2Ffhir%2FCareTeam%2F88447&patient=https%3A%2F%2Fpatient.cit-careplan-1426.local%2Ffhir%2FPatient%2F75401&context.team=https%3A%2F%2Forganization.cit-careplan-1426.local%2Ffhir%2FCareTeam%2F23899
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": "db275390-f078-4a22-a4e0-9286faf34045",
"meta": {
"lastUpdated": "2020-08-12T07:58:07.695+00:00"
},
"type": "searchset",
"total": 2,
"link": [
{
"relation": "self",
"url": "https://careplan.cit-careplan-1426.local/fhir/CarePlan?_format=json&_pretty=true&care-team=https%3A%2F%2Forganization.cit-careplan-1426.local%2Ffhir%2FCareTeam%2F88447&context.team=https%3A%2F%2Forganization.cit-careplan-1426.local%2Ffhir%2FCareTeam%2F23899&patient=https%3A%2F%2Fpatient.cit-careplan-1426.local%2Ffhir%2FPatient%2F75401"
}
],
"entry": [
{
"fullUrl": "https://careplan.cit-careplan-1426.local/fhir/CarePlan/1096",
"resource": {
"resourceType": "CarePlan",
"id": "1096",
"meta": {
"versionId": "1",
"lastUpdated": "2020-08-12T07:58:07.104+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careplan"
]
},
"definition": [
{
"reference": "https://plan.cit-careplan-1426.local/fhir/PlanDefinition/53064"
}
],
"status": "draft",
"intent": "option",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careplan-category",
"code": "TBD"
}
]
}
],
"subject": {
"reference": "https://patient.cit-careplan-1426.local/fhir/Patient/75401"
},
"context": {
"reference": "https://careplan.cit-careplan-1426.local/fhir/EpisodeOfCare/1092"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"careTeam": [
{
"reference": "https://organization.cit-careplan-1426.local/fhir/CareTeam/88447"
}
],
"addresses": [
{
"reference": "https://careplan.cit-careplan-1426.local/fhir/Condition/1095"
}
]
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "https://careplan.cit-careplan-1426.local/fhir/CarePlan/1098",
"resource": {
"resourceType": "CarePlan",
"id": "1098",
"meta": {
"versionId": "1",
"lastUpdated": "2020-08-12T07:58:07.310+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careplan"
]
},
"definition": [
{
"reference": "https://plan.cit-careplan-1426.local/fhir/PlanDefinition/77060"
}
],
"status": "draft",
"intent": "option",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careplan-category",
"code": "TBD"
}
]
}
],
"subject": {
"reference": "https://patient.cit-careplan-1426.local/fhir/Patient/75401"
},
"context": {
"reference": "https://careplan.cit-careplan-1426.local/fhir/EpisodeOfCare/1092"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"careTeam": [
{
"reference": "https://organization.cit-careplan-1426.local/fhir/CareTeam/88447"
}
],
"addresses": [
{
"reference": "https://careplan.cit-careplan-1426.local/fhir/Condition/1097"
}
]
},
"search": {
"mode": "match"
}
}
]
}
GET [base]/CarePlan/1294/_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": "1294",
"meta": {
"versionId": "2",
"lastUpdated": "2020-08-12T07:59:01.802+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-1426.local/fhir/CareTeam/83571"
}
},
{
"url": "period",
"valuePeriod": {
"start": "2020-08-11T07:59:01+00:00",
"end": "2020-08-12T07:59:01+00:00"
}
}
]
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-teamHistory",
"extension": [
{
"url": "careTeam",
"valueReference": {
"reference": "https://organization.cit-careplan-1426.local/fhir/CareTeam/54790"
}
},
{
"url": "period",
"valuePeriod": {
"start": "2020-08-12T07:59:01+00:00"
}
}
]
}
],
"definition": [
{
"reference": "https://plan.cit-careplan-1426.local/fhir/PlanDefinition/1666"
}
],
"status": "draft",
"intent": "option",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careplan-category",
"code": "TBD"
}
]
}
],
"subject": {
"reference": "https://patient.cit-careplan-1426.local/fhir/Patient/27014"
},
"context": {
"reference": "https://careplan.cit-careplan-1426.local/fhir/EpisodeOfCare/1293"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"careTeam": [
{
"reference": "https://organization.cit-careplan-1426.local/fhir/CareTeam/54790"
}
],
"addresses": [
{
"reference": "https://careplan.cit-careplan-1426.local/fhir/Condition/1291"
}
]
}
POST [base]/CarePlan/1308/$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": "1308",
"meta": {
"versionId": "1",
"lastUpdated": "2020-08-12T07:59:03.661+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careplan"
]
},
"definition": [
{
"reference": "https://plan.cit-careplan-1426.local/fhir/PlanDefinition/2007"
}
],
"status": "draft",
"intent": "option",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careplan-category",
"code": "TBD"
}
]
}
],
"subject": {
"reference": "https://patient.cit-careplan-1426.local/fhir/Patient/52445"
},
"context": {
"reference": "https://careplan.cit-careplan-1426.local/fhir/EpisodeOfCare/1307"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"addresses": [
{
"reference": "https://careplan.cit-careplan-1426.local/fhir/Condition/1305"
}
]
}
}
]
}
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/1294
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": "1294",
"meta": {
"versionId": "1",
"lastUpdated": "2020-08-12T07:59:01.600+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-1426.local/fhir/CareTeam/83571"
}
},
{
"url": "period",
"valuePeriod": {
"start": "2020-08-11T07:59:01+00:00"
}
}
]
}
],
"definition": [
{
"reference": "https://plan.cit-careplan-1426.local/fhir/PlanDefinition/1666"
}
],
"status": "draft",
"intent": "option",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careplan-category",
"code": "TBD"
}
]
}
],
"subject": {
"reference": "https://patient.cit-careplan-1426.local/fhir/Patient/27014"
},
"context": {
"reference": "https://careplan.cit-careplan-1426.local/fhir/EpisodeOfCare/1293"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"careTeam": [
{
"reference": "https://organization.cit-careplan-1426.local/fhir/CareTeam/54790"
}
],
"addresses": [
{
"reference": "https://careplan.cit-careplan-1426.local/fhir/Condition/1291"
}
]
}
Response
{
"resourceType": "CarePlan",
"id": "1294",
"meta": {
"versionId": "2",
"lastUpdated": "2020-08-12T07:59:01.802+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-1426.local/fhir/CareTeam/83571"
}
},
{
"url": "period",
"valuePeriod": {
"start": "2020-08-11T07:59:01+00:00",
"end": "2020-08-12T07:59:01+00:00"
}
}
]
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-teamHistory",
"extension": [
{
"url": "careTeam",
"valueReference": {
"reference": "https://organization.cit-careplan-1426.local/fhir/CareTeam/54790"
}
},
{
"url": "period",
"valuePeriod": {
"start": "2020-08-12T07:59:01+00:00"
}
}
]
}
],
"definition": [
{
"reference": "https://plan.cit-careplan-1426.local/fhir/PlanDefinition/1666"
}
],
"status": "draft",
"intent": "option",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careplan-category",
"code": "TBD"
}
]
}
],
"subject": {
"reference": "https://patient.cit-careplan-1426.local/fhir/Patient/27014"
},
"context": {
"reference": "https://careplan.cit-careplan-1426.local/fhir/EpisodeOfCare/1293"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"careTeam": [
{
"reference": "https://organization.cit-careplan-1426.local/fhir/CareTeam/54790"
}
],
"addresses": [
{
"reference": "https://careplan.cit-careplan-1426.local/fhir/Condition/1291"
}
]
}
POST [base]/CarePlan/1108/$suggest-care-teams
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiaHR0cHM6Ly9vcmdhbml6YXRpb24uY2l0LWNhcmVwbGFuLTE0MjYubG9jYWwvZmhpci9QcmFjdGl0aW9uZXIvMzc4NSIsInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJDYXJlUGxhbiRzdWdnZXN0LWNhcmUtdGVhbXMiLCIkdGVzdC1vbmx5LWNyZWF0ZSJdfSwiY29udGV4dCI6eyJjYXJlX3RlYW1faWQiOiJodHRwczovL29yZ2FuaXphdGlvbi5jaXQtY2FyZXBsYW4tMTQyNi5sb2NhbC9maGlyL0NhcmVUZWFtLzE4Njc2IiwiZXBpc29kZV9vZl9jYXJlX2lkIjoiaHR0cHM6Ly9jYXJlcGxhbi5jaXQtY2FyZXBsYW4tMTQyNi5sb2NhbC9maGlyL0VwaXNvZGVPZkNhcmUvMTEwNyIsInBhdGllbnRfaWQiOiJodHRwczovL3BhdGllbnQuY2l0LWNhcmVwbGFuLTE0MjYubG9jYWwvZmhpci9QYXRpZW50LzcwMjQ1IiwidGVhbV9vbl9lb2MiOmZhbHNlfSwidXNlcl90eXBlIjoiUFJBQ1RJVElPTkVSIn0.
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-1426.local/fhir/CareTeam/18676",
"resource": {
"resourceType": "CareTeam",
"id": "18676",
"meta": {
"versionId": "1",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careteam"
]
},
"identifier": [
{
"id": "ce4a88d8-f3f6-46cc-be61-3be10c9cd7de",
"system": "urn:ietf:rfc:3986"
}
],
"status": "active",
"name": "29484bc8-dfa4-4c51-aa0a-8f30ebef0e31",
"reasonCode": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/conditions",
"code": "TBD"
}
]
}
]
}
},
{
"fullUrl": "https://organization.cit-careplan-1426.local/fhir/CareTeam/12488",
"resource": {
"resourceType": "CareTeam",
"id": "12488",
"meta": {
"versionId": "1",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careteam"
]
},
"identifier": [
{
"id": "d973d609-3d72-4ddb-bc47-cc95428a0bef",
"system": "urn:ietf:rfc:3986"
}
],
"status": "active",
"name": "29d1c67a-c293-4d4c-8782-603f0477d44f",
"reasonCode": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/conditions",
"code": "TBD"
}
]
}
]
}
}
]
}
POST [base]/CarePlan/1136/$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-1426.local/fhir/CareTeam/48713"
}
},
{
"name": "removeCareTeams",
"valueReference": {
"reference": "https://organization.cit-careplan-1426.local/fhir/CareTeam/89514"
}
}
]
}
Response
{
"resourceType": "CarePlan",
"id": "1136",
"meta": {
"versionId": "2",
"lastUpdated": "2020-08-12T07:58:17.927+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careplan"
]
},
"definition": [
{
"reference": "https://plan.cit-careplan-1426.local/fhir/PlanDefinition/75845"
}
],
"status": "draft",
"intent": "option",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careplan-category",
"code": "TBD"
}
]
}
],
"subject": {
"reference": "https://patient.cit-careplan-1426.local/fhir/Patient/65144"
},
"context": {
"reference": "https://careplan.cit-careplan-1426.local/fhir/EpisodeOfCare/1135"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"careTeam": [
{
"reference": "https://organization.cit-careplan-1426.local/fhir/CareTeam/7837"
},
{
"reference": "https://organization.cit-careplan-1426.local/fhir/CareTeam/48713"
}
],
"addresses": [
{
"reference": "https://careplan.cit-careplan-1426.local/fhir/Condition/1133"
}
]
}