How ngohamah/healthcare-analytics-with-advanced-sql-data-modeling works
This repository is a healthcare analytics data-engineering project: it generates synthetic clinical data, benchmarks four reports on a normalized OLTP schema, transforms that data into a reporting star schema, and benchmarks the same reports there. The main user workflow is running those stages in order and comparing measured timings. The graph also preserves the project’s schema-design and query-analysis capabilities. Relationships are limited to README statements and shown source; unsampled implementation details are not inferred.
Main entry points: etl_load_star_schema.py Star-schema ETL · run_oltp_queries.py OLTP report benchmarks · run_star_schema_queries.py Star-schema report benchmarks · 01_oltp_schema.sql OLTP database
Components 16
Clinical data source
- Synthetic data generator
scripts/generate_oltp_data.py - OLTP schema
sql/01_oltp_schema.sql - OLTP database
sql/01_oltp_schema.sql - Sample clinical data
sql/02_oltp_sample_data.sql
OLTP analysis
- OLTP report benchmarks
scripts/run_oltp_queries.py - Query performance analysis
docs/query_analysis.txt - Shared logging
scripts/_logging_utils.py
Reporting warehouse
- Star-schema ETL
scripts/etl_load_star_schema.py - Star-schema definition
star_schema.sql - Star-schema database
star_schema.sql - Warehouse design decisions
docs/design_decisions.txt - ETL design
docs/etl_design.txt
Star-schema analysis
- Star-schema report benchmarks
scripts/run_star_schema_queries.py - Measured query comparison
docs/star_schema_queries.txt - Project reflection
docs/reflection.md
Other components
- CLI operator
Connections 20
- CLI operator → Synthetic data generator: runs
README.md - Synthetic data generator → OLTP schema: loads DDL
scripts/generate_oltp_data.py - Synthetic data generator → OLTP database: generates records
scripts/generate_oltp_data.py - Sample clinical data → OLTP database: defines sample rows
README.md - CLI operator → OLTP report benchmarks: runs benchmarks
README.md - OLTP report benchmarks → OLTP database: queries
README.md - OLTP report benchmarks → Shared logging: uses
scripts/run_oltp_queries.py - OLTP report benchmarks → Query performance analysis: provides findings
README.md - CLI operator → Star-schema ETL: runs load
README.md - Star-schema ETL → OLTP database: reads source
scripts/etl_load_star_schema.py - Star-schema ETL → Star-schema definition: loads DDL
scripts/etl_load_star_schema.py - Star-schema ETL → Star-schema database: builds and validates
scripts/etl_load_star_schema.py - Warehouse design decisions → Star-schema definition: documents choices
README.md - ETL design → Star-schema ETL: describes pipeline
scripts/etl_load_star_schema.py - CLI operator → Star-schema report benchmarks: runs benchmarks
README.md - Star-schema report benchmarks → Star-schema database: queries
README.md - Star-schema report benchmarks → Shared logging: uses
scripts/run_star_schema_queries.py - Star-schema report benchmarks → Measured query comparison: provides timings
README.md - Query performance analysis → Project reflection: informs assessment
README.md - Measured query comparison → Project reflection: informs assessment
README.md