Architecture
The integration uses a URL-based embedding pattern. The EHR opens MedWrite by loading specific URLs in an embedded frame and passes patient context and authentication as parameters.How it works
- The clinician logs into their EHR as normal.
- The EHR backend obtains a MedWrite bearer token via the login API on behalf of the user.
- The EHR renders an embedded frame pointing to the MedWrite frontend, passing the token and patient identifiers as URL parameters.
- MedWrite authenticates the session and shows the relevant patient view.
The exact frontend URL, parameter format, and domain whitelisting are configured during onboarding. Contact the medWrite team for integration support.
Next steps
API Authentication
API key and bearer token.
Get Approved Outputs
Retrieve approved letters.
