Skip to content

neelavenia2181-stack/TakeCare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
neelavenia2181-stack
Apr 7, 2026
6e7f150 · · Apr 7, 2026

History

3 Commits
Mar 12, 2026
Apr 6, 2026
Apr 6, 2026
Apr 6, 2026
Apr 6, 2026
Mar 12, 2026
Mar 12, 2026
Apr 6, 2026
Mar 12, 2026
Apr 6, 2026
Mar 12, 2026
Apr 7, 2026
Apr 6, 2026
Mar 12, 2026
Apr 6, 2026
Apr 6, 2026
Mar 12, 2026

Repository files navigation

TakeCare - Patient Monitoring System

TakeCare is a Flask-based web application for monitoring patient vitals and generating alerts based on critical conditions. It includes Role-Based Access Control (RBAC) to ensure secure access for different medical staff.

Features

  • Dashboard: Overview of total patients, active alerts, today's vitals, critical patients, and recent alerts/admissions.
  • Patient Management: Add, edit, view, and delete patient records.
  • Vitals Tracking: Record patient vitals (Heart Rate, Blood Pressure, Temperature).
  • Automated Alerts: Generates alerts automatically when vitals are outside normal ranges (e.g., Low/High Heart rate, High BP, Abnormal Temperature).
  • Alerts Management: View active and resolved alerts, and mark alerts as resolved.
  • Role-Based Access Control (RBAC):
    • Staff: Can view and manage patients, record vitals, and view alerts.
    • Admin: In addition to staff capabilities, admins can delete patients and manage user accounts (add/delete users).

Tech Stack

  • Backend: Python, Flask
  • Database: SQLite, SQLAlchemy (ORM)
  • Authentication: Flask-Login, Flask-Bcrypt
  • Forms: Flask-WTF
  • Frontend: HTML, CSS (Bootstrap 5 via CDN), FontAwesome

Prerequisites

  • Python 3.8+

Installation & Setupetup

  1. Clone the repository or navigate to the project directory:

    cd TakeCare
  2. Create and activate a virtual environment:

    python3 -m venv venv
    
    source venv/bin/activate  # On Linux/macOS
    
    # venv\Scripts\activate   # On Windows
  3. Install dependencies:

    pip install -r requirements.txt
  4. Initialize the Database and create an Admin User: Run the seeding script to create the necessary tables and a default admin account..

    python seeds.py

    This will create an admin user with username admin and password admin.

  5. Run the application:

    python app.py
  6. Access the application: Open your web browser and go to http://127.0.0.1:5000

Usage

  1. Log in using the default admin credentials (admin / admin).
  2. Navigate to the Dashboard for a quick overview.
  3. Go to the Patients menu to add a new patient.
  4. Once a patient is added, click on View and then Record Vitals to log their data.
  5. If vitals are abnormal, check the Alerts section for generated warnings.
  6. As an admin, you can manage other staff accounts in the Admin -> User Managementent section.

Security Note

This application uses a development configuration and default secret keys. Do not use this in a production environment without changing the secret key and configuring a production WSGI server (like Gunicorn).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors

No contributors