Giter Club home page Giter Club logo

hospitalapi's Introduction

Information about API:

Theme:

  • We’re going to design an API for the doctors of a Hospital which has been allocated by the govt for testing and quarantine + well being of COVID-19 patients

  • There can be 2 types of Users

  • Doctors

  • Patients

  • Doctors can log in

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

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

  • After the checkup, create a Report

  • Patient Report will have the following fields

  • Created by doctor

  • Status (You can use enums if you want to):

  • Can be either of: [Negative, Travelled-Quarantine, Symptoms-Quarantine, Positive-Admit]

  • Date

Instructions about SetUp:

First start with downloading the code and and write npm install on code editor, it will install all dependencies on your editor. You will need a code editor and mongoDB setup on your computer. We will use postman to check the api is working or not,So download postman on your computer.

1.Now use this http://localhost:5000/api/v1/doctors/register route to register doctor in API and add the info as shown in image

image

2.Use this http://localhost:5000/api/v1/doctors/login to login as a doctor and add info as shown in image

image

3.Use this http://localhost:5000/api/v1/patients/register and add the token in authorization area which is recieved in second point

image

  1. Use this http://localhost:5000/api/v1/patients/62c31cc86a84003324d04cb5/create_report to create report and add status you can see the types of status in report model.

image

5.Use this http://localhost:5000/api/v1/doctors/register to register patient

image

  1. Use this http://localhost:5000/api/v1/patients/62c31cc86a84003324d04cb5/all_reports to get all the reports.

image

hospitalapi's People

Contributors

panurag24 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.