Skip to content

About

The purpose is to implement an algorithm to solve the problem of managing a queue of patients in a hospital.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

MediRoute: Intelligent Hospital Management System

Solves following problems:

  • Assigns priority score based on severity of patient from his/her past medical details by reading PDF (1 --> Low severity --- 5 --> High severity)
  • Automatically decides who doctor should attend to first
  • Ambulance Shortest Path recommendation system works entirely offline and can be used in places with low reach of the internet

Ward Queue (Max-Heap)

python -m pip install Flask && python app.py → open http://127.0.0.1:5000

  • heap.py : indexed max-heap (sift-up/down, extract-max, remove, update) + hash map
  • app.py : patient records (dict) + Flask API
  • templates/ + static/ : frontend Ranking: higher urgency first, ties go to the earlier arrival.

Smart Priority Assignment System Algorithm (Linear Regression + OCR)

flowchart TD
    StartNode([Download a dataset containing parameters such as past visits, comorbidities, blood pressure, age, bmi, spo2, etc.]) ==> B[Load & process data, extract features, and engineer them according to the change in urgency levels]
    B ==> C[Train the model using Linear Regression Algorithm from scikit-learn python library and save the weights and biases in model.csv file]
    C ==> D[Test the model using train_test_split - 95% training and 5% testing - and calculate accuracy scores]
    D ==> E[Using pymupdf library, read standard format uploaded pdf containing recent patient medical details to convert to text and process data into given features and use the model to predict the priority score for the given patient]
    E ==> EndNode([Output the priority in range 1-5 to the heap used in the flask server backend])
Loading

Improved Model Stats:

  • Mean Squared Error (MSE): 0.2220
  • R² Score (Coefficient of Determination): 0.7867
  • Recall: 70.3454%

Ambulance Shortest Path Recommending System (BFS + Dijkstra)

flowchart TD
    StartNode([Set a matrix of roads around the city]) ==> B[(Set the coordinates of the places around the city)]
    B ==> C[Use BFS + Dijkstra to find shortest path from source to destination avoiding obstacles - 0 in matrix]
    C ==> EndNode([Display the length of the shortest path and the path on a map / graph / plot])
Loading

Tests Run On Source Hospital - Dadar & 5 locations:

Source:

  • Hospital at (0, 1)

Destinations:

  • A at (0, 4)
  • B at (9, 8)
  • C at (0, 8)
  • D at (8, 5)
  • E at (3, 6)

Authored by:
Ruturaaj Deshpande (SY B.Tech IT, VJTI 29')
Eashan Thakur (SY B.Tech IT, VJTI 29')

About

The purpose is to implement an algorithm to solve the problem of managing a queue of patients in a hospital.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages