mirror of
https://github.com/hapifhir/hapi-fhir.git
synced 2025-02-28 09:09:16 +00:00
add executor injection to dstu3 measureservice
This commit is contained in:
parent
f84033de0c
commit
d65a7a6697
@ -54,6 +54,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
|
||||
import static ca.uhn.fhir.cr.constant.MeasureReportConstants.COUNTRY_CODING_SYSTEM_CODE;
|
||||
import static ca.uhn.fhir.cr.constant.MeasureReportConstants.MEASUREREPORT_MEASURE_SUPPLEMENTALDATA_EXTENSION;
|
||||
@ -130,6 +131,9 @@ public class MeasureService implements IDaoRegistryUser {
|
||||
@Autowired
|
||||
protected DaoRegistry myDaoRegistry;
|
||||
|
||||
@Autowired
|
||||
private ExecutorService myMeasureExecutor;
|
||||
|
||||
protected RequestDetails myRequestDetails;
|
||||
/**
|
||||
* Get The details (such as tenant) of this request. Usually auto-populated HAPI.
|
||||
@ -182,6 +186,8 @@ public class MeasureService implements IDaoRegistryUser {
|
||||
|
||||
TerminologyProvider terminologyProvider;
|
||||
|
||||
myMeasureEvaluationOptions.setMeasureExecutor(myMeasureExecutor);
|
||||
|
||||
if (theTerminologyEndpoint != null) {
|
||||
IGenericClient client = Clients.forEndpoint(getFhirContext(), theTerminologyEndpoint);
|
||||
terminologyProvider = new Dstu3FhirTerminologyProvider(client);
|
||||
|
Loading…
x
Reference in New Issue
Block a user