Read the test case description from cqm-testCaseDescription too

Open Beginner friendly
#201 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
85/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
tooling

Research direction

Start in src/model/testCase.ts around lines 113-123, where DESCRIPTION_URL is defined and the test case description is extracted from the MeasureReport. Read how the CQFM extension is located and how its value is assigned, then accept cqm-testCaseDescription alongside cqfm-testCaseDescription, preferring CQM when both exist. Done means a MADiE-exported test case shows its description and the individual result file contains a non-null testCaseDescription.

Written by the indexing model from the issue text.

Description

The extension reads a test case's description from a MeasureReport in the test case folder, but only from the CQFM extension:

const DESCRIPTION_URL =
  'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-testCaseDescription';

(src/model/testCase.ts#L113-L123, v1.0.0)

The Quality Measure IG defines the extension as http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-testCaseDescription, on its cqm-testcase MeasureReport profile. MADiE writes that URL when it exports test cases (madie-fhir-service UriConstants.java#L129-L138). So test cases exported from MADiE show no description in the extension, and testCaseDescription is null in their individual result files.

Suggested fix: accept cqm-testCaseDescription as well as cqfm-testCaseDescription, preferring the CQM one when both are present.

🤖 Generated with Claude Code

Dominant language
TypeScript
Stars
14
Forks
8
Avg merge
1d 22h
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cqframework/vscode-cql

All issues in cqframework/vscode-cql

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.