Open Source Project

Democratizing Clinical Quality Measure Development

FHIR IQ CQL Builder aims to make clinical quality measure development accessible to everyone, from seasoned developers to clinical informaticists with no coding experience.

The Problem We're Solving

Healthcare quality measurement faces significant tooling challenges

Time-Consuming Development

Creating clinical quality measures requires specialized CQL knowledge and significant development time. Manual coding is error-prone and difficult to validate.

Limited Accessibility

Clinical informaticists and quality measure experts often lack programming backgrounds, creating barriers to measure development and maintenance.

Validation Challenges

Testing CQL logic against patient data is complex. Without proper tooling, errors go undetected until measures are deployed in production.

Fragmented Workflow

Measure development involves multiple disconnected tools: text editors, compilers, test frameworks, and packaging utilities.

Jobs to Be Done

What users need to accomplish with our tool

Write CQL expressions

Author syntactically correct CQL with real-time feedback and intelligent assistance

Build measures visually

Create quality measures through intuitive drag-and-drop without writing code

Validate logic instantly

Compile CQL to ELM and catch errors before deployment

Test with patient data

Execute measures against FHIR bundles and verify expected outcomes

Find value sets

Search VSAC for standardized clinical code groupings and insert references

Package for deployment

Export FHIR-compliant Library and Measure resources ready for production

Development Roadmap

Our journey from foundation to enterprise-ready platform

Phase 1

Foundation

Completed

Core Editor

Monaco-based CQL editor with syntax highlighting

  • CQL syntax highlighting with Monarch tokenizer
  • Real-time error detection
  • Keyword auto-completion
  • Bracket matching and line numbers
Completed

CQL Compilation

CQL to ELM translation service integration

  • Multiple translation service endpoints
  • Fallback mechanism for reliability
  • Error message parsing and display
  • ELM JSON output generation
Completed

VSAC Integration

Value set search and retrieval

  • Value set search by keyword
  • OID and steward filtering
  • Code expansion viewing
  • Direct CQL insertion
Phase 2

No-Code Experience

Completed

Visual Query Builder

Drag-and-drop interface for CQL creation

  • FHIR resource selection
  • Condition builder with operators
  • Population definition panels
  • Real-time CQL preview
Completed

FHIR Schema Service

Resource field definitions for builder

  • 9 FHIR R4 resource schemas
  • Field type mappings
  • Operator compatibility
  • Extensible architecture
Completed

Export & Packaging

FHIR-compliant artifact generation

  • CQL and ELM file downloads
  • FHIR Library resource generation
  • FHIR Measure resource creation
  • Bundle packaging for deployment
Phase 3

Testing & Quality

In Progress

Test Harness

CQL execution with test patient data

  • Test case management
  • FHIR bundle input support
  • Expected outcome validation
  • Batch test execution
In Progress

Synthea Integration

Synthetic patient data generation

  • Configurable patient generation
  • Condition-specific scenarios
  • Direct test case creation
  • Population statistics
In Progress

Documentation

Comprehensive user guides

  • Feature documentation
  • FAQ section
  • API reference
  • Contributing guide
Phase 4

Intelligence

Planned

AI-Assisted Authoring

LLM-powered CQL generation

  • Natural language to CQL conversion
  • Intelligent code suggestions
  • Error explanation and fixes
  • Measure optimization recommendations
Planned

Advanced Validation

Deep semantic analysis

  • Clinical logic validation
  • Performance optimization hints
  • Best practice suggestions
  • Compliance checking
Phase 5

Enterprise

Planned

Collaboration

Team-based measure development

  • User authentication
  • Project workspaces
  • Version control integration
  • Review workflows
Planned

Deployment Pipeline

Measure lifecycle management

  • FHIR server publishing
  • Environment promotion
  • Audit logging
  • Measure analytics

The Future State

Where we're heading

AI-Powered

Describe measures in plain English and let AI generate the CQL

Analytics-Driven

Understand measure performance and optimize for accuracy

Cloud-Native

Collaborate in real-time and deploy to any FHIR server

Join the Journey

FHIR IQ CQL Builder is an open-source project and we welcome contributions of all kinds. Whether you're a developer, clinical informaticist, or quality measure expert, your input helps shape the future of healthcare quality measurement.