An electronic health record system that lets healthcare providers add patients and consultation entries.
Requires: node.js Install
This project uses yarn
as it's package manager.
npm -g i yarn
yarn
- node/express in TS
/api/ping
- responds withpong
and status200 OK
/api/diagnoses
- list of diagnosis codes used to treat patients/api/patients
- non-sensitive patient data/api/patients/all
- full patient data/api/patients/:id/entries
- list of entries by the healthcare provider recording the patients consultation including description, type of visit (hospital/check up/occupational healthcare), diagnosis, specialist, etc
All data is server side validated for type and max lengths.
Add mongodb url to MONGODB_URI
in .env
file.
.env.example
file is provided.
Run the backend
yarn dev2
Server listens on port 3001
by default or can be configured via PORT
env var.
Compile TS
yarn tsc
which will output the generated JS into dist/
.
yarn start
- React in TS
- Semantic UI
- Formik forms (validation with Yup)
Stock standard Create React App with TS template
For dev builds, the app uses a proxy to handle API requests.
Update the proxy field in package.json
to where ever the server is running, which will typically be localhost:3001
.
For testing on mobile, you can update it to a local ip instead. You need to restart the CRA dev server for the changes to take effect.
yarn start
yarn build