cqframework / clinical-reasoning

CQF Clinical Reasoning on FHIR for Java
https://www.cqframework.org/clinical-reasoning/
Apache License 2.0
35 stars 29 forks source link

R4MeasureReportBuilder bug on buildSDE if reportType not set for population #344

Closed Capt-Mac closed 1 year ago

Capt-Mac commented 1 year ago

Description: $evaluate-measure parameter reportType is not defaulting to the correct value of "summary" when the subject parameter is not populated. When running against a population and reportType is not explicitly mentioned as "population" it will throw an illegal exception.

Steps:

  1. run evaluate measure operation against >1 patients
  2. omit the ReportType parameter
  3. R4MeasureReportBuilder.buildSDE throws illegal argument error saying evaluating results >1 and reportType=individual

Expected outcome: Processor logic would automatically set reportType to "population" if subject parameter is omitted. Per spec

Version being used CR: 3.0.0-PRE7-SNAPSHOT