Skip to main content

Claude/ChatGPT Prompt to Build a Patient Dashboard UI with Vitals

Design a HIPAA-aware patient portal dashboard: appointments, medications, vitals trends, lab flags, and a secure inbox, WCAG 2.2 AA.

Fill in the placeholders

Edit the values, then copy your finished prompt.

Your Prompt
prompt.txt

                                

What this prompt does

This prompt casts the AI as a senior frontend engineer building a patient dashboard, and it asks for working component code and a layout spec rather than a mockup description. It specifies an appointments card, current medications with a refill CTA, a vitals summary with trend charts, recent labs with abnormal-value flagging, and a secure message inbox. The [vitals] placeholder decides which trend charts are generated, and [compliance] sets the accessibility and privacy bar the components must meet.

The structure works because health data raises the floor on both accessibility and privacy, and the prompt bakes both in. It requires semantic landmarks, focus order, ARIA on charts, and color-independent abnormal flags, so flags never rely on color alone, which fails real users and audits. The [brand] variable sets accent and tone, the [stack] keeps components aligned to your framework, and a dedicated note marks where PHI must never be cached, logged, or sent to analytics. Pinning the PHI boundary up front matters because once an analytics SDK is wired in it is easy to leak protected data through event payloads or logs without noticing, and unwinding that later is far harder than drawing the line at design time.

When to use it

  • Building a patient portal or health dashboard with vitals and labs
  • Charting a specific set of [vitals] like blood pressure, glucose, or weight
  • You need a [compliance] bar such as WCAG 2.2 AA and HIPAA-aware baked in
  • Flagging abnormal lab values without relying on color alone
  • Defining PHI boundaries before wiring any analytics SDK
  • Generating components in a known [stack] with a clear layout spec

Example output

You get component files, a layout spec, and an accessibility/PHI note. The dashboard lays out appointments, medications with refill CTA, a vitals summary with trend charts for your listed vitals (each with empty and loading states), recent labs with abnormal-value flagging, and a secure inbox. The PHI note calls out where protected health information must never be cached, logged, or sent to analytics, and the components carry semantic landmarks and ARIA on charts.

Pro tips

  • Set [vitals] to exactly what you track; one trend chart is generated per vital, so the list drives the charts
  • Use [compliance] to state your real bar; WCAG 2.2 AA plus HIPAA-aware changes the markup the model produces
  • Decide your no-log, no-cache PHI boundaries from the PHI note before you add any analytics SDK
  • Match [stack] to your framework so the component files are directly usable
  • Ask it to confirm abnormal flags use an icon or label, not color alone, since color-only flags fail audits
  • Use [brand] to keep the clinical tone reassuring rather than alarming across the dashboard

Frequently Asked Questions

Does this prompt produce accessible components?
Yes. It targets the bar in `[compliance]`, requiring semantic landmarks, focus order, ARIA on charts, and color-independent abnormal flags, so abnormal values are never signalled by color alone.
Which vitals does it chart?
Whatever you list in `[vitals]`, such as blood pressure, glucose, and weight. It generates a trend chart per vital with sensible empty and loading states, so an accurate list shapes the output.
How does it handle protected health information?
It includes a dedicated note on where PHI must never be cached, logged, or sent to analytics. That lets you set your no-log and no-cache boundaries before wiring any third-party SDK.
Does it return code or just a layout description?
It asks for working component code plus a layout spec and the accessibility/PHI note, not a mockup description. The output is structured to implement rather than only to read.
Engr Mejba Ahmed

Need this built for real?

Engr Mejba Ahmed

AI Developer · Software Engineer

I'm Mejba — I design and ship production AI systems, automations, and full-stack apps. If you want this turned into a working solution for your team, let's talk.

More in Healthcare UI Prompts

Engr Mejba Ahmed

Engr Mejba Ahmed

Claude Code Expert · Online

👋

Hey there!

Quick Actions

WhatsApp Instant reply

Chat on WhatsApp

+880 1723 741224 · Instant reply

Popular Questions

Engr Mejba Ahmed is connected
Engr Mejba Ahmed is typing...
Engr Mejba Ahmed avatar

✉ Want me to follow up? Drop your email

Engr Mejba Ahmed avatar

📞 Connect Directly

Choose how you'd like to reach me

WhatsApp

+880 1723 741224

Email

[email protected]

✓ Details sent! I'll get back to you shortly.

Powered by OpenAI

335+

Blog Posts

25

AI Courses

63

Projects

Services & Expertise

Pricing & Process

Learning & Resources

Connect & Support