Config property for validate resource status (#746)

* Added configuration property for validate_resource_status_for_package_upload

* Added new parameter to test config file

* Fixed merge issue
This commit is contained in:
Michael Wilson
2024-11-09 19:45:46 +11:00
committed by GitHub
parent 5df8e034cb
commit 5d84d9fc59
5 changed files with 16 additions and 1 deletions

View File

@@ -80,6 +80,7 @@ public class AppProperties {
private Subscription subscription = new Subscription();
private Cors cors = null;
private Partitioning partitioning = null;
private Boolean validate_resource_status_for_package_upload = true;
private Boolean install_transitive_ig_dependencies = true;
private Map<String, PackageInstallationSpec> implementationGuides = null;
@@ -589,6 +590,14 @@ public Cors getCors() {
this.install_transitive_ig_dependencies = install_transitive_ig_dependencies;
}
public Boolean getValidate_resource_status_for_package_upload() {
return validate_resource_status_for_package_upload;
}
public void setValidate_resource_status_for_package_upload(Boolean validate_resource_status_for_package_upload) {
this.validate_resource_status_for_package_upload = validate_resource_status_for_package_upload;
}
public Integer getBundle_batch_pool_size() {
return this.bundle_batch_pool_size;
}

View File

@@ -149,9 +149,9 @@ public class FhirServerConfigCommon {
jpaStorageSettings.setDeleteExpungeEnabled(appProperties.getDelete_expunge_enabled());
jpaStorageSettings.setExpungeEnabled(appProperties.getExpunge_enabled());
jpaStorageSettings.setLanguageSearchParameterEnabled(appProperties.getLanguage_search_parameter_enabled());
jpaStorageSettings.setValidateResourceStatusForPackageUpload(appProperties.getValidate_resource_status_for_package_upload());
jpaStorageSettings.setIndexOnUpliftedRefchains(appProperties.getUpliftedRefchains_enabled());
if (!appProperties.getSearch_prefetch_thresholds().isEmpty()) {
jpaStorageSettings.setSearchPreFetchThresholds(appProperties.getSearch_prefetch_thresholds());
}

View File

@@ -152,6 +152,8 @@ hapi:
### enable to set the Server URL
# server_address: http://hapi.fhir.org/baseR4
# defer_indexing_for_codesystems_of_size: 101
### Flag is true by default. This flag filters resources during package installation, allowing only those resources with a valid status (e.g. active) to be installed.
# validate_resource_status_for_package_upload: false
# install_transitive_ig_dependencies: true
#implementationguides:
### example from registry (packages.fhir.org)

View File

@@ -153,6 +153,8 @@ hapi:
### enable to set the Server URL
# server_address: http://hapi.fhir.org/baseR4
# defer_indexing_for_codesystems_of_size: 101
### Flag is true by default. This flag filters resources during package installation, allowing only those resources with a valid status (e.g. active) to be installed.
# validate_resource_status_for_package_upload: false
# install_transitive_ig_dependencies: true
#implementationguides:
### example from registry (packages.fhir.org)