Skip to content

This project is a Hospital API for the doctors of a Hospital which has been allocated by the govt for testing and quarantine + well being of COVID-19 patients.

Notifications You must be signed in to change notification settings

rajeevkrS/Hospital-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

To run this application on your local machine, please follow these steps:

  • Clone this repository:
https://github.com/rajeevkrS/Hospital-API
  • Install the required dependencies using the following command:
npm install
  • Start the application using the following command:
npm start
  • Open the application in your postman app by visiting the following URL:
http://localhost:8000

Features:

There can be 2 types of Users:

  • Doctors

  • Patients

Doctors can log in

Each time a patient visits, the doctor will follow 2 steps:

  1. Register the patient in the app (using phone number, if the patient already exists, just return the patient info in the API)

  2. After the checkup, create a Report

  • Patient Report will have the following fields:
  1. Created by doctor

  2. Status - Can be either of: [Negative, Travelled-Quarantine, Symptoms-Quarantine, Positive-Admit]

  3. Date

Routes:

  • /doctors/register → with username and password
  • /doctors/login → returns the JWT to be used
  • /patients/register
  • /patients/:id/create_report
  • /patients/:id/all_reports → List all the reports of a patient oldest to latest
  • /reports/:status → List all the reports of all the patients filtered by a specific status

About

This project is a Hospital API for the doctors of a Hospital which has been allocated by the govt for testing and quarantine + well being of COVID-19 patients.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published