Compare test case results with the expected populations in the MeasureReport
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 40/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- typescript, vscode
Direzione di ricerca
Read src/model/testCase.ts first: getMeasureReportData (lines 72-101) selects the MeasureReport* file and extractPopulations (lines 133-159) already returns group id, code and count; see how src/commands/execute-cql-file.ts around lines 376-378 consumes only the description. Then study fqm-execution's DetailedResultsBuilder.ts (lines 269-319) for the population-rule logic and cqf-skills/scripts/check_results.py as a working reference. Decide first where the measure's group definitions come from (Measure resource vs config.jsonc), since the test case folder has none. Done means pass/fail per case and population is written to the individual result files and surfaced in the CQL Explorer.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
A test case folder can hold a MeasureReport with the case's expected population counts, for example one exported from MADiE. The extension reads it, but never uses the counts, so nothing says whether a test case passes.
getMeasureReportData (src/model/testCase.ts, v1.0.0):
- reads the first file in the test case folder whose name starts with
MeasureReport; - returns the subject patient id, the description, and the expected
populations(group id, code and count) viaextractPopulations.
Only the description is used: Execute CQL writes it to testCaseDescription in an individual result file (execute-cql-file.ts#L376-L378). The patient id and expected populations aren't used anywhere.
Suggested behaviour: after Execute CQL, compare each case's expected counts with its results and report pass or fail per case and population, in the result files and the CQL Explorer. Two points to get right:
-
Measure population rules apply. Raw definition values aren't the measure's population results. A case in the Denominator Exclusion isn't counted in the Numerator even when the
"Numerator"definition is true. Other rules:- not in the Initial Population means in no population;
- not in the Denominator clears the Denominator Exclusion, Denominator Exception, Numerator and Numerator Exclusion;
- in the Numerator clears the Denominator Exception;
- episode-based groups apply the rules per episode.
This is what fqm-execution does, and therefore MADiE (
DetailedResultsBuilder.ts#L269-L319at v1.8.6). MADiE then compares truthiness for boolean groups and episode counts otherwise (CalculationService.ts#L319-L327). -
Mapping populations to definitions. This needs the measure's group definitions (population code to CQL expression, population basis and scoring), which a test case folder doesn't have. They could come from the Measure resource in the project, or be configured in
config.jsonc.
The cqf-skills madie skill has a standalone script, scripts/check_results.py, that does this from Execute CQL's individual result files. It could serve as a reference.
🤖 Generated with Claude Code
- Lingua principale
- TypeScript
- Stelle
- 14
- Fork
- 8
- Merge medio
- 1g 22h
- PR unite (30g)
- 1
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di cqframework/vscode-cql
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
cqframework/vscode-cql#201 ·
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
cqframework/vscode-cql#199 ·
-
bug documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
cqframework/vscode-cql#198 ·
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
cqframework/vscode-cql#202 ·
-
Exclude compiled unit tests (dist/__test__) from the VSIXForse già presa @raleigh-g-thompson l’ha presa 23 giorni fa. Apertacode cleanup
cqframework/vscode-cql#197 · 1 assegnatario ·
Tutte le issue di cqframework/vscode-cql
Issue simili
-
Amélioration du résumé regAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
MTES-MCT/monitorenv#3257 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
salesforce/sa11y#1022 ·
-
area/web platform/ios type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
anomalyco/opencode#67504 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Kartographer map markers lose their geo: link on non-English wikisForse già presa @playlikeboy l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
openzim/mwoffliner#3014 ·
I maintainer di solito rispondono entro 1 giorno
-
Report: Bloomberg HTAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno