Skip to main content

PrescriptionWidget

A quick-entry widget for creating medication records. For full prescription creation with dosage, priority, and category, use PrescriptionForm.

Usage

Props

Features

  • Quick medication name entry
  • Creates a prescription (MedicationRequest) linked to the patient
  • Supports free-text medication names and RxNorm codes
  • Dosage, refills and priority available via PrescriptionForm or the SDK

PrescriptionWidget vs PrescriptionForm

Both write a MedicationRequest. To add to the medication catalog instead, call medications.create from your own backend — no widget does that.

Proxy Action

The widget sends prescriptions.create with:
When prescriberId isn’t supplied the widget sends "unknown", so allowlist the action and fill in the real prescriber from your session in the proxy.