Skip to main content

Interventions

Background

Interventions are the work that needs to be done to address a Problem.

Interventions can be viewed in the care plan view, under their corresponding problem.

intervention_list

Interventions can be added manually to problems by the care team, or automatically by the system given certain conditions.

Interventions progress through different states - each state corresponds to work that needs to be done by either the care team, the patient, or the system. Each intervention can be expanded to see its state.

intervention_expanded

Intervention State Machines

The state machines for all interventions are defined in this folder in arc-api.

The diagrams for all state machines are saved in a Google Drive Folder. The folder contains sub-folders corresponding to when the diagrams were generated. Note that older dates may be out-of-date with the most recent intervention definitions

To generate a visualization of the state machine for an intervention, you can use the following instructions in the arc-api directory:

  1. Install GraphViz
brew install graphviz
  1. Add gem 'aasm-diagram', group: :development to your Gemfile and run bundle.

  2. Identify the state machine you want to visualize and run the following:

AASM_DIAGRAM_OUTPUT_DIR=output_directory rake aasm-diagram:generate[my_model, my_state_machine]

# only need to provide the model if there's only one state machine or you want to generate for the "default" state machine
AASM_DIAGRAM_OUTPUT_DIR=output_directory rake aasm-diagram:generate[my_model]

More information on installation / usage is in the aasm-diagram README.

Example State Machine Diagrams

Coordinate Housing Support

housing_support

Coordinate Pair Team Appointment

appointment