Skip to main content

Claude/ChatGPT Prompt to Design a Pharmacy E-Commerce UI

Design a pharmacy e-commerce UI: medication search, prescription uploads, interaction warnings, auto-refill and delivery tracking for any pharmacy.

Vul de plaatshouders in

Edit the values, then copy your finished prompt.

Jouw Prompt
prompt.txt

                                

What this prompt does

This prompt generates a complete pharmacy e-commerce interface specification across seven interconnected components — medication search, prescription upload, product page, auto-refill, cart and checkout, order tracking, and working framework code for the search and interaction warning system. The embedded industry ruleset is what separates it from a generic e-commerce prompt: it enforces clinical trust signals at generation time (extra-large dosage typography, amber modal interaction warnings, pharmacist review status indicators) while explicitly blocking anti-patterns like obscuring contraindications or letting a prescription-required item reach checkout without verification.

The [framework] variable drives the code output. Specify React, Vue, or Alpine and the prompt produces a working medication search component with auto-complete and drug interaction warning logic — not a wireframe description. The [pharmacy_type] and [regulatory] variables together determine compliance posture: a compounding pharmacy under strict DEA and state board rules produces a materially different flow than an OTC wellness retailer where no prescription verification step exists.

The color and typography directives are functional, not aesthetic. Medication UIs have a documented error surface around ambiguous dosage numbers and warnings that blend into backgrounds. Specifying extra-large text for medication names and dosages, and amber modals for interaction alerts, reduces that risk during the design-generation stage before a developer writes a line of CSS.

When to use it

  • Building an online pharmacy MVP and need a full component map — search through tracking — before committing to an architecture.
  • Adding a prescription fulfillment or dispensing flow to a telehealth platform that previously handled only consultations.
  • Designing a pharmacist-facing review dashboard where OCR feedback and prescription approval status need to surface unambiguously.
  • Starting a pharmacy client engagement and need a structured, compliance-aware discovery artifact to present before the statement of work.
  • Adding a white-label pharmacy module to an existing healthcare SaaS product where the regulatory variables will differ per client.
  • Prototyping a veterinary pharmacy storefront — the [pharmacy_type] and [regulatory] variables accommodate non-human medication contexts cleanly.

Example output

For [pharmacy_type]: independent retail pharmacy, [products]: generic and brand-name prescription drugs, OTC, vitamins, [regulatory]: FDA, state pharmacy board, [framework]: React:

The medication search component generates as a debounced input tied to a medication lookup API, with an autocomplete dropdown that distinguishes brand names from generic names visually (typically bold vs. regular weight), shows dosage strength variants, and displays price. On drug selection, it triggers an interaction check against whatever API you wire it to — if the check returns a flag, an amber modal renders with collapsible detail and a severity indicator. Items marked prescription-required lock the add-to-cart action and redirect to the prescription upload flow.

The prescription upload component generates an upload zone with OCR processing status and a pharmacist review status indicator — the exact states and labels will reflect whatever you specify in [regulatory]; a DEA Schedule II context produces a more explicit verification chain than a state-board-only context.

The auto-refill component generates a medication schedule view with reminder settings and delivery preferences, but the countdown logic depends on how you specify supply units — see Pro tips.

Pro tips

  • Set [regulatory] as specifically as possible. "DEA Schedule II, HIPAA, California Board of Pharmacy" produces stricter checkout verification and prescription handling flows than a vague "standard pharma regulations" — the prompt uses this variable to calibrate every compliance-gated step.
  • For the interaction checker, the prompt generates the UI pattern and the API call structure — it does not embed a drug database. In a follow-up prompt or in your [products] description, specify which interaction API you will wire to (RxNorm, DrugBank, your pharmacy system's endpoint) so the generated code targets a real interface rather than a placeholder stub.
  • The auto-refill countdown timer produces different logic depending on whether your system tracks supply in days-supply or quantity units. Specify this explicitly in your prompt or the generated reminder logic will be ambiguous about what triggers a refill alert.
  • If your pharmacy serves patients in multiple languages, add bilingual labeling requirements to the prompt directly — don't rely on [regulatory] for this, since that variable governs compliance jurisdiction, not localization. Explicit language requirements in the prompt body will carry through to the dosage typography and warning label patterns.
  • After generating the interface, run the interaction modals and prescription upload flow through a separate accessibility audit prompt. Medication UIs are subject to WCAG 2.1 AA requirements, and the interaction warning modals need keyboard-navigable dismiss patterns — this prompt establishes the visual design but does not auto-enforce focus management or screen-reader labeling.

Frequently Asked Questions

Does this prompt generate actual working code or just design descriptions?
Both, depending on how you fill `[framework]`. The template explicitly requests working code for the medication search with auto-complete and drug interaction warning in whichever framework you specify — React, Vue, Alpine, or similar. The other six components generate as structured UI specifications: detailed enough to hand to a developer, but not full component code unless you follow up requesting each one individually.
Can I use this for an OTC wellness store that sells no prescription medications?
Yes. Set `[regulatory]` to reflect OTC-only rules and `[products]` to match your catalog. The prescription upload and pharmacist review sections will still generate — you can tell the AI to skip them, or simply discard those sections. The medication search, interaction checker (relevant for supplement stacks and OTC drug combinations), and auto-refill components apply directly without modification.
How does the drug interaction warning work in the output — does it check real interactions or produce a UI placeholder?
The prompt generates the correct UI pattern and the structure for an API call that accepts drug identifiers and expects severity flags in return — but it does not embed a drug database or guarantee clinically accurate severity logic. You must wire the generated component to a real interaction API such as RxNorm, DrugBank, or your pharmacy system's own endpoint. The UI behavior (amber modal, collapsible detail, severity display) is what the prompt produces; the clinical accuracy of the underlying data is your responsibility to ensure with a verified data source.
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.

Meer 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