Skip to content

About

A terminal based medical command center

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

BioSecure - Medical Command Centre MVP

A Nigerian health tech MVP featuring a medical command centre CLI application for healthcare operations management.

Features

1. Phone Number Validator

Converts Nigerian phone numbers to the international +234 format.

  • Accepts: 08XXXXXXXXX, +2348XXXXXXXXX, +234XXXXXXXXX, variations with spaces/dashes
  • Outputs: Standardized +234XXXXXXXXX format

2. Triage Module

BMI-based health risk assessment for patient screening.

  • Categories:
    • Severely Underweight (BMI < 16)
    • Underweight (16 ≤ BMI < 18.5)
    • Normal Weight (18.5 ≤ BMI < 25)
    • Overweight (25 ≤ BMI < 30)
    • Obese Class I (30 ≤ BMI < 35)
    • Obese Class II (35 ≤ BMI < 40)
    • Severely Obese (BMI ≥ 40)
  • Provides health recommendations for each category

3. Logistics Module

Drug and vaccine stock management with automated alerts.

  • Features:
    • Low stock alerts
    • Expiration date tracking
    • Critical shortage notifications
  • Commands for inventory management

Installation

  1. Create a Python virtual environment:
python -m venv venv
  1. Activate the virtual environment:
# On Windows
.\venv\Scripts\activate

# On macOS/Linux
source venv/bin/activate
  1. Install dependencies:
pip install -r requirements.txt

Usage

Phone Number Validation

python -m biosecure.cli validate-phone 08012345678
python -m biosecure.cli validate-phone +2348012345678

Triage Assessment

python -m biosecure.cli triage 1.75 75

(Height in meters, Weight in kg)

Logistics - Stock Management

python -m biosecure.cli stock add "Paracetamol" 100 2025-12-31
python -m biosecure.cli stock list
python -m biosecure.cli stock check "Paracetamol"
python -m biosecure.cli stock remove "Paracetamol" 10
python -m biosecure.cli stock alerts

Note: In this MVP version, stock data is stored in-memory and is not persisted between CLI sessions. This will be enhanced with database persistence in future versions.

Project Structure

BioSecure/
├── biosecure/
│   ├── __init__.py
│   ├── cli.py
│   └── modules/
│       ├── __init__.py
│       ├── phone_validator.py
│       ├── triage.py
│       └── logistics.py
├── tests/
│   ├── test_phone_validator.py
│   ├── test_triage.py
│   └── test_logistics.py
├── requirements.txt
└── README.md

Tech Stack

  • Language: Python 3.13+
  • CLI Framework: Click
  • Testing: pytest
  • Date Handling: python-dateutil

Future Enhancements

  • SQLite database persistence
  • Django web interface
  • GUI (Tkinter or PyQt)
  • Multi-user support
  • Email/SMS alert notifications
  • Comprehensive reporting

License

MIT

Author

BioSecure Team - Nigerian Health Tech Initiative

About

A terminal based medical command center

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages