Self-referrals screened, then charted in DrChrono
Reads each self-referral from your Formstack form, checks service area, payer and age, and asks your intake coordinator in Slack if the person is a fit before a DrChrono chart.
The prompt
When someone refers themselves on our Formstack website form, read their answers: name, date of birth, contact details, address, why they want care, and their insurance. Check that they live in our service area, that we accept their insurance, and that their age is in our range. Look them up in DrChrono by name and birth date. Then ask our intake coordinator in Slack whether they're a fit, showing what passed, what didn't, what they left blank, and any chart that looks like theirs, and wait for the answer. If the coordinator declines, stop there. If they accept, open a new chart, or use the existing chart they picked. On a new chart, add the insurance from the form as primary. Then give our intake team a task in DrChrono to call the patient and schedule the first visit.
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 self-referral Checks your self-referral form in Formstack every 5 minutes and picks up each new submission.
- Read the self-referral An AI agent reads the answers with the form's questions and pulls out the person's details, why they want care, and their insurance. It also notes anything they left blank.
- Screen the referral Checks the address against your service area, the insurer against the payers you accept, and the age against your range. It reports each result and turns no one away.
- Look for an existing chart Searches DrChrono by last name and birth date, then by first name and birth date, for a chart the person already has.
- Ask the intake coordinator Every self-referral goes to the intake coordinator in Slack: name and birth date, the reason, each screening result, what was left blank, and any chart that matches. The buttons accept the person on that chart, accept them as a new patient, or decline.
- Wait for the coordinator's answer The run waits for the click. Decline ends the run there.
- Open a new chart A new patient gets a DrChrono chart with the self-referral as the source. When the form has an insurer and member ID, Add the insurance puts them on the new chart as primary. Insurance on an existing chart is never changed.
- Create the intake task Gives your intake team a DrChrono task to call the patient and schedule the first visit, with the reason, the screening results and the insurance from the form.
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 Formstack personal access token and the client ID and client secret of your DrChrono API application, then connect your DrChrono and Slack accounts.
- Add your Anthropic key in the flow setting Anthropic key. Fill in the flow settings Payers we accept, Service area (states, ZIP codes or the first 3 digits of a ZIP code, separated by commas), Minimum age and Maximum age.
- Copy the URL of the block Wait for the coordinator's answer into the flow setting Answer link. The Slack buttons open it.
- Pick your self-referral form in New self-referral, the intake coordinator's channel in Ask the intake coordinator, the doctor for new charts in Open a new chart, and the task status and your intake group in Create the intake task.