This project analyzes wait times for knee and hip surgeries across different regions and provinces in Canada, correlating them with provincial healthcare spending. The analysis is based on data provided by the Canadian Institute for Health Information (CIHI).
- Analysis of knee and hip surgery wait times across Canadian provinces
- Correlation analysis between hospital spending and wait times
- Provincial healthcare spending analysis
- Data extraction and processing utilities
/CIHI_Knee_Hip_wait
├── /assets/ # Excel data files
├── /code/ # Source code
│ ├── __pycache__/ # Python cache directory
│ ├── extract_data.py # Data extraction utilities
│ ├── main.py # Main application entry point
│ ├── visualize_data.py # Visualization functions
│ └── error_log.txt # Application logs
├── /tests/ # Test files
├── .gitignore
├── LICENSE.md
├── README.md
└── requirements.txt # Project dependencies
- Python 3.8+
- pip package manager
- Clone the repository:
git clone https://github.com/yourusername/CIHI_Knee_Hip_wait.git
cd CIHI_Knee_Hip_wait- Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install required dependencies:
pip install -r requirements.txtPlace the following Excel files in the /assets directory:
wait-times-priority-procedures-in-canada-2024-data-tables-en.xlsxhospital-spending-series-a-2005-2022-data-tables-en.xlsx
The project provides utilities for:
- Extracting wait times and hospital spending data
- Processing and analyzing the data
- Generating visualizations and insights
Example usage:
from extract_data import DataExtractor
# Initialize the extractor
extractor = DataExtractor("path/to/assets")
# Extract wait times data
wait_times = extractor.extract_wait_times()
# Extract hospital spending data
spending = extractor.extract_hospital_spending()The project handles data processing in several stages:
- Data Extraction: Raw data is extracted from Excel files using the
DataExtractorclass - Analysis: Statistical analysis and correlation studies
- Visualization: Generation of charts and visualizations
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project uses data from the Canadian Institute for Health Information (CIHI) and is subject to CIHI's Terms of Use. The data is provided for educational, non-commercial research, internal reference, and private study purposes only.
All data and materials from CIHI must be properly credited to CIHI as the source. Commercial use of CIHI materials is prohibited without explicit written permission from CIHI.
For full license terms and conditions, please see the LICENSE file.
For questions regarding CIHI data usage or to request permission for commercial use, contact CIHI at [email protected].