Add empty map for tester

This commit is contained in:
Jonathan Percival
2023-06-16 10:36:52 -06:00
parent 300a21fcb4
commit d6c152c524

View File

@@ -1,11 +1,11 @@
package ca.uhn.fhir.jpa.starter;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import ca.uhn.fhir.context.FhirVersionEnum;
import ca.uhn.fhir.jpa.api.config.JpaStorageSettings.ClientIdStrategyEnum;
import ca.uhn.fhir.jpa.model.entity.NormalizedQuantitySearchLevel;
import ca.uhn.fhir.rest.api.EncodingEnum;
import com.google.common.collect.ImmutableList;
import org.cqframework.cql.cql2elm.CqlCompilerException;
import org.cqframework.cql.cql2elm.CqlTranslator;
import org.cqframework.cql.cql2elm.CqlTranslatorOptions;
@@ -17,10 +17,12 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import com.google.common.collect.ImmutableList;
import ca.uhn.fhir.context.FhirVersionEnum;
import ca.uhn.fhir.jpa.api.config.JpaStorageSettings.ClientIdStrategyEnum;
import ca.uhn.fhir.jpa.model.entity.NormalizedQuantitySearchLevel;
import ca.uhn.fhir.rest.api.EncodingEnum;
@ConfigurationProperties(prefix = "hapi.fhir")
@Configuration
@@ -29,53 +31,55 @@ public class AppProperties {
private CqlEngineOptions cqlEngineOptions = CqlEngineOptions.defaultOptions();
private Boolean cql_use_embedded_libraries = true;
private Boolean cql_runtime_debug_logging_enabled= false;
private Boolean cql_runtime_enable_validation= false;
private Boolean cql_runtime_enable_expression_caching= false;
private Boolean cql_compiler_validate_units= true;
private Boolean cql_runtime_debug_logging_enabled = false;
private Boolean cql_runtime_enable_validation = false;
private Boolean cql_runtime_enable_expression_caching = false;
private Boolean cql_compiler_validate_units = true;
private Boolean cql_compiler_verify_only= false;
private Boolean cql_compiler_verify_only = false;
private String cql_compiler_compatibility_level= "1.5";
private String cql_compiler_compatibility_level = "1.5";
private CqlCompilerException.ErrorSeverity cql_compiler_error_level= CqlCompilerException.ErrorSeverity.Info;
private CqlCompilerException.ErrorSeverity cql_compiler_error_level = CqlCompilerException.ErrorSeverity.Info;
private LibraryBuilder.SignatureLevel cql_compiler_signature_level=LibraryBuilder.SignatureLevel.All;
private LibraryBuilder.SignatureLevel cql_compiler_signature_level = LibraryBuilder.SignatureLevel.All;
private Boolean cql_compiler_analyze_data_requirements= false;
private Boolean cql_compiler_analyze_data_requirements = false;
private Boolean cql_compiler_collapse_data_requirements= false;
private Boolean cql_compiler_collapse_data_requirements = false;
private CqlTranslator.Format cql_compiler_translator_format=CqlTranslator.Format.JSON;
private CqlTranslator.Format cql_compiler_translator_format = CqlTranslator.Format.JSON;
private Boolean cql_compiler_enable_date_range_optimization= false;
private Boolean cql_compiler_enable_date_range_optimization = false;
private Boolean cql_compiler_enable_annotations= false;
private Boolean cql_compiler_enable_annotations = false;
private Boolean cql_compiler_enable_locators = false;
private Boolean cql_compiler_enable_results_type= false;
private Boolean cql_compiler_enable_results_type = false;
private Boolean cql_compiler_enable_detailed_errors= false;
private Boolean cql_compiler_enable_detailed_errors = false;
private Boolean cql_compiler_disable_list_traversal=false;
private Boolean cql_compiler_disable_list_traversal = false;
private Boolean cql_compiler_disable_list_demotion=false;
private Boolean cql_compiler_disable_list_demotion = false;
private Boolean cql_compiler_disable_list_promotion =false;
private Boolean cql_compiler_disable_list_promotion = false;
private Boolean cql_compiler_enable_interval_demotion=false;
private Boolean cql_compiler_enable_interval_demotion = false;
private Boolean cql_compiler_enable_interval_promotion = false;
private Boolean cql_compiler_disable_method_invocation= false;
private Boolean cql_compiler_disable_method_invocation = false;
private Boolean cql_compiler_require_from_keyword= false;
private Boolean cql_compiler_require_from_keyword = false;
private Boolean cql_compiler_disable_default_model_info_load= false;
private Boolean cql_compiler_disable_default_model_info_load = false;
//private CqlEngineOptions cqlEngineOptions = CqlEngineOptions.defaultOptions();
//private CqlTranslatorOptions cqlTranslatorOptions = CqlTranslatorOptions.defaultOptions();
// private CqlEngineOptions cqlEngineOptions =
// CqlEngineOptions.defaultOptions();
// private CqlTranslatorOptions cqlTranslatorOptions =
// CqlTranslatorOptions.defaultOptions();
private Boolean cr_enabled = false;
private Boolean ips_enabled = false;
private Boolean openapi_enabled = false;
@@ -120,7 +124,7 @@ public class AppProperties {
private Boolean narrative_enabled = true;
private Validation validation = new Validation();
private Map<String, Tester> tester = null;
private Map<String, Tester> tester = new HashMap<>();
private Logger logger = new Logger();
private Subscription subscription = new Subscription();
private Cors cors = null;
@@ -148,7 +152,6 @@ public class AppProperties {
return custom_interceptor_classes;
}
public String getStaticLocation() {
return staticLocation;
}
@@ -157,7 +160,6 @@ public class AppProperties {
this.staticLocation = staticLocation;
}
public Boolean getOpenapi_enabled() {
return openapi_enabled;
}
@@ -405,8 +407,8 @@ public class AppProperties {
public void setCqlTranslatorFormat(CqlTranslator.Format cqlTranslatorFormat) {
this.cql_compiler_translator_format = cqlTranslatorFormat;
}
private CqlTranslatorOptions cqlTranslatorOptions =
new CqlTranslatorOptions(
private CqlTranslatorOptions cqlTranslatorOptions = new CqlTranslatorOptions(
getCqlTranslatorFormat(),
cql_compiler_enable_date_range_optimization,
cql_compiler_enable_annotations,
@@ -425,8 +427,8 @@ public class AppProperties {
isCqlCompilerValidateUnits(),
cql_compiler_disable_default_model_info_load,
getCqlCompilerSignatureLevel(),
getCqlCompilerCompatibilityLevel()
);
getCqlCompilerCompatibilityLevel());
public CqlTranslatorOptions getCqlTranslatorOptions() {
return this.cqlTranslatorOptions;
}
@@ -434,6 +436,7 @@ public class AppProperties {
public void setCqlTranslator(CqlTranslatorOptions translator) {
this.cqlTranslatorOptions = translator;
}
public CqlEngineOptions getCqlEngineOptions() {
return this.cqlEngineOptions;
}
@@ -450,8 +453,6 @@ public class AppProperties {
return cqlOptions;
}
public Boolean getCr_enabled() {
return cr_enabled;
}
@@ -468,7 +469,6 @@ public class AppProperties {
this.ips_enabled = ips_enabled;
}
public Boolean getMdm_enabled() {
return mdm_enabled;
}
@@ -806,13 +806,11 @@ public class AppProperties {
this.tester = tester;
}
public Boolean getNarrative_enabled()
{
public Boolean getNarrative_enabled() {
return narrative_enabled;
}
public void setNarrative_enabled(Boolean narrative_enabled)
{
public void setNarrative_enabled(Boolean narrative_enabled) {
this.narrative_enabled = narrative_enabled;
}
@@ -896,7 +894,6 @@ public class AppProperties {
this.allow_Credentials = allow_Credentials;
}
}
public static class Logger {
@@ -939,7 +936,6 @@ public class AppProperties {
}
}
public static class Tester {
private String name;
@@ -980,8 +976,7 @@ public class AppProperties {
}
}
public static class ImplementationGuide
{
public static class ImplementationGuide {
private String url;
private String name;
private String version;
@@ -1045,6 +1040,7 @@ public class AppProperties {
public void setPartitioning_include_in_search_hashes(Boolean partitioning_include_in_search_hashes) {
this.partitioning_include_in_search_hashes = partitioning_include_in_search_hashes;
}
public Boolean getAllow_references_across_partitions() {
return allow_references_across_partitions;
}
@@ -1084,7 +1080,6 @@ public class AppProperties {
this.email = email;
}
public static class Email {
public String getFrom() {
return from;