A command-line interface (CLI) tool written in Python for managing medical records using a relational database (e.g., MySQL). This includes functionality to create, view, update, and delete records—ideal for doctors, clinics, or small-scale healthcare setups.
- Uses a SQL database to store medical-related information
- CLI interaction through a Python script (
index.py) - Supports running pre-built SQL scripts to initialize the database
- Modular and extensible—ideal for further expansion
- Python 3.x installed on your system
- MySQL (or any compatible DBMS) installed and running
- Basic familiarity with SQL and command-line usage
-
Clone the repository
bash git clone https://github.com/Adarsh-P-Thomson/Medical-Records-Tracker-PythonCLI.git cd Medical-Records-Tracker-PythonCLI -
Set up the database
- Open MySQL Workbench (or your preferred SQL client)
- Run
CREATE DATABASE.sqlto initialize the schema - Run
DOCTOR DETAILS INSERT.sqlto populate initial data
-
Configure the Python script
- Open
index.pyand adjust connection settings (e.g., host, port, database name, username, password) - Make any necessary adjustments to match your local setup
- Open
-
Run the application
python index.py
-
Launches an interactive CLI that may allow:
- Viewing all patients or doctors
- Adding new patient or record entries
- Searching and filtering records
- Editing or deleting records
-
(Customize this section with specific commands or sample interactions if they exist in
index.py.)
Medical-Records-Tracker-PythonCLI/
├── index.py # Main Python CLI application
├── CREATE DATABASE.sql # SQL script for setting up schema
├── DOCTOR DETAILS INSERT.sql # SQL script to insert sample data
├── .gitignore # Files to ignore in Git
└── README.md # Project documentation
Contributions, issues, and suggestions are welcome! To contribute:
- Fork the repo
- Create a feature branch (
git checkout -b feature/your-feature) - Commit your changes and push to your branch
- Open a pull request describing your changes