This is a web application that helps you with your concerns regarding the possible medical conditions/diagnosis for symptoms you are facing
- User can select from the given list of symptoms to get list of diagnosis
- User can use the search query and give inputs like
I am suffering from fever
, which again lists all the diagnosis possible by extracting the key symptoms from the search query - For a given diagnosis, the user can get its description and all the information regarding its medications and medical procedures
The Following APIs can be called for registrations and login purposes. No Authentication is required to call these APIs.
GET /
- Returns the home pageGET /getSymptomList
- Return a list of symptoms acquired from APIMEDIC APIs in form of JSONGET /getDiagnosis
- Returns the result page with the diagnosis variables begin set from the results of APIMEDIC APIs.GET /getDiseaseInfo/:disease
- Returns all the information scraped from themedicinenet.com
website about the diagnosisdisease
in form of a JSON response.
If there is any error in processing the user input, instead of the error, the homepage is returned.
To set up the development environment, you need to follow the following steps
- Download npm and nodeJs. Installation guide can be found here
- Download and install MongoDB on your system.
The project has been built on Express Framework and uses MongoDB as its database. request
module is used for web sraping and for making the API calls. Used APIMEDIC sandbox API to get a dummy list of symptoms and its associated diagnosis. Web Scraping is performed on medicinenet.com
for fetching all the related information regarding the associated diagnosis.
To run the project on local server, first navigate to the project directory in your filesystem.
- Now create a directory
/data/db
in the location where your project folder resides. - Now run
mongod --dbpath=./data/db
from the current directory. - Now run
cd insta-medicare
, or go inside the project folder. - Now run
npm install
- Now run
npm start
in the terminal. - Open
localhost:3000
from your favourite browser.