Skip to content

ananthu-pm/OVIA-Health-Platform

Repository files navigation

OVIA - Primary Health Center e-Health Platform

OVIA is a comprehensive e-health platform designed to bridge the gap in maternal healthcare for underserved communities. The system empowers Primary Health Centers (PHCs), Doctors, and Accredited Social Health Activists (Ashaworkers) with digital tools to track, manage, and improve the well-being of pregnant women.


🚀 The Stack

The project utilizes a robust and scalable tech stack tailored for healthcare management:

  • Backend: Flask (Python) - A lightweight and flexible WSGI web application framework.
  • Database: MySQL - Relational database management system for secure and structured data storage.
  • Frontend:
    • Structure: HTML5 & Semantic Web Elements.
    • Styling: CSS3 & Bootstrap 4 for a responsive, mobile-first design.
    • Interactivity: JavaScript (jQuery, Owl Carousel, nicescroll) for smooth user experiences.
  • Architecture: Modular Blueprint-based architecture for clean separation of concerns (Admin, PHC, Doctor, Ashaworker).

🛠️ Setup & Installation

Follow these steps to get the OVIA platform running on your local machine:

1. Prerequisites

  • Python 3.x installed.
  • MySQL Server installed and running.

2. Database Configuration

  1. Open your MySQL terminal or a tool like SQLyog / phpMyAdmin.
  2. Create a new database named phc_db:
    CREATE DATABASE phc_db;
  3. Import the provided SQL schema:
    • Path: database/phcdb.sql
  4. Update database.py with your MySQL credentials (if different from default):
    user='root'
    password=''
    host='localhost'
    database='phc_db'

3. Install Dependencies

Run the following command to install the required Python packages:

pip install flask mysql-connector-python

4. Running the Application

Execute the main script to start the development server:

python main.py

The application will be accessible at: http://127.0.0.1:5008


📡 API Connection

The OVIA platform is designed with a Modular Backend that serves as the central hub for all health data.

  • Web Portal: The current implementation provides a rich web interface for all four primary roles.
  • Data Exchange: The system uses a centralized database.py module to handle all CRUD operations, ensuring data consistency across modules.
  • Mobile Readiness: While the primary interface is web-based, the backend logic is structured using Flask Blueprints, making it ready for RESTful API extensions (e.g., using flask-restful or jsonify) to connect with separate Android/iOS applications.

👥 Roles & Features

Role Key Responsibilities
Admin Oversees the entire system, manages PHC registrations, and monitors platform health.
PHC Manages local medical staff (Doctors & Ashaworkers), handles community vaccinations, and gallery updates.
Ashaworker The frontline field worker. Tracks pregnant ladies, records medical history, performs risk assessments, and manages emergency contacts.
Doctor Provides medical oversight, reviews patient histories, and manages clinical data.

📂 Folder Structure

  • /static: CSS, JavaScript, and Images assets.
  • /templates: HTML templates for the frontend.
  • /database: SQL schema files.
  • main.py: The entry point of the application.
  • admin.py, phc.py, ashaworker.py, doctor.py: Role-specific logic modules.
  • database.py: Core database interaction layer.

Note

This project is maintained by Ananthu and is intended for use in streamlining Public Health Center operations.

About

modular Flask-based e-health platform for maternal healthcare. Empowers PHCs and Ashaworkers to track and manage pregnancy wellness in underserved communities. 🏥🤱

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors