forked from google/android-fhir
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose overloaded FHIR Operator API for evaluateMeasure
- Loading branch information
1 parent
8301d62
commit ea22ea5
Showing
2 changed files
with
84 additions
and
2 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
workflow/src/main/java/com/google/android/fhir/workflow/FhirEngineR4MeasureProcessor.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.google.android.fhir.workflow; | ||
|
||
import org.hl7.fhir.instance.model.api.IBaseBundle; | ||
import org.hl7.fhir.r4.model.Measure; | ||
import org.hl7.fhir.r4.model.MeasureReport; | ||
import org.hl7.fhir.r4.model.Parameters; | ||
import org.jetbrains.annotations.NotNull; | ||
import org.jetbrains.annotations.Nullable; | ||
import org.opencds.cqf.fhir.api.Repository; | ||
import org.opencds.cqf.fhir.cr.measure.MeasureEvaluationOptions; | ||
import org.opencds.cqf.fhir.cr.measure.common.MeasureEvalType; | ||
import org.opencds.cqf.fhir.cr.measure.common.SubjectProvider; | ||
import org.opencds.cqf.fhir.cr.measure.r4.R4MeasureProcessor; | ||
|
||
import java.util.List; | ||
|
||
public class FhirEngineR4MeasureProcessor extends R4MeasureProcessor { | ||
public FhirEngineR4MeasureProcessor(Repository repository, MeasureEvaluationOptions measureEvaluationOptions) { | ||
super(repository, measureEvaluationOptions); | ||
} | ||
|
||
public FhirEngineR4MeasureProcessor(Repository repository, MeasureEvaluationOptions measureEvaluationOptions, SubjectProvider subjectProvider) { | ||
super(repository, measureEvaluationOptions, subjectProvider); | ||
} | ||
|
||
public MeasureReport evaluateMeasure(Measure measure, String periodStart, String periodEnd, String reportType, List<String> subjectIds, IBaseBundle additionalData, Parameters parameters, MeasureEvalType evalType) { | ||
return super.evaluateMeasure(measure, periodStart, periodEnd, reportType, subjectIds, additionalData, parameters, evalType); | ||
} | ||
} |
This file contains 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