Critical lab values escalated from a Teams card to a phone call
Sends a critical lab value from Healthie to the on-call clinician on a Teams card, calls their phone after 30 minutes, and brings in the clinical lead 15 minutes after that.
The prompt
When Healthie receives a lab result with a value the lab flagged critical, send the on-call clinician a card in our on-call Teams channel with the patient's name and birth date, the ordering provider, each value the lab flagged with its units and the lab's range, a link to the chart and an Acknowledge button. If nobody acknowledges in 30 minutes, call the on-call phone with Twilio and say that a critical lab result for the patient's initials needs attention and to check Teams. Never read the value out loud. If there's still no acknowledgment 15 minutes after the call, send the same card to the clinical lead's channel and call their phone too. When someone acknowledges, say so in the card's thread.
FlowRunner Prompt to Flow built this flow from that request. Here it is as it opens in the editor.
The flow
Download the file, then in FlowRunner click + beside Flows, pick it under Import a Flow Version and click Create. How importing works
What each step does
- New lab result in Healthie Starts when Healthie receives a lab result, with the patient, the ordering provider and each value with the lab's flag.
- Critical flag on the result? A value counts as critical when its flag is one of the codes in the flow setting Critical flag codes, or when the lab's interpretation says critical. A result with neither ends here.
- Send the card to on-call Posts a card in the on-call channel with the patient's name and birth date, the ordering provider, each value the lab flagged with its units and the lab's range, a link to the chart and an Acknowledge button.
- Wait for an acknowledgment Waits for a press of Acknowledge on either card, and confirms in the on-call card's Teams thread who acknowledged.
- Call the on-call clinician If nobody acknowledges in 30 minutes, Twilio calls the on-call phone. The message gives only the patient's initials and asks them to check Teams, so no value is left on a voicemail.
- Send the card to the clinical lead Still no acknowledgment 15 minutes after the call: the clinical lead gets the same card in their channel.
- Call the clinical lead Twilio calls the clinical lead's phone with the same short message.
Before you turn it on
This flow assumes every service in it, FlowRunner included, has signed a business associate agreement (BAA) with you. Its messages to your staff include the patient details they need to decide.
- Enter your Healthie API key and your Twilio account details, and connect your Microsoft Teams account.
- Copy the URL of the block Wait for an acknowledgment into the flow setting Answer link. The Acknowledge buttons open it.
- Fill in the flow settings Teams team ID, On-call channel ID, Clinical lead channel ID, On-call phone number, Clinical lead phone number and Twilio calling number. Change On-call phone number when the rotation changes.
- Set the flow setting Critical flag codes to the flags your labs print for a critical value, such as HH, LL, AA, C, CR, CRIT, PANIC.