Inspiration

Leaving the hospital is when patients and families get the most instructions and have the least energy to read them. Discharge papers mix new, changed and stopped medicines in one list, use abbreviations like PO, BID and QHS, and put the warning signs at the very end. About 36% of U.S. adults have basic or below-basic health literacy (2003 National Assessment of Adult Literacy). Small misreadings can do real harm. For example, many people don't know that Percocet contains acetaminophen, so they take Tylenol on top of it.

We wanted something that takes the papers a patient already has and turns them into a plan they can follow, without adding any medical advice of its own.

What it does

Paste discharge instructions or an after-visit summary, load the PDF, or (with Claude) snap a photo of the printed pages. Take Home builds:

  • Your day: every medicine on a daily schedule built around when you wake up and go to bed. New and changed doses are marked, "only if you need it" medicines are kept separate with their limits ("no more often than every 6 hours, at most 8 tablets in 24 hours"), and stopped medicines get their own list. Every-other-day and weekly medicines, medicines on hold, and medicines with no time written each get their own list too, so none drops out. Checkboxes for each dose.
  • Warning signs split into Call 911 and Call your doctor (with the number when the papers give one).
  • Appointments with real dates: "in 7 days" is counted from the discharge date and becomes Tue, Nov 17. A date and time written on the papers is used as is, and if the papers have no discharge date, the plan asks for it.
  • For now: restrictions with end dates. "No lifting more than 10 pounds for 4 weeks" becomes "until Mon, Dec 7," and "you may shower in 48 hours" becomes "from Wed, Nov 11."
  • Ask your pharmacist: questions where the papers leave a gap or a risk: two medicines that both contain acetaminophen (the FDA's adult limit is 4,000 mg a day from all medicines combined), two NSAIDs, "as needed" with no daily limit, no time of day, "as directed," or a medicine listed as both stop and take. It never changes a dose. It writes the question.
  • Words on your papers in plain language, a one-page Print for the fridge view, and Add to my calendar (an .ics file with medicine reminders and appointments).
  • Every item links back to its line on the original papers.

The two samples are a heart failure stay (6 medicines, including a stopped NSAID and a changed beta-blocker dose) and an appendectomy (Percocet and Tylenol together, an antibiotic every 6 hours, lifting and driving restrictions).

How we built it

Plain JavaScript with no build step, hosted on GitHub Pages. There's no server and no account, so health information stays on the device.

  • Reading (js/parse.js): finds sections by their headings (discharge instructions or an after-visit summary), then reads each medicine line for status (new, changed, continue, stop), name, brand, strength, how many, route, frequency (daily, BID, every 8 hours, QHS…), as-needed reason, daily maximum, duration and conditions like "while taking oxycodone." Follow-ups, warnings and restrictions are parsed into dates.
  • Planning (js/plan.js): turns frequencies into clock times, builds the pharmacist questions, scores reading level (Flesch-Kincaid) and writes the calendar file.
  • PDFs are read in the browser with pdf.js.
  • 21 automated tests cover both samples, frequencies, amounts, times, dates, after-visit summaries, the safety checks, the calendar file and every AI guardrail.

Where AI fits, with guardrails

The optional AI features use Claude with the user's own key, which stays in the tab:

  • Photo of printed papers: Claude types up the page. The text goes into the box for the patient to check against the paper before anything else happens.
  • Unusual layouts: Claude sorts lines into sections. Every line it returns has to appear in the letter word for word, numbers included, or it's dropped. Our own rules then read the sorted lines.
  • Ask about your papers: Claude answers only from the papers and must quote the line it used. If the quote isn't in the papers word for word, or the answer has a number the quoted line doesn't, the answer isn't shown, and the patient is told to ask their care team.
  • Translate the plan: if any line of the translation changes, adds, drops or moves a number, it's thrown out.

Claude never decides a dose or a time.

We used Claude Code as a coding assistant. We decided what to build and how it should behave, and we reviewed and tested what it wrote.

Challenges

  • Frequencies are written a dozen ways. "Twice a day," "BID," "every 12 hours" and "q12h" all mean the same thing, but "every 6 hours as needed" is not a schedule at all. As-needed medicines never get reminders. Amounts needed rules too: "1/2 tablet" is half a tablet, ".6 mg" is 0.6 mg, and in "100 units/mL, inject 10 units" the dose is 10 units.
  • Being helpful without giving medical advice. We drew the line at rearranging and asking. The acetaminophen check doesn't tell you how much to take. It tells you to ask, and why.
  • Trusting AI output in a medical setting. Every AI feature has a check that can reject what Claude returns, and the tests cover those checks.

What we learned

Most of the work was naming things the way a patient would. "PRN" means "only if you need it," and a stopped medicine needs its own list, not a strikethrough in a long one.

What's next

Spanish and Chinese versions of the interface, support for medication lists exported from patient portals, and testing with nurses who do discharge teaching.

Try it

Built Nov 11-12, 2026. The commit history shows each step.

The sample patients, hospitals and phone numbers are made up. Take Home is not medical advice. It rearranges what a care team wrote. In an emergency, call 911.

Built With

Share this project:

Updates

Submission history