Hi everyone,
I’d like to share a project I built for our dermatology practice and have now released as open source: a self-hosted referral portal that connects to OpenEMR.
What it does
- Referring providers log in and submit referrals, with ICD-10 search, insurance, medical history, medications, and attached documents.
- Each referral creates the patient, encounter, insurance, problems, medications, and documents in OpenEMR through the REST API and OAuth2.
- The referring provider is created in the OpenEMR Address Book automatically. An NPI registry lookup fills in their details, and every referral they send links back to their Address Book entry, so you always know who referred each patient.
- Admins see all referrals, and referring providers see only their own.
- A browser setup wizard creates the admin account and connects OpenEMR, so there are no client IDs or secrets to copy by hand.
How it’s built
- It runs in Docker with Node.js and PostgreSQL. It’s tested on a Synology NAS and works on any Linux host with Docker.
- It needs OpenEMR 7 or later with the REST and FHIR APIs turned on.
License: AGPL-3.0. I’m also available for custom work and installation help.
The README screenshots come from a demo instance with dummy data. I’d welcome feedback, bug reports, or ideas, especially from anyone else handling referrals in OpenEMR.
Thanks,
Julian