The production-ready, open-source EHR.
This monorepo contains code for Ottehr telehealth.
Ottehr is a modern, modular EHR that began as a reference implementation for ZapEHR. It quickly outgrew "sample EHR" status and became the foundation for large-scale production EHR installations. Ottehr uses ZapEHR for back-end service endpoints, and requires a free ZapEHR account to run as-is, but you are welcome to modify and use a third-party service vendor or build your own service architecture. Ottehr is designed for developers, hopefully making it easy to fork, white-label, and build entire new classes of EHRs and health-tech products with a fraction of the effort of starting from scratch.
Ottehr currently has a few components:
- Ottehr Intake: A patient-facing registration website for creating appointments, with features including rescheduling, checking in, sending text messages and emails, and listing appointments for an account
- Ottehr EHR: A staff-facing EHR for managing appointments created through the patient website, with features including checking appointments, texting patients, updating a location's slots, and setting a location's schedule
- Ottehr Telemedicine: A telemedicine website for creating appointments with patients and creating calls
- Ottehr Elements: A components React library for creating healthcare applications
To set up the first two components, we have a setup program you can run.
To run Ottehr for the first time, you need to set up the project.
To manage Node.js versions efficiently, we recommend using Node Version Manager (nvm).
-
Install nvm by following the instructions provided here.
-
Use nvm to install Node.js version 18 with the following commands:
nvm install 18
-
Set Node.js version 18 as the default with:
nvm alias default 18
After successful installation, verify the setup by executing:
node -v
This command should display the installed Node.js version.
To manage Node.js packages, we recommend using pnpm.
The easiest way to get started is to use the brew or npm command:
brew install pnpm
OR
npm install -g pnpm
Alternatively, you can install pnpm
using the official documentation.
You'll need a free ZapEHR account to run Ottehr. Register for access at zapehr.com. Follow these simple steps:
- Visit zapehr.com.
- Click on Free Access to initiate your early access request.
Once your request is received, the ZapEHR team will promptly reach out to you via email, providing the credentials you need to kickstart your ZapEHR journey.
For comprehensive guidance on getting started with ZapEHR, explore our technical documentation available at https://docs.zapehr.com/docs/welcome.
To proceed with this setup guide, it is assumed that you have access to a ZapEHR project. If you have done so, please follow these steps:
-
Fork Ottehr: Visit https://github.com/masslight/ottehr/fork and fork the repository.
-
Clone Your Fork: Copy the SSH clone link of your fork and execute the following command in your preferred folder:
git clone [email protected]:{your_profile}/ottehr.git
-
(Optional) Add Ottehr as Upstream: If desired, add the original Ottehr repository as an upstream remote:
git remote add upstream [email protected]:masslight/ottehr.git
-
Open Repository in Your Editor: Open the repository in your chosen editor; for example, in VSCode:
code .vscode/Ottehr.code-workspace
Before proceeding, ensure that you have Node.js v18.x and pnpm installed on your machine.
Once these dependencies are in place, enter the following command from the root directory.
sh scripts/telemed-setup.sh
For a sample guide of setting up Ottehr Telemedicine, please check getting started with ottehr.
The script will prompt you for the following information:
- Your access token: Log in to your ZapEHR project, and copy the access token from the dashboard.
- Your project ID: Find this on the ZapEHR project details page.
- Your first provider email: This can be your email address.
Once the program finishes running,
- The Intake and EHR websites will open.
- To log in to the EHR, enter the email you input during the setup program. Click
Forgot password?
and set a password then log in.
The URL for a test location is http://localhost:3015/location/testing/prebook.
pnpm <script name>
If a script is environment specific, use:
pnpm <script name>:<env>
Builds all packages using the build script.
Lints all packages using ESLint.
Environment specific: local
, dev
, dev2
, testing
, staging
.
Starts all packages. If the env is excluded, defaults to local.
Interactively updates all dependencies to their latest versions, respecting ranges specified in package.json
.