healthcare-fhir-cql
Generates or debugs spec-correct CQL (Clinical Quality Language / FHIR R4) per the HL7 Clinical Reasoning architecture — FHIRHelpers-based, validated through a compile-to-ELM loop and cross-checked against the Alphora reference engine, optionally packaged as a FHIR Library resource. User-invoked only — say "use cql-helper" or type /cql-helper.
Signing
SignedSLSA L2- Signed by
- skills-hub.ai distributor
- Method
- Distributor-signed by skills-hub.aiCryptographically signed by the skills-hub.ai distributor key at publish time.
- Signed
Install this skill
Run this command in your terminal. No account required — it auto-detects your AI tool and installs the skill file.
npx @skills-hub-ai/cli install cql-helperSetup by platform
Install
One-click setup for your editorRun in your project root
npx @skills-hub-ai/cli install cql-helper --target claude-codeExamples
Prompt
Create a CQL library to identify patients aged 50-65 with hypertension using SNOMED codes, and test with a patient who has a confirmed diagnosis.Output
library HypertensionAssessment version '1.0.0'
using FHIR version '4.0.1'
include FHIRHelpers version '4.0.1' called FHIRHelpers
codesystem "SNOMED": 'http://snomed.info/sct'
valueset "Hypertension": 'http://example.org/ValueSet/hypertension'
context Patient
define "AgeInRange":
Interval[System.DateTime]{ start: Today() - 65 years, end: Today() - 50 years }
define "PatientAge":
AgeInYears(Patient.birthDate)
define "HasHypertension":
exists (Condition C where C.code in "Hypertension" and C.subject.reference = 'Patient/' + Patient.id)
// Test Patient Bundle with hypertension diagnosis
// Expect "HasHypertension" to be true for this patient.Prompt
Generate CQL to find patients with elevated LDL cholesterol (LOINC code 2093-3) over 130 mg/dL, and validate with a sample patient resource.Output
library ElevatedLDL version '1.0.0'
using FHIR version '4.0.1'
include FHIRHelpers version '4.0.1' called FHIRHelpers
codesystem "LOINC": 'http://loinc.org'
valueset "LDL Cholesterol": 'http://example.org/ValueSet/ldl-cholesterol'
context Patient
define "LDLObservation":
[Observation: code in "LDL Cholesterol"] O where O.valueQuantity > 130 'mg/dL'
define "PatientHasElevatedLDL":
exists "LDLObservation"
// Test Patient Bundle with LDL > 130 mg/dL
// Expect "PatientHasElevatedLDL" to be true for this patient.Instructions
Security
Reviews (0)
More Healthcare skills
Browse category →Frequently asked questions about healthcare-fhir-cql
What does the healthcare-fhir-cql skill do?
Generates or debugs spec-correct CQL (Clinical Quality Language / FHIR R4) per the HL7 Clinical Reasoning architecture — FHIRHelpers-based, validated through a compile-to-ELM loop and cross-checked against the Alphora reference engine, optionally packaged as a FHIR Library resource. User-invoked only — say "use cql-helper" or type /cql-helper. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the healthcare-fhir-cql skill?
Run `npx @skills-hub-ai/cli install cql-helper` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/cql-helper/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does healthcare-fhir-cql work with?
healthcare-fhir-cql runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the healthcare-fhir-cql skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use healthcare-fhir-cql after installing it?
In Claude Code, type `/cql-helper` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the healthcare-fhir-cql skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.