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.
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 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:
- Install GraphViz
brew install graphviz
-
Add
gem 'aasm-diagram', group: :development
to your Gemfile and runbundle
. -
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
Coordinate Pair Team Appointment