cql(measures): apply inline code-filter to all 6 unfiltered measures#62
Merged
Conversation
…easures Previously only TB and HAZWOPER filtered the qualifying Procedure by code/system; the other 6 measures used exists([Condition]) / Count([Condition]) > 1 for enrollment/exemption and grabbed the last *any* Procedure or Immunization for recency. Updated audiogram, flu_vaccine, hypertension, diabetes_hba1c, obesity_bmi, and cholesterol_ldl to: - filter enrollment/exemption [Condition] by code+system - filter [Procedure] / [Immunization] by code+system (matching SyntheticFhirBundleBuilder examCode/examValueSet stamps) No synthetic-data changes required; builder already emits the correct codes. All five outcome buckets still populate for each measure. Regression: CqlEvaluationServiceTest (4 tests) → BUILD SUCCESSFUL Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
audiogram.cql,flu_vaccine.cql,hypertension.cql,diabetes_hba1c.cql,obesity_bmi.cql, andcholesterol_ldl.cqlto apply the same inline code-filter pattern already in use by TB and HAZWOPER.[Procedure]/[Immunization]) and the enrollment/exemption[Condition]defines now filter by code+system, matching whatSyntheticFhirBundleBuilderstamps.exists([Condition])/Count([Condition]) > 1pattern that was semantically correct but not code-scoped.docs/MEASURES.mdImplementation Notes to document that all 8 active CQL measures now code-filter, and that true VS expansion remains a known evaluator limitation.No synthetic-data changes needed
Verified that
SyntheticFhirBundleBuilderalready emits the correct system/code for every measure's enrollment, exemption, and qualifying event. No builder changes required.Verification
All five outcome buckets (COMPLIANT, DUE_SOON, OVERDUE, MISSING_DATA, EXCLUDED) still populate for each measure.
Test plan
CqlEvaluationServiceTeststays green🤖 Generated with Claude Code