Computing Ecqms logo

Computing Ecqms

CommunityPopular
maziyarpanahi
computing-ecqms

Compute electronic clinical quality measures (eCQMs) over structured data using CQL/QDM logic, lifting note-derived numerator and exclusion facts from OpenMed to improve measure capture. Use when the user wants to compute an eCQM, evaluate a CMS/ECQI quality measure, improve numerator capture from clinical notes, build CQL/QDM measure logic, or close documentation gaps that structured codes miss. Covers eCQM structure (IPP/denominator/numerator/exclusions), CQL v1.5 and QDM v5.6, MADiE authoring, and mapping OpenMed entities to QDM data elements. Consumes OpenMed analyze_text facts (coded via the linking skills) to supplement structured EHR data; does not replace certified measure engines.

Overview

Publishermaziyarpanahi
Repositoryopenmed
Skill namecomputing-ecqms
Stars
5.3K
Forks
677
Bundled files
Instructions only
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by maziyarpanahi on GitHub. Read the source before you install it.

Installation

Install the Computing Ecqms AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/maziyarpanahi/openmed.git /tmp/openmed
mkdir -p .claude/skills
cp -r /tmp/openmed/skills/computing-ecqms .claude/skills/computing-ecqms
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Computing Ecqms in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Computing Ecqms on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Computing Ecqms is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Computing eCQMs

Electronic Clinical Quality Measures (eCQMs) are computed over structured data using CQL (Clinical Quality Language) logic against the QDM (Quality Data Model). Much of what a measure needs — a counseling note, a reason a service wasn't done, a symptom — lives only in free text. This skill uses OpenMed to lift those facts out of notes (on-device) and feed them into measure computation so numerators and valid exclusions aren't undercounted.

When to use this skill

When structured codes under-capture a measure population and the evidence is in notes: documented exclusions ("patient declined screening"), numerator-relevant findings, or symptoms gating a measure. Use it alongside a certified measure engine — OpenMed supplements capture; it does not compute or certify the measure.

eCQM anatomy (what you're populating)

PopulationMeaningWhere OpenMed helps
IPP (Initial Population)everyone the measure could apply tousually structured (encounters, age)
DenominatorIPP meeting base criteriamostly structured
Denominator Exclusion / Exceptionvalid reasons to remove from denomnotes: "declined", "medical reason", "not indicated"
Numeratormet the quality actionnotes: counseling delivered, advice given, status documented

Quick start

python
import openmed

note = (
    "Tobacco use screened today; patient is a current every-day smoker. "
    "Cessation counseling provided and cessation medication offered."
)

result = openmed.analyze_text(note, output_format="dict")
# entities -> {text, label, confidence, start, end}

# Lift two measure-relevant facts (illustrative, for a tobacco-screening eCQM):
facts = {
    "tobacco_status_documented": any(e["label"] in {"smoking_status", "tobacco_use"}
                                     for e in result["entities"]),
    "cessation_intervention_documented": "counseling" in note.lower(),
}
# These become QDM data elements your CQL references (see workflow).

Pick the model whose labels match the measure concept (choosing-openmed-models) and code spans to value-set vocabularies via the linking skills before they enter QDM.

Workflow

  1. Read the measure. Get the human-readable spec + CQL + value sets from ECQI / MADiE. Identify which populations depend on documentation that structured data misses.
  2. De-identify. Run openmed.deidentify on notes before any logging or storage; keep the measure keyed by internal patient ids.
  3. Extract facts. openmed.analyze_text for the concepts the measure needs (status, intervention, reason-not-done). Use resolving-clinical-context to drop negated/hypothetical/family-history mentions — a negated exclusion is not an exclusion.
  4. Code to value sets. Map entities to the codes the measure's value sets expect (SNOMED/LOINC/RxNorm via the linking skills). QDM data elements are defined by code membership, not raw strings.
  5. Materialize QDM data elements. Turn coded, dated facts into QDM elements (e.g. Assessment, Performed, Intervention, Performed, Diagnosis) with the right author/relevant dates (building-patient-timelines).
  6. Compute with CQL. Feed the structured + note-derived QDM into a certified CQL engine (e.g. the open-source cqframework engine). OpenMed does not execute CQL.
  7. Reconcile & audit. Track which population members were added by note-derived facts and at what confidence, so QA can review.

Hand-off to / from OpenMed

  • From OpenMed: analyze_text entities + clinical temporality + the linking skills (to land facts in the measure's value sets) + deidentify upstream.
  • To measure tooling: materialized QDM data elements feed a CQL engine and MADiE test decks. Note-derived QDM can also originate from etl-to-omop-cdm rows if you compute measures on an OMOP store instead.

Edge cases & gotchas

  • OpenMed supplements, it does not certify. Measure scoring must run in a validated CQL engine. Treat note-derived facts as additional evidence subject to review, not as authoritative measure results.
  • Negation flips meaning. "Screening declined" is an exclusion; "screening not declined" / "no contraindication" is the opposite. Always run the temporality/negation pass before counting.
  • Dates drive measurement periods. A fact only counts if its relevant date falls in the measurement period. Resolve dates first; undated facts can't be placed.
  • Value-set membership, not keywords. A QDM data element is defined by codes in the measure's value set. Map entities to those codes — don't match on the surface word.
  • No restricted terminology bundling. SNOMED/LOINC/RxNorm content stays out-of-process under your own license; OpenMed provides spans/labels only.
  • No raw PHI in logs or audit. Record measure provenance by offset, label, confidence, and internal id.

Standards & references

Frequently asked questions

What does the Computing Ecqms AI skill do?

Compute electronic clinical quality measures (eCQMs) over structured data using CQL/QDM logic, lifting note-derived numerator and exclusion facts from OpenMed to improve measure capture. Use when the user wants to compute an eCQM, evaluate a CMS/ECQI quality measure, improve numerator capture from clinical notes, build CQL/QDM measure logic, or close documentation gaps that structured codes miss. Covers eCQM structure (IPP/denominator/numerator/exclusions), CQL v1.5 and QDM v5.6, MADiE authoring, and mapping OpenMed entities to QDM data elements. Consumes OpenMed analyze_text facts (coded v...

Why use Computing Ecqms on TypingMind?

Because you install it once and use it with any model. Computing Ecqms is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Computing Ecqms in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/maziyarpanahi/openmed/tree/master/skills/computing-ecqms. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Computing Ecqms?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Computing Ecqms?

As many as you like. As long as a model supports skills, you can use Computing Ecqms with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Computing Ecqms AI skill free?

Yes. It is published on GitHub by maziyarpanahi under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇