Skip to content

jayeshmann/MRE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Medical Record Entry System

An electronic health record system that lets healthcare providers add patients and consultation entries.

Dependencies

Requires: node.js Install

This project uses yarn as it's package manager.

npm -g i yarn

Install

yarn

Backend

  • node/express in TS

Endpoints

  • /api/ping - responds with pong and status 200 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.

Dev build

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.

Prod build

Compile TS

yarn tsc

which will output the generated JS into dist/.

yarn start

Frontend

  • React in TS
  • Semantic UI
  • Formik forms (validation with Yup)

Development

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

Production

yarn build