ClaimIQ is a synthetic-data healthcare Revenue Cycle Management (RCM) data quality and operations platform designed to identify claims-data discrepancies, validate operational workflows, support issue investigation, and provide actionable analytics and reporting.
The project is being developed as a phased software engineering project, with a strong focus on SQL, MySQL 8.x, data quality, quality assurance, data integrity, operational analytics, documentation, and AI-assisted investigation.
Important: ClaimIQ uses synthetic healthcare data exclusively. It does not process real patient information, Protected Health Information (PHI), real insurance records, real claims, or production healthcare systems.
Healthcare Revenue Cycle Management depends on large volumes of interconnected operational and financial data. Even relatively small data inconsistencies can result in incorrect reporting, payment discrepancies, unresolved claims, and downstream operational issues.
ClaimIQ aims to simulate a data operations environment where analysts can:
- Validate healthcare claims data
- Detect data-quality issues
- Identify financial discrepancies
- Detect invalid relationships and business-rule violations
- Investigate operational issues
- Track issue resolution
- Monitor data-quality metrics
- Generate operational reports
- Maintain QA rules and process documentation
- Use AI to assist with investigation and explanation of verified issues
The goal is not to recreate a production healthcare billing system, but to demonstrate how a data operations platform can maintain accuracy, consistency, traceability, and operational quality across a claims dataset.
ClaimIQ models a simplified healthcare Revenue Cycle Management lifecycle:
Patient
β
Encounter
β
Claim Creation
β
Claim Submission
β
Payer Processing
β
Adjudication
βββ Accepted
βββ Rejected
βββ Denied
β
Payment / Adjustment
β
Remittance
β
Reconciliation
β
Resolution
The platform uses synthetic representations of common RCM concepts including:
- Patients
- Providers
- Healthcare organizations
- Payers and insurance plans
- Encounters
- Procedures
- Claims
- Claim lines
- Payments
- Adjustments
- Denials
- Remittances
- Claim statuses
- Reconciliation records
Healthcare coding and transaction concepts may be modeled using synthetic equivalents inspired by industry terminology. No real patient, payer, or billing data is used.
ClaimIQ focuses on five major categories of operational data problems.
- Missing mandatory fields
- Duplicate records
- Invalid identifiers
- Malformed values
- Inconsistent data
- Payment greater than claim amount
- Negative financial values
- Duplicate payments
- Incorrect adjustments
- Unreconciled balances
- Submission before service
- Payment before submission
- Denial before submission
- Future-dated events
- Invalid event sequences
- Orphaned claims
- Invalid patient references
- Invalid provider references
- Invalid payer references
- Payments referencing nonexistent claims
Examples include:
- Paid claim with zero payment
- Denied claim with positive payment
- Pending claim with payment
- Claims without service lines
- Invalid claim-status combinations
The completed ClaimIQ platform is planned to provide:
- Automated QA validation
- Data-quality scoring
- Duplicate detection
- Missing-data detection
- Referential integrity validation
- Financial validation
- Business-rule validation
- Claims search
- Claims exploration
- Claim lifecycle tracking
- Issue investigation
- Issue assignment
- Resolution tracking
- Escalation workflows
- Data-quality trends
- Issue distribution
- Provider-level analysis
- Payer-level analysis
- Financial discrepancy analysis
- Claims status analysis
- QA rule performance
- Daily Data Quality Reports
- Weekly Operations Reports
- Critical Financial Discrepancy Reports
- Provider Quality Scorecards
- Payer Reports
- Claims Pipeline Reports
- QA Performance Reports
The final phase will introduce an AI assistant capable of working with verified ClaimIQ data to assist with:
- Issue explanations
- Investigation summaries
- Operational report generation
- Pattern analysis
- SOP guidance
The AI layer is designed to explain and assist with verified data rather than act as the source of truth.
ClaimIQ is being developed incrementally.
βββββββββββββββββββββββ
β ClaimIQ UI β
β Dashboard β
ββββββββββββ¬βββββββββββ
β
βΌ
βββββββββββββββββββββββ
β Backend API β
ββββββββββββ¬βββββββββββ
β
ββββββββββββββββββΌβββββββββββββββββ
β β β
βΌ βΌ βΌ
Claims Services QA Engine Reporting
β β β
β βΌ β
β SQL Validation β
β β β
ββββββββββββββββββΌβββββββββββββββββ
βΌ
βββββββββββββββββββββββ
β Database β
ββββββββββββ¬βββββββββββ
β
βΌ
Synthetic Data Engine
β
βΌ
Error Injection
β
βΌ
Controlled QA Tests
The architecture will evolve throughout the project's phases.
The technology stack will be finalized during the relevant implementation phases.
Current planned technologies include:
| Area | Technology |
|---|---|
| Database | MySQL 8.x (Storage Engine: InnoDB, Charset: utf8mb4) |
| Financial Precision | DECIMAL(12,2) |
| Temporal Standard | DATETIME(6), UTC |
| Querying | SQL |
| Data Generation | Python |
| Data Analysis | Python / Pandas |
| Backend | Python-based API |
| Frontend | HTML / CSS / JavaScript |
| Visualization | Charting library |
| Testing | Python testing framework |
| Containerization | Docker |
| CI/CD | GitHub Actions |
| AI | LLM/API-based assistant |
Technology decisions will be documented as the project progresses.
ClaimIQ is divided into 12 major phases.
| Phase | Description | Status |
|---|---|---|
| Phase 1 | Domain Research, Scope & Requirements | β Complete |
| Phase 2 | Database Architecture & Data Modeling | β Complete |
| Phase 3 | Synthetic Data Generation | β Complete |
| Phase 4 | Controlled Data Error Injection | β Complete |
| Phase 5 | SQL Data Quality Engine | π Next |
| Phase 6 | Python Analytics Engine | β³ Planned |
| Phase 7 | Backend & API | β³ Planned |
| Phase 8 | Operations Dashboard | β³ Planned |
| Phase 9 | Investigation, Audit & Reporting | β³ Planned |
| Phase 10 | SOP & Documentation System | β³ Planned |
| Phase 11 | Testing, Security & Performance | β³ Planned |
| Phase 12 | AI Intelligence & Final Release | β³ Planned |
Phase 1 established the conceptual and operational foundation of ClaimIQ.
Documentation includes:
docs/
βββ project-overview.md
βββ rcm-domain-overview.md
βββ problem-definition.md
βββ users-and-roles.md
βββ use-cases.md
βββ functional-requirements.md
βββ non-functional-requirements.md
βββ data-quality-framework.md
βββ severity-model.md
βββ claim-lifecycle.md
βββ issue-lifecycle.md
βββ operational-workflow.md
βββ reporting-requirements.md
βββ success-metrics.md
βββ project-scope.md
βββ requirements-traceability-matrix.md
reports/
βββ PHASE_1_COMPLETION_REPORT.md
Phase 1 established:
- 16 formal use cases
- 60+ functional requirements
- Non-functional requirements
- Seven data-quality dimensions
- Claim lifecycle model
- Issue lifecycle model
- Severity framework
- Operational workflow
- Reporting requirements
- Success metrics
- Requirements traceability
- Project scope and phase dependencies
Complete and verified.
No database, backend, frontend, AI implementation, or production infrastructure was introduced during Phase 1.
Phase 2 established the complete MySQL 8.x relational foundation for ClaimIQ.
Documentation and schema artifacts include:
docs/
βββ database-architecture.md
βββ entity-relationship-diagram.md
βββ data-dictionary.md
βββ normalization-strategy.md
βββ index-strategy.md
βββ database-conventions.md
βββ claim-data-model.md
βββ phase-2-schema-validation.md
database/
βββ schema/
β βββ 01_reference_tables.sql
β βββ 02_patient_provider_tables.sql
β βββ 03_clinical_encounter_tables.sql
β βββ 04_claims_tables.sql
β βββ 05_financial_tables.sql
β βββ 06_operations_qa_tables.sql
β βββ 07_audit_tables.sql
β βββ 08_indexes.sql
β βββ 09_seed_reference_data.sql
β
βββ migrations/
β βββ 001_initial_schema.sql
β
βββ validate_schema.py
reports/
βββ PHASE_2_COMPLETION_REPORT.md
Phase 2 established:
- MySQL 8.x database architecture with InnoDB storage engine and utf8mb4 character set
- Standardized temporal precision (
DATETIME(6)in UTC) and exact financial precision (DECIMAL(12,2)) - 22 normalized tables and 124 documented columns
- Primary keys (
BIGINT UNSIGNED AUTO_INCREMENT) and foreign keys with declarative referential integrity - Unique, NOT NULL, and CHECK constraints
- Secondary B-Tree index strategy for foreign keys and operational queues
- Claim lifecycle and state transition history model
- Financial reconciliation and variance balancing model
- Operational issue management and root-cause tracking model
- QA engine metadata and execution telemetry supporting structures
- Immutable audit event logging structure
- Deterministic, reproducible migration script (
001_initial_schema.sql) - MySQL 8.x Python schema validation harness (
validate_schema.py)
Complete and verified.
The schema contains the structural foundation and reference data, but no large synthetic datasets, error injection, or QA engine implementation.
Phase 3 implemented the deterministic synthetic healthcare data generation engine and produced a 100% clean, mathematically balanced baseline dataset in MySQL 8.x.
Documentation and generation modules include:
docs/
βββ phase-3-data-generation.md
βββ synthetic-data-model.md
βββ generation-configuration.md
βββ clinical-code-library.md
βββ generation-validation.md
βββ generation-performance.md
generator/
βββ config.py
βββ database.py
βββ random_state.py
βββ identifiers.py
βββ dates.py
βββ financials.py
βββ distributions.py
βββ reference_data.py
βββ validators.py
βββ cli.py
βββ templates/
βββ generators/
tests/
βββ test_identifiers.py
βββ test_dates.py
βββ test_financials.py
βββ test_distributions.py
βββ test_generation.py
reports/
βββ PHASE_3_COMPLETION_REPORT.md
Phase 3 established:
- Deterministic multi-scale synthetic generation (
small: 1k claims,medium: 10k claims,large: 100k claims) - Seeded reproducibility (
random.Random(seed)+Faker.seed(seed)) - Standardized 10-digit NPI generation with CMS Luhn checksum validation
- 35 CPT procedural codes and 45 ICD-10 diagnostic codes in a controlled clinical code library
- Exact
Decimal(12, 2)fixed-point arithmetic ensuring $\text{Variance} =$0.00$ on all baseline reconciliations - Strict chronological date sequencing adhering to payer timely filing limits
- Realistic claim lifecycle state transition tracking (
Submitted$\rightarrow$ Accepted$\rightarrow$ Paid/Partially Paid/Denied) - Chunked batch database insertion (
2,500rows per chunk) with active foreign keys - Automated 7-dimension SQL data quality validation suite (
python -m generator --validate) - Safe database reset mechanism (
python -m generator --reset) preserving schema and reference data
Complete and verified.
The generated dataset represents a clean operational baseline ready for Phase 4 controlled error injection.
Phase 4 implemented the deterministic error injection framework capable of creating controlled, realistic, traceable defects in copies of the clean Phase 3 baseline dataset.
Documentation and injection modules include:
docs/
βββ phase-4-error-injection.md
βββ anomaly-taxonomy.md
βββ injection-profiles.md
βββ anomaly-ground-truth.md
βββ anomaly-validation.md
βββ phase-4-test-results.md
database/schema/
βββ 10_ground_truth_tables.sql
generator/
βββ inject.py
βββ injector/
βββ models.py
βββ taxonomy.py
βββ profiles.py
βββ engine.py
βββ ground_truth.py
βββ validators.py
βββ cli.py
βββ mutators/
βββ completeness.py
βββ duplication.py
βββ referential.py
βββ financial.py
βββ temporal.py
βββ lifecycle.py
βββ business_logic.py
βββ formatting.py
tests/
βββ test_anomaly_selection.py
βββ test_anomaly_determinism.py
βββ test_financial_anomalies.py
βββ test_temporal_anomalies.py
βββ test_duplicate_anomalies.py
βββ test_lifecycle_anomalies.py
βββ test_ground_truth.py
βββ test_reset.py
βββ test_injection_profiles.py
reports/
βββ PHASE_4_COMPLETION_REPORT.md
Phase 4 established:
- Authoritative 67-anomaly taxonomy (
E001βE067) spanning all 8 core defect categories - Deterministic multi-scale injection profiles (
clean,light: ~1%,moderate: ~5%,heavy: ~10%,targeted) - Explicit Ground Truth Registry (
anomaly_ground_truthtable in MySQL 8.x + JSON export) - Dry-run simulation mode (
python -m generator.inject --profile moderate --seed 42 --dry-run) - Targeted anomaly injection CLI (
python -m generator.inject --profile targeted --anomaly E023,E030,E034) - Automated anomaly validation suite auditing live database state against ground truth
- Precise two-way mutation reversion (
python -m generator.inject --reset-anomalies) - Comprehensive test suite (41 unit & regression tests passing in 0.57s)
Complete and verified.
The anomalous datasets and ground truth registry are ready for Phase 5 automated QA rule evaluation.
ClaimIQ is intentionally designed around synthetic data.
The project will not contain:
- Real patient information
- Protected Health Information (PHI)
- Real medical records
- Real insurance member information
- Real claims
- Real payment transactions
- Production payer connections
- Production EHR integrations
All patient identifiers, provider identifiers, payer information, financial values, claims, procedures, and transactions will be generated synthetically.
The primary technical goals of ClaimIQ are to demonstrate:
- SQL proficiency
- Relational data modeling
- Data-quality engineering
- Data validation
- Data analysis
- QA methodology
- Root-cause investigation
- Operational workflow design
- Reporting
- Documentation
- API development
- Software testing
- Security fundamentals
- Performance analysis
- AI-assisted data operations
The project is specifically designed to demonstrate practical skills relevant to Data Operations, RCM Operations, QA, Data Analysis, and AI-enabled operational systems.
ClaimIQ is an educational and portfolio project.
It is not:
- An EHR
- A medical diagnosis platform
- A clinical decision-support system
- A production claims processor
- A real insurance platform
- A real payer gateway
- A medical billing service
- A replacement for healthcare infrastructure
No clinical decisions should be made using ClaimIQ.
ClaimIQ follows a phased development and verification approach.
Each phase must:
- Define a clear objective
- Establish explicit deliverables
- Remain within its defined scope
- Validate its outputs
- Produce a completion report
- Establish readiness for the next phase
Features belonging to later phases should not be prematurely implemented.
This ensures that the project evolves from:
Requirements
β
Architecture
β
Data
β
Validation
β
Analytics
β
Application
β
Operations
β
AI
rather than attempting to build the entire platform simultaneously.
The final ClaimIQ platform will provide a simulated end-to-end environment for healthcare claims data operations:
Synthetic Claims Data
β
Database
β
Automated QA
β
Data Quality Analysis
β
Issue Detection
β
Investigation
β
Resolution / Escalation
β
Operational Reporting
β
Trend Monitoring
β
AI-Assisted Analysis
The ultimate objective is to demonstrate how data quality, operational processes, analytics, and AI can work together to improve the reliability of complex claims workflows.
This project is intended for educational and portfolio purposes.
License information will be added as the project progresses.
- Phase 1 β Domain Research, Scope & Requirements Definition: β Complete
- Phase 2 β Database Architecture & Data Modeling: β Complete
- Phase 3 β Synthetic Healthcare Claims Data Generation: β Complete
- Phase 4 β Controlled Error Injection & Anomaly Dataset Engineering: β Complete
- Next Phase: Phase 5 β SQL Data Quality & QA Engine (π Next)
ClaimIQ
Healthcare Claims Data Quality & Operations Platform