nhi-cql-generator

Generate executable CQL libraries and computable FHIR ValueSets from Taiwan NHI reimbursement rule text.

1|Updated Feb 3, 2026
One-click install
npx skills add https://github.com/edwardlo12/CQL-Skills --skill nhi-cql-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nhi-cql-generator
Source: https://github.com/edwardlo12/CQL-Skills/tree/main/skills/nhi-cql-generator
Command: npx skills add https://github.com/edwardlo12/CQL-Skills --skill nhi-cql-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) components.

What problem does it solve?

This Skill automates converting Taiwan NHI reimbursement rule text into executable CQL Libraries and computable FHIR ValueSets, enabling rapid, repeatable CDS artifact generation.

Core Features & Use Cases

  • Generate a CQL Library (.cql) and a corresponding FHIR ValueSet (.json) from reimbursement rule text.
  • Automatically include required dependency libraries (FHIRHelpers.cql and CDSConnectCommonsForFHIRv401.cql) in the output to ensure successful execution.
  • Apply patterns learned from 50+ GT examples to maintain consistent structure, naming, and syntax across artifacts.

Quick Start

Provide the complete rule text for a target rule (e.g., 08111B) and run the skill to obtain the CQL library and ValueSet files along with the required dependencies.

Frequently Asked Questions about nhi-cql-generator

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

FAQPage Schema
How do I convert Taiwan NHI reimbursement rule text into executable CQL libraries?

To convert Taiwan NHI reimbursement rule text into executable CQL libraries, you provide the complete indication, contraindication, frequency, and points text to generate a ready-to-run CQL file and computable FHIR ValueSets.

How do I generate FHIR ValueSets from NHI reimbursement rules?

You generate FHIR ValueSets from NHI reimbursement rules by supplying the target rule text to produce a corresponding JSON file containing the computable codes required for clinical decision support execution.

Do I need to manually include FHIRHelpers.cql and CDSConnectCommonsForFHIRv401.cql when generating CQL?

You do not need to manually include FHIRHelpers.cql and CDSConnectCommonsForFHIRv401.cql dependencies; they are automatically generated in the output directory to ensure successful CQL library execution.

Can I automate CDS artifact generation for Taiwan NHI rules using CQL?

You can automate CDS artifact generation for Taiwan NHI rules using CQL by processing reimbursement rule text through patterns learned from ground truth examples to maintain consistent structure, naming, and syntax.

What is the best way to ensure consistent CQL syntax across generated NHI clinical artifacts?

The best way to ensure consistent CQL syntax across generated NHI clinical artifacts is to apply patterns learned from over 50 ground truth examples, which standardize the structure and naming conventions across all output.

Why does my generated CQL library fail to execute without shared dependency files?

Your generated CQL library fails to execute without shared dependency files because FHIRHelpers.cql and CDSConnectCommonsForFHIRv401.cql provide the required FHIR model conversion and common functions needed for successful runtime evaluation.