Skip to content

Care Plans

Care Plans

For more information on the Care Plans feature in general, view our help articles here.

The Care Plan object

{
"id": "1",
"name": "Care Plan 1",
"description": "Example description",
"recommendations": [
{
"id": "1",
"recommendation_body": "<p>Drink 8 glasses of water a day</p>",
"recommendation_type": "Nutrition",
"sanitized_body": "Drink 8 glasses of water a day"
}
],
"is_active": true,
"is_hidden": false
}

Care Plans are CarePlan objects.

You can view the full list of available fields here.

Listing Care Plans

query carePlans(
$patient_id: ID
$offset: Int
$sort_by: String
$templates_only: Boolean
$template_search_keywords: String
) {
carePlans(
patient_id: $patient_id
offset: $offset
sort_by: $sort_by
templates_only: $templates_only
template_search_keywords: $template_search_keywords
) {
id
name
patient {
id
}
}
}

Listing Care Plans is done via the carePlans query.

You can view a full list of potential arguments here.

InputInfo
sort_byOptional. Valid options are:
  • oldest
  • newest (default)
  • name_asc
  • name_desc
  • status_asc
  • status_desc
  • client_name_desc
  • client_name_asc
  • deactivated_desc, activated_desc
  • deactivated_asc, activated_asc
patient_idOptional. ID of the Client that is associated with the Care Plan.
template_search_keywordsOptional. Can be searched by name.

Returns a list of Care Plan objects.

Retrieving a Care Plan

query carePlan($id: ID) {
carePlan(id: $id) {
id
name
patient {
id
}
}
}

Retrieving a specific Care Plan is done via the carePlan query.

InputInfo
idID of the Care Plan to query.

Returns a Care Plan object.

Creating a Care Plan

mutation createCarePlan(
$name: String,
$patient_id: ID,
$is_hidden: Boolean
) {
createCarePlan(input: {
$name: String,
$patient_id: ID,
$is_hidden: Boolean,
}) {
carePlan {
id
}
messages {
field
message
}
}
}

You can view a full list of potential inputs here.

InputInfo
nameRequired. Name of the care plan. Not visible to Patients.
patient_idOptional. ID of the Patient to create a Care Plan for.
is_hiddenOptional. Whether the Care Plan should be hidden.

Returns a createCarePlanPayload object.

Updating a Care Plan

mutation updateCarePlan(
$id: ID
$name: String
$description: String
$new_patient_id: ID
$is_template: Boolean
$is_hidden: Boolean
) {
updateCarePlan(
input: {
id: $id
name: $name
description: $description
new_patient_id: $new_patient_id
is_template: $is_template
is_hidden: $is_hidden
}
) {
carePlan {
id
}
messages {
field
message
}
}
}

You can view a full list of potential inputs here.

InputInfo
idRequired. The ID of the Care Plan to update.
descriptionOptional. A description visible to Patients.
new_patient_idOptional. Provide a new Patient ID to move the Care Plan to another Patient.
is_templateOptional. Set to true in order to created a Care Plan template. Should be used without a patient_id.

Returns an updateCarePlanPayload object.

Deleting a Care Plan

Care Plans can be deleted by authorized providers and staff members via the deleteCarePlan mutation.

You can view a full list of potential inputs here.

mutation deleteCarePlan($id: ID) {
deleteCarePlan(input: { id: $id }) {
carePlan {
id
}
messages {
field
message
}
}
}
InputInfo
idRequired. ID of the Care Plan to delete.

Returns a deleteCarePlanPayload object.