URLs
The flow goes in the path. Ids go in the clear: the flow’s own record in the path, and any others in the query.
Prefix each URL with
https://rx.neutron.health in the sandbox, or https://rx.new in production. ⚠️ The sandbox isn’t live yet.
When the URL names the patient by id, the iframe stays on that patient, with no Change patient.
Passing more than ids
To pass patient details, templates or several prescriptions, build the URL withframe() from the JavaScript client. It takes a record the same way the React components do, reads and writes nothing, and packs the record into one short token after the path.
ph.patient.frame({ demographic: { … } }). A live object you already have makes its own: order.frame().
Height and events
The iframe posts messages to your page. They contain ids and states only, never patient details.
Every message has
source: "photon-rx". Use the resize message to size the iframe, because the iframe has no fixed height: