Repository navigation
Conversation
|
Formatting check succeeded! |
1 task done
|
| .measureReport(); | ||
| } | ||
|
|
||
| /** |
Contributor
There was a problem hiding this comment.
Comment, no action required: It would be good for cdr-cr and cqis-spark to eventually leverage this.
lukedegruchy
approved these changes
Nov 25, 2026
c-schuler
marked this pull request as draft
November 25, 2026 19:20
Contributor
Author
|
#1150 <-- linking issue for further discussion |
This branch has not been deployed
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
Adds a supported, public way to get the MeasureDef and per-subject CQL results from an R4 single-measure evaluation, so downstream callers no longer need a split-package workaround to reach the previously package-private capture-def method.
Specifically requested by Lantana customer
What changed
R4MultiMeasureService.evaluateWithDef(...)— same parameter shape as the existing publicevaluate(MeasureReference, …), but returns the fullMeasureDefAndR4MeasureReport(measureDef(),measureReport(), and the per-subjectMap<String, CqlEvaluationResult>). It delegates to the existingevaluateSingleMeasureCaptureDefand evaluates against the service's own repository.MeasureDefAndR4MeasureReportis no longer@VisibleForTesting— it is now a supported return type. No field/shape change, so existing readers are unaffected.R4MultiMeasureServiceEvaluateWithDefTestasserts the returned MeasureReport, MeasureDef (populated groups), and per-subject CQL results are all present.Why
The public
evaluate(MeasureReference, …)returns only the MeasureReport; the MeasureDef (population definitions, errors, url/version) and raw CQL results (expression/debug/trace) were reachable only via the package-private@VisibleForTestingevaluateSingleMeasureCaptureDef. Downstream callers reached it with a class placed in cqf-fhir's own package, which breaks whenever the method changes. This gives them a documented, supported method instead.Testing
:cqf-fhir-crmeasure suite green (1126 tests, 0 failures);spotlessCheckpasses.