OBJECT

CarePlan

A Care Plan

link GraphQL Schema definition

  • 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
  • # 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
  • #
  • # Arguments
  • # patient_id: The ID of a patient to check
  • group_plan_is_active_for_given_user(
  • 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
  • }