ConceptFor engineers

Before you trigger a care flow

Whichever way a care flow starts, every trigger needs a patient and the data the flow's logic depends on.

Several triggers can start a care flow, and nothing restricts a care flow to one of them. Each suits different situations, so running more than one is normal.

Whichever trigger starts it, a care flow needs a patient and whatever data its logic reads.

Create a patient first

Every care flow is linked to a patient, so the patient has to exist before the flow can start.

Anonymous patients are supported, with no protected health information at all, which suits a public intake form where the person filling it in isn't known yet.

Populate patient_code. It holds the calling system's own internal ID for the patient, and it's what matches a patient in Awell to the same person elsewhere. Skipping it makes the two records harder to match up later. See Patient identifiers.

Decide what data the flow needs at start

At start, a care flow needs:

  1. Data about the patient, as above.
  2. Data the care flow's logic needs. Anything a condition, a calculation or a timing reference reads. These arrive as baseline data points.

If the flow's logic reads a baseline value that never arrived, the flow reaches that logic and stops without raising an error. Work out what the logic needs before wiring the trigger, not after.

Triggers, ordered by engineering effort

TriggerEngineering effortBest when
Awell CareNoneA person starts flows, or a flow needs testing
Hosted Pages linkVery lowPatients self-enroll from a link or QR code
File uploadVery lowBatches, on a schedule
Incoming webhookLowAnother system emits an event
ADT feedsMedium, plus a hospitalHospital admission and discharge should drive care
The APIHighestThe integration needs full control

Next steps

Next: Enrollment triggers, the place in the app where all of this is managed.

On this page