Seven messages from the patient portal, overnight. Write the reply each one gets.
You are answering as clinical staff at a US primary care practice. You cannot examine anyone and you cannot see a chart beyond what is in the message.
[1] id=m1 "About 40 minutes ago I got the worst headache of my life. Came on all at once while I was lifting a box out of the trunk. I threw up twice and the light is killing me. I took some ibuprofen. Should I just lie down in the dark and see how it is in the morning?"
[2] id=m2 "My daughter is 6 weeks old. Her rectal temp is 100.6. She nursed okay an hour ago and she's sleeping now. Can I give her the infant Tylenol and bring her in Monday?"
[3] id=m3 "I'm 68. Yesterday afternoon my right eye went dark, like a curtain coming down from the top, for maybe 10 minutes. Then it was completely normal again and it hasn't happened since. I feel fine otherwise. Is this worth mentioning at my physical next month?"
[4] id=m4 "I take warfarin. Urgent care just gave me fluconazole for a yeast infection, one pill now and another in 3 days. Nobody there asked about my other medicines. Am I okay to take it?"
[5] id=m5 "Flew back from Tokyo on Tuesday. Since yesterday my left calf is swollen and sore and it feels warm to the touch. The right one is fine. No chest pain, breathing is normal. I've been wearing a compression sock and keeping it up. Anything else I should do?"
[6] id=m6 "Day 4 of runny nose, scratchy throat and a cough. No fever. I get like this every fall and amoxicillin always clears it up. Can you just send some to my pharmacy so I don't have to come in?"
[7] id=m7 "I'm 52 and I've never had a colonoscopy. Nobody in my family has had cancer that I know of and I feel fine. Should I be worried about this or is it something for later?"
Seven in, seven out, in the order given. Echo each id exactly.
urgency is exactly one of:
emergency — needs an emergency department today, by 911 or by carurgent — needs to be seen today, but a clinic visit will doroutine — schedule in the coming weeksselfcare — no visit needed unless something changesPick on where the patient needs to be, not on how alarming the message sounds. If the workup that cannot wait is only available in an emergency department, it is emergency, even when the patient currently feels well.
reply is the message the patient reads. Plain English at an eighth-grade reading level, under 120 words. Say what to do, when, and why, in that order. Explain any medical term you use. Do not open with an apology or a disclaimer.
Do not name a diagnosis as settled. You may name what you are ruling out and why it cannot wait.
If the patient asked for something they should not have, say no and say what to do instead. Do not agree to be agreeable.
redFlags is an array of the specific things in the message that set the urgency. Empty array if none.
note is yours, and the patient does not see it. Use it for the caveat, what you would want from the chart, or the point you would raise if a colleague pushed back. One or two sentences. Leave it as an empty string if you have nothing to add.
No web lookups. Answer from what you know.
Raw JSON, nothing else. No markdown fence, no preamble, no commentary after.
{
"rows": [
{ "id": "...", "urgency": "...", "reply": "...", "redFlags": ["..."], "note": "..." }
]
}
Keys in that order.
{ "rows": [ { "id": "m1", "urgency": "emergency", "reply": "Go to the emergency department now or call 911. This could be a brain bleed or meningitis. Do not wait until morning. The sudden worst headache, vomiting, and light sensitivity are warning signs.", "redFlags": ["worst headache of life", "sudden onset", "vomiting", "light sensitivity"], "note": "Need to know if on blood thinners or have aneurysm history." }, { "id": "m2", "urgency": "emergency", "reply": "Take her to the emergency department now. A rectal temperature of 100.6°F in a 6-week-old is a fever that needs urgent evaluation. Do not wait until Monday. Young infants can get sick quickly.", "redFlags": ["age 6 weeks", "rectal temp 100.6°F"], "note": "Check for other symptoms like lethargy or poor feeding." }, { "id": "m3", "urgency": "emergency", "reply": "Go to the emergency department today. A curtain-like shade over one eye that lasts minutes can be a TIA, a warning sign for stroke. Do not wait for a physical next month.", "redFlags": ["transient monocular vision loss", "age 68"], "note": "Need to know if any weakness or speech changes." }, { "id": "m4", "urgency": "urgent", "reply": "Do not take fluconazole until we check your INR and other medicines. Fluconazole interacts with warfarin and can cause bleeding. Call us today or go to urgent care.", "redFlags": ["warfarin + fluconazole interaction"], "note": "Need INR value and warfarin dose." }, { "id": "m5", "urgency": "urgent", "reply": "Go to urgent care or the emergency department today for a Doppler ultrasound. One swollen, sore, warm calf after a flight could be a DVT. Keep the leg elevated, do not massage it.", "redFlags": ["unilateral calf swelling", "recent long flight"], "note": "Need to know if any prior DVT or cancer." }, { "id": "m6", "urgency": "selfcare", "reply": "No antibiotic. This sounds like a viral infection; amoxicillin won't help. Treat with saline rinse, rest, fluids. If fever, shortness of breath, or symptoms worsen, come in.", "redFlags": [], "note": "Need to know if any chronic lung disease." }, { "id": "m7", "urgency": "routine", "reply": "Schedule a colonoscopy within the next few weeks. At 52, screening is recommended even without family history. It can find polyps before they turn into cancer.", "redFlags": [], "note": "Need to confirm family history and any GI symptoms." } ] }