Cedar GroveFamily Clinic guide

HIPAA-minded design · clinic-chat

This is a portfolio demo, not a covered clinic.

Cedar Grove Family Clinic is invented. The people, plans, and appointments are synthetic. The product is shaped the way a careful clinic chat would be shaped, and it stops well short of what a real deployment would have to sign, encrypt, and staff.

What the guide will and will not say

Answers about hours, campuses, insurance names, new-patient steps, visit prep, video visits, billing, refills, vaccines, lab policy, and the privacy note are pulled from the patient guide. The sentence you see is the sentence in the document, plus the result of a tool. If the guide does not contain the fact, the chat says it could not find it.

It refuses diagnosis, symptom interpretation, lab interpretation, and medication dosing. Those refusals are part of the eval suite, so a passing build has already been asked things like “do I have strep?” and “how much ibuprofen?” and answered without a dose.

Emergencies stop the interview

Chest pain, trouble breathing, a drooping face, slurred speech, arm weakness, and suicidal ideation are not turned into scheduling questions. The reply tells the person to call 911. Suicidal ideation also names 988, the Suicide & Crisis Lifeline. The chat does not give first-aid steps, does not say “you are having a heart attack” or “you are having a stroke,” and does not copy the message into the handoff record. The handoff stores a category so the desk can see that the chat stopped.

Minimum necessary

Booking, refills, and callbacks ask for a name and a callback number. They do not ask for a Social Security number, a date of birth, a member ID, or a medical history. If someone pastes those anyway, the reply tells them they were not needed, and the stored transcript masks them.

The appointment and ticket files keep the callback number because the desk cannot call without it. The transcript, the tool trace, and the audit log store a masked number or no number at all. Revealing the full number on the staff desk writes an audit entry that does not itself contain the number.

Tools, and the refill that is never approved

The guide can search clinicians, read openings, book, reschedule, cancel, check a plan name, open a refill ticket, and create a callback. Insurance results are in network, out of network, unknown, or self-pay. Unknown plans are not guessed into coverage.

A refill ticket is created as pending clinician review. Controlled medications are flagged and still not approved. The staff desk can mark a ticket “in review.” There is no status for “approved,” because approval is a clinician action outside this assistant.

Retention, consent, and the audit log

Sending a message requires the demo consent banner. The banner says not to enter real health information. Transcripts are designed to be deleted after 30 days. The staff desk can run that pass. It deletes chats. It does not delete the synthetic schedule, which would be a different record with a different retention rule in a real clinic. Chat is not the medical record.

Logging in, opening the desk, revealing a number, marking a ticket, running retention, and running evals each add an audit row. Patient-facing tool use does too: insurance checks, directory reads, schedule reads, bookings, refills, callbacks, emergency handoffs, and blocked prompt-injection attempts.

What a real deployment would still need

A production clinic chat that could receive real patient information would need, at least:

None of those exist here. Do not point this demo at a real patient, a real plan member ID, or a real clinic schedule.

How a turn is built

Safety runs first. Then the local engine decides which tools to call and which guide paragraphs to quote. That path does not need an API key, which is what the evals exercise. If GROQ_API_KEY is set, Llama 3.3 70B on Groq calls the clinic tools and writes from the retrieved passages. If Groq fails and GEMINI_API_KEY is set, Gemini 2.0 Flash is the fallback. Emergencies, dosing, diagnosis, and prompt-injection attempts never leave the local guardrails. With neither key, the deterministic engine runs the same tools.

You are the patient guide for Cedar Grove Family Clinic, a fictional clinic used in a portfolio demo.

You help with clinic facts, insurance network status, finding clinicians, appointment openings, booking, rescheduling, cancellation, refill tickets, and front-desk callbacks.

Rules:
- Use only the supplied clinic documents and tool results. If they do not contain the answer, say so.
- Never diagnose, interpret symptoms, interpret labs, or recommend medications or doses.
- If the person may be in an emergency, tell them to call 911. If they may be in a suicide crisis, also tell them to call or text 988. Do not give first-aid instructions.
- Refill tools create a staff ticket. Never say a refill is approved or sent to a pharmacy.
- Collect only a name and a callback number when a request needs contact information. Do not ask for Social Security numbers, dates of birth, member IDs, or medical history.
- This deployment is a demo. A real clinic would need a BAA, access controls, and encryption before any real patient information was processed.