CarePlan
Describes the intention of how one or more practitioners intend to deliver care for a particular patient, group or community for a period of time, possibly limited to care for a specific condition or set of conditions.
https://hl7.org/fhir/us/core/STU3.1.1/StructureDefinition-us-core-careplan.html
A CarePlan in Canvas translates to the Integrated Care Plan PDF you can print on the patient’s chart. This endpoint will return either one or zero care plans for each patient. If no care plan was returned for a given patient, then that patient has never had a Goal command committed on their chart.
Endpoints
CarePlan read
Read a CarePlan resource.
Path Parameters
Response Payload Attributes
The FHIR Resource name.
The identifier of the CarePlan.
Text summary of the resource, for human interpretation.
All resources returned from this endpoint will show a status of generated
since this resource is generated by Canvas.
Limited xhtml content that contains the human readable text of the resource.
Indicates whether the plan is currently being acted upon, represents future intentions or is now a historical record. Currently, this value will always return active
.
Indicates the level of authority/intentionality associated with the care plan and where the care plan fits into the workflow chain. Currently, this value will always return plan
.
Type of plan.
A CodeableConcept combination of one or more coding elements.
The system url of the coding.
The code of the category.
The display name of the coding.
Who the care plan is for.
The reference string of the subject in the format of "Patient/a39cafb9d1b445be95a2e2548e12a787"
.
Type the reference refers to (e.g. “Patient”).
Responses
Errors
CarePlan search
Search for CarePlan resources.
Query Parameters
The unique Canvas identifier of the CarePlan.
A category code in the format system|code
.
The patient reference for who this care plan is for, in the format Patient/a39cafb9d1b445be95a2e2548e12a787
.
Response Payload Attributes
The FHIR Resource name.
This element and value designate that the bundle is a search response. Search result bundles will always have the Bundle.type of searchset .
The number of resources that match the search parameter.
Attributes relevant to pagination, see our Pagination page for more detail.
The relation of the page search
The search url for the specific relation
The results bundle that lists out each object returned in the search
The attributes specific to the resource type, see the Attributes section below
Attributes
The FHIR Resource name.
The identifier of the CarePlan.
Text summary of the resource, for human interpretation.
All resources returned from this endpoint will show a status of generated
since this resource is generated by Canvas.
Limited xhtml content that contains the human readable text of the resource.
Indicates whether the plan is currently being acted upon, represents future intentions or is now a historical record. Currently, this value will always return active
.
Indicates the level of authority/intentionality associated with the care plan and where the care plan fits into the workflow chain. Currently, this value will always return plan
.
Type of plan.
A CodeableConcept combination of one or more coding elements.
The system url of the coding.
The code of the category.
The display name of the coding.
Who the care plan is for.
The reference string of the subject in the format of "Patient/a39cafb9d1b445be95a2e2548e12a787"
.
Type the reference refers to (e.g. “Patient”).
Responses
Errors
curl --request GET \ --url 'https://fumage-example.canvasmedical.com/CarePlan/<id>' \ --header 'Authorization: Bearer <token>' \ --header 'accept: application/json'
import requests url = "https://fumage-example.canvasmedical.com/CarePlan/<id>" headers = { "accept": "application/json", "Authorization": "Bearer <token>" } response = requests.get(url, headers=headers) print(response.text)
{ "resourceType": "CarePlan", "id": "b4190e86-1a63-4010-85fe-5c42b607d2f9", "text": { "status": "generated", "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><div class=\"hapiHeaderText\">CarePlan</div><table class=\"hapiPropertyTable\"><tbody><tr><td>Coding</td><td>{'system': 'http://snomed.info/sct', 'code': '734163000', 'display': 'Care plan'}</td></tr><tr><td>For Patient Name</td><td><span>Cube, Rubik N. (Nick Name)</span></td></tr></tbody></table></div>" }, "status": "active", "intent": "plan", "category": [ { "coding": [ { "system": "http://hl7.org/fhir/us/core/CodeSystem/careplan-category", "code": "assess-plan" } ] }, { "coding": [ { "system": "http://snomed.info/sct", "code": "734163000", "display": "Care plan" } ] } ], "subject": { "reference": "Patient/a1197fa9e65b4a5195af15e0234f61c2", "type": "Patient" } }
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "unknown", "details": { "text": "Authentication failed" } } ] }
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "forbidden", "details": { "text": "Authorization failed" } } ] }
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "not-found", "details": { "text": "Unknown CarePlan resource '7d1ce256fcd7408193b0459650937a07'" } } ] }
curl --request GET \ --url 'https://fumage-example.canvasmedical.com/CarePlan?patient=Patient/11430ad243f84ad2a47b1267d33ce9b8&category=http://hl7.org/fhir/us/core/CodeSystem/careplan-category|assess-plan' \ --header 'Authorization: Bearer <token>' \ --header 'accept: application/json'
import requests url = "https://fumage-example.canvasmedical.com/CarePlan?patient=Patient/11430ad243f84ad2a47b1267d33ce9b8&category=http://hl7.org/fhir/us/core/CodeSystem/careplan-category|assess-plan" headers = { "accept": "application/json", "Authorization": "Bearer <token>" } response = requests.get(url, headers=headers) print(response.text)
{ "resourceType": "Bundle", "type": "searchset", "total": 1, "link": [ { "relation": "self", "url": "/CarePlan?patient=Patient/a1197fa9e65b4a5195af15e0234f61c2&_count=10&_offset=0" }, { "relation": "first", "url": "/CarePlan?patient=Patient/a1197fa9e65b4a5195af15e0234f61c2&_count=10&_offset=0" }, { "relation": "last", "url": "/CarePlan?patient=Patient/a1197fa9e65b4a5195af15e0234f61c2&_count=10&_offset=0" } ], "entry": [ { "resource": { "resourceType": "CarePlan", "id": "b4190e86-1a63-4010-85fe-5c42b607d2f9", "text": { "status": "generated", "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><div class=\"hapiHeaderText\">CarePlan</div><table class=\"hapiPropertyTable\"><tbody><tr><td>Coding</td><td>{'system': 'http://snomed.info/sct', 'code': '734163000', 'display': 'Care plan'}</td></tr><tr><td>For Patient Name</td><td><span>Cube, Rubik N. (Nick Name)</span></td></tr></tbody></table></div>" }, "status": "active", "intent": "plan", "category": [ { "coding": [ { "system": "http://hl7.org/fhir/us/core/CodeSystem/careplan-category", "code": "assess-plan" } ] }, { "coding": [ { "system": "http://snomed.info/sct", "code": "734163000", "display": "Care plan" } ] } ], "subject": { "reference": "Patient/a1197fa9e65b4a5195af15e0234f61c2", "type": "Patient" } } } ] }
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "invalid", "details": { "text": "Bad request" } } ] }
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "unknown", "details": { "text": "Authentication failed" } } ] }
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "forbidden", "details": { "text": "Authorization failed" } } ] }