/medical_device_monitor

web system to monitor the status of medical devices and alert healthcare providers of any malfunctions. live @ medicmonitor.nsisong.com

Primary LanguagePythonMIT LicenseMIT

The Nsisong Medical Device Monitoring and Alert System

Overview

Welcome to the Nsisong Medical Device Monitoring System. This guide will help you navigate the dashboard, understand alerts, and view historical data. The Nsisong Medical Device Monitoring and Alert System is designed to monitor the status of medical devices (e.g., heart monitors, infusion pumps) and alert healthcare providers of any malfunctions. It includes real-time data collection, analysis, and fault detection, with a user-friendly web interface for monitoring device status. web system to monitor the status of medical devices and alert healthcare providers of any malfunctions. live @ medicmonitor.nsisong.com)

Dashboard Navigation

  • Real-Time Data: View real-time graphs of device metrics.
  • Historical Data: Access and analyze historical data from the "Historical" section.

Alerts

  • Understanding Alerts: Alerts are displayed when a device status is flagged as "FAULT."

Historical Data

  • Viewing Historical Data: Navigate to the "Historical" tab to view past data trends.

Setup Instructions

  1. Clone the repository.
  2. Install dependencies:
    pip install -r requirements.txt
    

Features

  • Real-time data collection and simulation
  • Fault detection and alert system
  • Interactive dashboard with real-time graphs and historical data views
  • Responsive design for various devices

Project Structure

medical_device_monitor/ ├── app/ │ ├── init.py │ ├── routes.py │ └── templates/ │ ├── base.html │ ├── dashboard.html │ ├── historical.html │ └── status.html ├── data/ │ ├── devices.csv │ └── simulated_data.csv ├── static/ │ ├── css/ │ ├── js/ │ └── images/ ├── tests/ │ ├── test_data_processing.py │ ├── test_fault_detection.py │ └── test_web_interface.py ├── venv/ ├── requirements.txt └── run.py

Directory Details

  • app/: Contains the core Flask application code and templates.

    • __init__.py: Initializes the Flask application and sets up configurations.
    • routes.py: Defines the routes and views for the web application.
    • templates/: Contains HTML templates used for rendering the web pages.
      • base.html: Base template for other HTML files.
      • dashboard.html: Template for the dashboard view.
      • historical.html: Template for viewing historical data.
      • status.html: Template for displaying device status.
  • data/: Stores data files used by the application.

    • devices.csv: Contains information about medical devices.
    • simulated_data.csv: Contains simulated data for testing purposes.
  • static/: Holds static files such as CSS, JavaScript, and images.

    • css/: Directory for CSS stylesheets.
    • js/: Directory for JavaScript files.
    • images/: Directory for image files.
  • tests/: Contains unit and integration tests for the application.

    • test_data_processing.py: Tests for data processing functions.
    • test_fault_detection.py: Tests for fault detection algorithms.
    • test_web_interface.py: Tests for web interface functionality.
  • venv/: Virtual environment directory (do not modify or delete this directory).

  • requirements.txt: Lists the Python packages required for the project.

  • run.py: Entry point for running the Flask application.

Code Structure

  • app/: Contains the Flask application and templates.
  • data/: Data files and simulated data.
  • static/: Static files like CSS and JS.
  • tests/: Unit and integration tests.
  • data/:
  • alert_system/:

Contributing

  • Fork the repository.
  • Create a feature branch.
  • Submit a pull request with a detailed description of changes.

This README.md should give users and developers clear guidance on setting up, using, and contributing to the Medical Device Monitoring and Alert System. If you need further adjustments, just let me know!