Merge branch 'cr-3-23-0' into cr-3-24-0

This commit is contained in:
Brenin Rhodes
2025-08-13 07:37:40 -06:00
4 changed files with 28 additions and 0 deletions

View File

@@ -22,6 +22,7 @@ import org.opencds.cqf.fhir.cr.hapi.common.ElmCacheResourceChangeListener;
import org.opencds.cqf.fhir.cr.measure.CareGapsProperties; import org.opencds.cqf.fhir.cr.measure.CareGapsProperties;
import org.opencds.cqf.fhir.cr.measure.MeasureEvaluationOptions; import org.opencds.cqf.fhir.cr.measure.MeasureEvaluationOptions;
import org.opencds.cqf.fhir.utility.ValidationProfile; import org.opencds.cqf.fhir.utility.ValidationProfile;
import org.opencds.cqf.fhir.utility.client.TerminologyServerClientSettings;
import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional; import org.springframework.context.annotation.Conditional;
@@ -57,6 +58,11 @@ public class CrCommonConfig {
return theCrProperties.getCql().getTerminology(); return theCrProperties.getCql().getTerminology();
} }
@Bean
TerminologyServerClientSettings terminologyServerClientSettings(CrProperties theCrProperties) {
return theCrProperties.getTerminologyServerClientSettings();
}
@Bean @Bean
public EvaluationSettings evaluationSettings( public EvaluationSettings evaluationSettings(
CrProperties theCrProperties, CrProperties theCrProperties,

View File

@@ -1,11 +1,15 @@
package ca.uhn.fhir.jpa.starter.cr; package ca.uhn.fhir.jpa.starter.cr;
import org.opencds.cqf.fhir.utility.client.TerminologyServerClientSettings;
public class CrProperties { public class CrProperties {
private Boolean enabled; private Boolean enabled;
private CareGapsProperties careGaps = new CareGapsProperties(); private CareGapsProperties careGaps = new CareGapsProperties();
private CqlProperties cql = new CqlProperties(); private CqlProperties cql = new CqlProperties();
private TerminologyServerClientSettings terminologyServerClientSettings = new TerminologyServerClientSettings();
public Boolean getEnabled() { public Boolean getEnabled() {
return enabled; return enabled;
} }
@@ -29,4 +33,12 @@ public class CrProperties {
public void setCql(CqlProperties cql) { public void setCql(CqlProperties cql) {
this.cql = cql; this.cql = cql;
} }
public TerminologyServerClientSettings getTerminologyServerClientSettings() {
return terminologyServerClientSettings;
}
public void setTerminologyServerClientSettings(TerminologyServerClientSettings terminologyServerClientSettings) {
this.terminologyServerClientSettings = terminologyServerClientSettings;
}
} }

View File

@@ -89,6 +89,11 @@ hapi:
caregaps: caregaps:
reporter: "default" reporter: "default"
section_author: "default" section_author: "default"
terminologyServerClientSettings:
maxRetryCount: 3
retryIntervalMillis: 1000
timeoutSeconds: 30
socketTimeout: 60
cql: cql:
use_embedded_libraries: true use_embedded_libraries: true
compiler: compiler:

View File

@@ -87,6 +87,11 @@ hapi:
caregaps: caregaps:
reporter: "default" reporter: "default"
section_author: "default" section_author: "default"
terminologyServerClientSettings:
maxRetryCount: 3
retryIntervalMillis: 1000
timeoutSeconds: 30
socketTimeout: 60
cql: cql:
use_embedded_libraries: true use_embedded_libraries: true
compiler: compiler: