Skip to main content
In a few minutes you’ll render Photon’s order card in your app, prescribe for a test patient, and send it. Everything here runs in Neutron, the sandbox, where nothing reaches a real pharmacy.
1

Get a sandbox

Sign up for Neutron. Your account is ready right away.In the dashboard, open Settings → Developers. Copy your Application client_id, and add your app’s URL (for example, http://localhost:5173) to its allowed URLs.
2

Install

⚠️ Not published to npm yet.
3

Render the order card

Pass a test patient. Photon finds them or adds them.
Prescribe.tsx
4

Prescribe

  1. Click Sign in to Photon and sign in with your Neutron account.
  2. Search for a drug, such as amlodipine, and fill in the sig and quantity. Screening runs as you go.
  3. Click Sign, then Send.
In production, the patient would now get a text with their pharmacy options and prices. In Neutron, the order is created but never sent to a real pharmacy.
Not using React? The iframe does the same with a URL and needs no credentials.

Next

Architecture

Patients, prescriptions and orders, and how Photon decides.

Choose an integration

From one component to backend-drafted and agent-drafted orders.

Authentication

User and machine tokens, and who can sign.

Environments

Neutron for building, Photon for production.