Skip to content

Repository files navigation

🏥 Hospital Patient Data Analysis System

PythonPandasLicenseStatus

A comprehensive Python-based data analysis system for hospital patient management and treatment cost analysis

FeaturesInstallationUsageDocumentationTeam


📊 About This Project

The Hospital Patient Data Analysis System is a modular Python application designed to analyze patient demographics, treatment costs, and medical data patterns. Built with a focus on simplicity and educational value, this system demonstrates core data science concepts using real-world healthcare scenarios.

🎯 Project Objectives

  • Analyze treatment cost patterns across different diseases
  • Identify high-cost medical treatments and patient demographics
  • Classify patients into meaningful age groups for targeted analysis
  • Demonstrate pandas data manipulation and analysis techniques

✨ Features

🔍 Data Analysis Capabilities

  • Disease Cost Analysis: Calculate average treatment costs by disease type
  • Expensive Treatment Identification: Find and rank the most costly treatments
  • Age Group Classification: Categorize patients using custom classification logic
  • Interactive Menu System: User-friendly command-line interface
  • About Project: Project details and team information

📈 Technical Highlights

  • Modular Architecture: Separated into focused, reusable components
  • Clean Code Structure: Beginner-friendly with clear function separation
  • Real Dataset: 15 patient records with authentic Indian demographics
  • Pandas Integration: Leverages powerful data manipulation capabilities

🛠️ Technologies & Libraries

TechnologyVersionPurpose
Python3.8+Core Programming Language
PandasLatestData Analysis & Manipulation

📁 Project Structure

Hospital_management/
├── 📄 Hospital_Management.py # Main application entry point
├── 📄 diseases.py # Disease cost analysis module
├── 📄 costs.py # Expensive treatments module ├── 📄 ages.py # Age group classification module
├── 📊 hospital_data.csv # Patient dataset (15 records)
└── 📘 README.md # This file

🚀 Installation

Simple 3-Step Setup

# 1. Clone the repository
git clone https://github.com/yourusername/hospital-patient-analysis.git
cd hospital-patient-analysis
# 2. Install pandas
pip install pandas
# 3. Run the program
python Hospital_Management.py

💻 Usage

Starting the Application

python Hospital_Management.py

Menu Options

HOSPITAL MANAGEMENT SYSTEM
==================================================
1. View All Data # Display complete patient dataset
2. Disease Analysis # Average costs by disease type
3. Expensive Treatments # Top 5 most costly treatments
4. Age Groups # Patient classification by age
5. About Project # Project and team information
6. Exit # Close application
==================================================

Sample Output

TASK 1: DISEASE COST ANALYSIS
==================================================
Average Cost by Disease:
Cancer: Rs. 88,500
Heart Disease: Rs. 70,000
Diabetes: Rs. 16,500
Pneumonia: Rs. 13,000
Asthma: Rs. 7,250
Flu: Rs. 2,000
Most Expensive: Cancer
Least Expensive: Flu

📊 Dataset Information

Patient Demographics

  • Total Records: 15 patients
  • Age Range: 8-76 years
  • Geographic Focus: Indian patient names and demographics
  • Cost Range: ₹1,500 - ₹92,000

Medical Conditions Covered

DiseaseAvg. CostPatients
Cancer₹88,5002
Heart Disease₹70,0003
Diabetes₹16,5003
Pneumonia₹13,0002
Asthma₹7,2502
Flu₹2,0003

📚 Documentation

Key Learning Concepts

  • Data Loading: CSV file handling with pandas
  • Data Grouping: Using groupby() for categorical analysis
  • Data Sorting: Implementing sort_values() for ranking
  • Custom Functions: Creating and applying user-defined functions with apply()
  • Modular Programming: Separating concerns across multiple files

👥 Team Members

🎓 Development Team

DeveloperModuleContributions
Mangesh ChoudharyHospital_Management.pyMain program and menu system
Ayush Raybhardiseases.pyDisease analysis and cost calculations
Sean Ambrosecosts.pyExpensive treatments identification
Riya Singhages.pyAge group classification system

🌟 Star this repository if you found it helpful! 🌟

Made with ❤️ by Team Hospital Management

⬆ Back to Top

About

Hospital patient data analysis system in Python — modular analysis of patient demographics, treatment costs and medical data patterns.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages