Skip to content

CarePlan

A Care Plan

Fields

assigned_to · String · The name of a user group or a patient the care plan has been assigned to
created_at · String! · required · Date of creation
creator · User · Provider who created care plan
cursor · Cursor! · required · Pagination cursor
description · String · The care plan description
documents · [Document!]! · required · Associated documents
feature_toggle · FeatureToggle · Feature Toggle of the care plan
goals · [Goal!]! · required · Associated goals
group_plan_is_active_for_given_user · Boolean · Shows whether a group care plan(or a single one, if patient_id argument is not passed) is active for a given user. Make sure to pass patient_id argument if you need to check the status of a group care_plan for the given user
has_users_with_real_emails · Boolean · Shows whether the patient or at least one user from the related group has not skipped email. We don't want to call care_plan_mailer if all of related users have skipped_email == true
id · ID! · required · The unique identifier of the plan
is_active · Boolean · Care plan is active for the associated patient
is_group · Boolean · Indicates whether a care plan is for a group
is_hidden · Boolean! · required · Care plan status
is_template · Boolean! · required · Indicates if care plan can be used as a template and can be assigned on other users
name · String · The name of care plan
patient · User · A user the care plan has been assigned to
recommendations · [Recommendation!]! · required · Ordered (Ascending) associated recommendations
updated_at · String! · required · Date when record was last updated
user_group · UserGroup · A user group the care plan has been assigned to

Used By

Definition

"""
A Care Plan
"""
type CarePlan {
"""
The name of a user group or a patient the care plan has been assigned to
"""
assigned_to: String
"""
Date of creation
"""
created_at: String!
"""
Provider who created care plan
"""
creator: User
"""
Pagination cursor
"""
cursor: Cursor!
"""
The care plan description
"""
description: String
"""
Associated documents
"""
documents: [Document!]!
"""
Feature Toggle of the care plan
"""
feature_toggle: FeatureToggle
"""
Associated goals
"""
goals: [Goal!]!
"""
Shows whether a group care plan(or a single one, if patient_id argument is not passed) is active for a given user. Make sure to pass patient_id argument if you need to check the status of a group care_plan for the given user
"""
group_plan_is_active_for_given_user(
"""
The ID of a patient to check
"""
patient_id: ID
): Boolean
"""
Shows whether the patient or at least one user from the related group has not skipped email. We don't want to call care_plan_mailer if all of related users have skipped_email == true
"""
has_users_with_real_emails: Boolean
"""
The unique identifier of the plan
"""
id: ID!
"""
Care plan is active for the associated patient
"""
is_active: Boolean
"""
Indicates whether a care plan is for a group
"""
is_group: Boolean
"""
Care plan status
"""
is_hidden: Boolean!
"""
Indicates if care plan can be used as a template and can be assigned on other users
"""
is_template: Boolean!
"""
The name of care plan
"""
name: String
"""
A user the care plan has been assigned to
"""
patient: User
"""
Ordered (Ascending) associated recommendations
"""
recommendations: [Recommendation!]!
"""
Date when record was last updated
"""
updated_at: String!
"""
A user group the care plan has been assigned to
"""
user_group: UserGroup
}