rh-inf-cql

Extract, translate, test, and package CQL libraries from structured YAML using rh-skills.

12|1|Updated Apr 15, 2026
One-click install
npx skills add https://github.com/reason-healthcare/rh-skills --skill rh-inf-cql
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rh-inf-cql
Source: https://github.com/reason-healthcare/rh-skills/tree/main/skills/.curated/rh-inf-cql
Command: npx skills add https://github.com/reason-healthcare/rh-skills --skill rh-inf-cql

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enables AI agents to act as disciplined reviewers and test-oriented authors for CQL artifacts, promoting deterministic, reproducible library development within RH Skills.

Core Features & Use Cases

  • Write or revise CQL libraries from structured clinical artifacts
  • Review CQL for correctness, maintainability, and packaging conformance
  • Debug translation and runtime failures with guided, test-driven workflows
  • Generate focused test scenarios and minimal fixture bundles
  • Validate behavior using the rh CLI and integrate with FHIR Clinical Reasoning packaging
  • Align CQL artifacts with topic structure and repository conventions

Quick Start

Author a CQL library from a structured artifact and validate it using the rh-skills cql workflow.

Frequently Asked Questions about rh-inf-cql

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I author CQL libraries from structured clinical data?

Author CQL libraries from structured YAML artifacts by guiding the workflow through extraction, translation, and packaging steps. This operationalizes clinical data into deterministic, reproducible CQL libraries ready for validation.

How can I debug CQL translation and runtime failures?

Debug CQL translation and runtime failures using guided, test-driven workflows that generate focused test scenarios and minimal fixture bundles. This isolates issues quickly while ensuring minimal, well-scoped changes and regression tests.

How do I validate CQL behavior and ensure FHIR packaging conformance?

Validate CQL behavior and ensure FHIR packaging conformance by testing artifacts with the rh CLI. The workflow checks runtime execution and aligns outputs with FHIR Clinical Reasoning packaging standards and repository conventions.

Do I need pinned terminology to review CQL artifacts?

Yes, reviewing CQL artifacts requires pinned terminology and explicit model and version declarations. This ensures deterministic translation and testing flows, allowing the workflow to check correctness, maintainability, and packaging conformance.

Can I generate test fixtures for CQL libraries automatically?

Yes, generate focused test scenarios and minimal fixture bundles automatically. The workflow creates these fixtures to validate specific CQL behavior using the rh CLI, ensuring changes are well-scoped and covered by regression tests.