Skip to main content

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.

v1.0.02 installs
1

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-helper
Or download directly:
Browse all CLI commands →

Setup by platform

Claude Code

~/.claude/skills/<skill>/SKILL.md

Setup guide →

Install

One-click setup for your editor

Run in your project root

npx @skills-hub-ai/cli install cql-helper --target claude-code

Examples

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

This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

More Healthcare skills

Browse category
find-skillsHelps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.3 installsmedical-research-toolkitQuery 14+ biomedical databases for drug repurposing, target discovery, clinical trials, and literature research. Access ChEMBL, PubMed, ClinicalTrials.gov, OpenTargets, OpenFDA, OMIM, Reactome, KEGG, UniProt, and more through a unified MCP endpoint. Use when researching disease targets, finding approved/investigational drugs, searching clinical evidence, discovering genetic associations, or analyzing compound bioactivity data.2 installspdf-processingExtract text and tables from PDF files, fill forms, merge documents. Use when working with PDF files or when the user mentions PDFs, forms, or document extraction.2 installsmulti-search-engineMulti search engine integration with 17 engines (8 CN + 9 Global). Supports advanced search operators, time filters, site search, privacy engines, and WolframAlpha knowledge queries. No API keys required.1 installsscientific-visualizationCreate publication figures with matplotlib/seaborn/plotly. Multi-panel layouts, error bars, significance markers, colorblind-safe, export PDF/EPS/TIFF, for journal-ready scientific plots.1 installsmodern-drug-rehab-computerComprehensive knowledge system for addiction recovery environments, supporting both residential and outpatient (IOP/PHP) patients. Expert in evidence-based treatment modalities (CBT, DBT, MI, EMDR, MAT), recovery resources, coping strategies, crisis intervention, family systems, and holistic wellness. Activate on "rehab", "addiction recovery", "substance abuse", "treatment center", "IOP", "PHP", "detox", "sobriety support", "MAT", "Suboxone", "methadone", "12 step", "SMART Recovery". NOT for prescribing medications (consult medical professionals), emergency overdose situations (call 911), or replacing licensed counselors/therapists.1 installs

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.