Choose how
All of them show the same cards and follow the same rules, because the Prescribe app is built from them too. See How Prescribe is built. To start with a complete example, follow Prescribe embed.
The cards
Giving it records
Each card takes its records (patient, prescription, order) the same way, and so do frame() for the iframe and url() for deep links. Pass whatever you have:
These are the same get, sync and update calls the API uses, with the same field names. An order can also take prescriptions, either drafts by id (
{ id: "rx_…" }) or new ones from a template ({ templateId }).
Environments
Embedded Prescribe runs againsthttps://rx.neutron.health in the sandbox and https://rx.new in production, which is in private preview. The React components and the JavaScript client choose one with environment. See Environments.
Make it yours
Styling
Make the React components look like the rest of your app.
Migrate from Elements
Using
<photon-prescribe-workflow>? Move to Prescribe.