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 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).
Follow these steps to get the OVIA platform running on your local machine:
- Python 3.x installed.
- MySQL Server installed and running.
- Open your MySQL terminal or a tool like SQLyog / phpMyAdmin.
- Create a new database named
phc_db:CREATE DATABASE phc_db;
- Import the provided SQL schema:
- Path:
database/phcdb.sql
- Path:
- Update
database.pywith your MySQL credentials (if different from default):user='root' password='' host='localhost' database='phc_db'
Run the following command to install the required Python packages:
pip install flask mysql-connector-pythonExecute the main script to start the development server:
python main.pyThe application will be accessible at: http://127.0.0.1:5008
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.pymodule 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-restfulorjsonify) to connect with separate Android/iOS applications.
| 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. |
/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.