Prevent Missed Refills With Timely Reminders

AI sends HIPAA-compliant refill alerts without medication names. Clinical staff reviews every message before patients see it.


Why this matters

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.


How MultiMail solves this

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.

1

Detect Refill Due Dates

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.

2

Compose PHI-Safe Reminder

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.

3

Clinical Staff Reviews

With gated_send, clinical staff verifies the reminder contains no PHI and the refill timing is appropriate before it reaches the patient.

4

Send and Track

Approved reminders are sent to the patient with pharmacy contact information and portal links for convenient refill requests.


Implementation

Send Refill Reminder
python
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.

Batch Process Refill Reminders
python
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.

MCP Tool Integration
typescript
"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.


What you get

Improved Medication Adherence

Timely refill reminders help patients maintain their medication schedules, reducing treatment gaps and associated health risks.

HIPAA Compliance

Reminders never include medication names, dosages, or conditions. Clinical review via gated_send provides an additional compliance safeguard.

Reduced Staff Workload

Automated email reminders replace time-consuming manual phone calls that often reach voicemail, freeing pharmacy staff for patient care.

Scalable Patient Communication

Handle hundreds of refill reminders per day without proportional staff increases, making proactive patient communication economically viable.


Recommended oversight mode

Recommended
gated_send
Prescription refill reminders involve healthcare communications that must avoid exposing PHI. Gated send ensures clinical staff verifies every reminder contains no medication names or other protected information before it reaches the patient.

Common questions

Why not include the medication name for convenience?
Email is not a HIPAA-secure channel. Including medication names would reveal PHI to anyone with access to the patient's inbox. The reminder should be vague enough that an unauthorized reader wouldn't learn anything about the patient's medical conditions.
How does the system know when refills are due?
Your pharmacy system tracks fill dates and day supply for each prescription. The AI calculates when the supply will run out and sends reminders at configurable intervals (typically 7 and 3 days before). MultiMail handles the email delivery.
What if a patient has multiple prescriptions due?
Send a single reminder saying "you have prescriptions due for refill" (plural) rather than separate emails for each. This avoids revealing the number of medications while still prompting the patient to contact the pharmacy.
Do patients need to opt in to refill reminders?
Yes. HIPAA requires authorization for electronic communications about healthcare. Patients should provide written consent specifying email as an acceptable communication channel for pharmacy reminders. Document this consent in your system.

Explore more use cases

The only agent email with a verifiable sender

Email infrastructure built for AI agents. Verifiable identity, graduated oversight, and a 38-tool MCP server. Formally verified in Lean 4.