Class R4CollectDataService

java.lang.Object
org.opencds.cqf.fhir.cr.measure.r4.R4CollectDataService

public class R4CollectDataService extends Object
  • Constructor Details

    • R4CollectDataService

      public R4CollectDataService(org.opencds.cqf.fhir.api.Repository repository, MeasureEvaluationOptions measureEvaluationOptions)
  • Method Details

    • collectData

      public org.hl7.fhir.r4.model.Parameters collectData(org.hl7.fhir.r4.model.IdType measureId, String periodStart, String periodEnd, String subject, String practitioner)
      Implements the $collect-data operation found in the FHIR Clinical Reasoning Module.

      Returns a set of parameters with the generated MeasureReport and the resources that were used during the Measure evaluation

      Parameters:
      measureId - the measureId of the Measure to sub data for
      periodStart - The start of the reporting period
      periodEnd - The end of the reporting period
      subject - the subject to use for the evaluation
      practitioner - the practitioner to use for the evaluation received.
      Returns:
      Parameters the parameters containing the MeasureReport and the evaluated Resources
    • populateEvaluatedResources

      protected void populateEvaluatedResources(org.hl7.fhir.r4.model.MeasureReport measureReport, org.hl7.fhir.r4.model.Parameters parameters, String subject)