AI sends HIPAA-compliant refill alerts without medication names. Clinical staff reviews every message before patients see it.
Patients miss medication refills causing treatment gaps and health complications. Pharmacy staff spend hours making manual reminder calls that often go to voicemail. Email reminders are more scalable but must avoid including medication names or dosages to maintain HIPAA compliance.
MultiMail's AI agent sends timely refill reminders based on fill dates and medication schedules. With gated_send oversight, clinical staff reviews every reminder to verify no PHI is exposed while the message remains helpful enough to prompt patient action.
The AI monitors prescription fill dates and medication schedules to identify when refills are due. It triggers reminders at configurable intervals before the expected refill date.
The agent drafts a reminder that informs the patient a prescription is due for refill without naming the medication, dosage, or condition. It directs them to contact the pharmacy.
With gated_send, clinical staff verifies the reminder contains no PHI and the refill timing is appropriate before it reaches the patient.
Approved reminders are sent to the patient with pharmacy contact information and portal links for convenient refill requests.
import requests
API = "https://api.multimail.dev/v1"
HEADERS = {"Authorization": "Bearer mm_live_xxx"}
def send_refill_reminder(patient_email: str, pharmacy: dict):
"cm"># IMPORTANT: Never include medication name, dosage, or condition
body = (
f"Dear patient,\n\n"
f"You have a prescription due for refill. Please contact "
f"{pharmacy[&"cm">#039;name']} to arrange your refill:\n\n"
f"Phone: {pharmacy[&"cm">#039;phone']}\n"
f"Online: {pharmacy[&"cm">#039;portal_url']}\n\n"
f"If you have questions, please contact your prescribing "
f"provider.\n\n"
f"This is an automated reminder from {pharmacy[&"cm">#039;name']}."
)
return requests.post(
f"{API}/send",
headers=HEADERS,
json={
"from": f"reminders@{pharmacy[&"cm">#039;domain']}",
"to": patient_email,
"subject": "Prescription refill reminder",
"text_body": body
}
).json()Send a HIPAA-compliant refill reminder without including medication details.
import requests
from datetime import datetime, timedelta
API = "https://api.multimail.dev/v1"
HEADERS = {"Authorization": "Bearer mm_live_xxx"}
def process_upcoming_refills(pharmacy: dict):
"cm"># Get patients with refills due in next 7 days
upcoming = get_refills_due(
within_days=7,
pharmacy_id=pharmacy["id"]
)
sent = 0
for refill in upcoming:
if not refill.get("patient_email") or not refill.get("consent"):
continue
requests.post(
f"{API}/send",
headers=HEADERS,
json={
"from": f"reminders@{pharmacy[&"cm">#039;domain']}",
"to": refill["patient_email"],
"subject": f"Prescription refill reminder from {pharmacy[&"cm">#039;name']}",
"text_body": f"Dear patient, you have a prescription due for refill. Contact {pharmacy[&"cm">#039;name']} at {pharmacy['phone']}."
}
)
sent += 1
print(f"Queued {sent} refill reminders for review")Process upcoming refills and queue HIPAA-compliant reminders for clinical review.
"cm">// Prescription refill reminder via MCP
"cm">// IMPORTANT: Never include medication names or dosages
await mcp.send_email({
from: "[email protected]",
to: patientEmail,
subject: "Prescription refill reminder from City Pharmacy",
text_body: [
"Dear patient,",
"",
"You have a prescription due for refill.",
"Please contact City Pharmacy:",
"Phone: (555) 123-4567",
"Online: https://pharmacy.example.com/refill",
"",
"Questions? Contact your prescribing provider."
].join("\n")
});Use MultiMail MCP tools for prescription refill alerts.
Timely refill reminders help patients maintain their medication schedules, reducing treatment gaps and associated health risks.
Reminders never include medication names, dosages, or conditions. Clinical review via gated_send provides an additional compliance safeguard.
Automated email reminders replace time-consuming manual phone calls that often reach voicemail, freeing pharmacy staff for patient care.
Handle hundreds of refill reminders per day without proportional staff increases, making proactive patient communication economically viable.
Email infrastructure built for AI agents. Verifiable identity, graduated oversight, and a 38-tool MCP server. Formally verified in Lean 4.