Merge pull request #844 from Chris0296/config-terminology-server-client-settings
Add TerminologySeverClientSettings to CR Properties & Config
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user