From fe18cce023af46f75e47599fe4f3ef1091555767 Mon Sep 17 00:00:00 2001 From: Carl Anderson Date: Wed, 12 Jun 2024 11:56:31 -0500 Subject: [PATCH 1/4] enable mass ingestion mode --- src/main/resources/application.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index d7dcaf1..1cb74c5 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -116,6 +116,7 @@ hapi: # allow_multiple_delete: true # allow_override_default_search_params: true # auto_create_placeholder_reference_targets: false + # mass_ingestion_mode: false ### tells the server to automatically append the current version of the target resource to references at these paths # auto_version_reference_at_paths: Device.patient, Device.location, Device.parent, DeviceMetric.parent, DeviceMetric.source, Observation.device, Observation.subject # ips_enabled: false From cc51fa608208e20e3aee6a1590130de35cabe306 Mon Sep 17 00:00:00 2001 From: Carl Anderson Date: Wed, 12 Jun 2024 12:00:26 -0500 Subject: [PATCH 2/4] enable mass ingestion mode --- src/main/java/ca/uhn/fhir/jpa/starter/AppProperties.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/ca/uhn/fhir/jpa/starter/AppProperties.java b/src/main/java/ca/uhn/fhir/jpa/starter/AppProperties.java index eb15699..b9720d9 100644 --- a/src/main/java/ca/uhn/fhir/jpa/starter/AppProperties.java +++ b/src/main/java/ca/uhn/fhir/jpa/starter/AppProperties.java @@ -37,6 +37,7 @@ public class AppProperties { private Boolean allow_multiple_delete = false; private Boolean allow_override_default_search_params = true; private Boolean auto_create_placeholder_reference_targets = false; + private Boolean enable_mass_ingestion_mode = false; private final Set auto_version_reference_at_paths = new HashSet<>(); private Boolean language_search_parameter_enabled = false; private Boolean dao_scheduling_enabled = true; @@ -328,6 +329,10 @@ public Cors getCors() { return auto_create_placeholder_reference_targets; } + public Boolean getEnable_mass_ingestion_mode() { + return enable_mass_ingestion_mode; + } + public void setAuto_create_placeholder_reference_targets( Boolean auto_create_placeholder_reference_targets) { this.auto_create_placeholder_reference_targets = auto_create_placeholder_reference_targets; @@ -913,4 +918,4 @@ public Boolean getResource_dbhistory_enabled() { public void setResource_dbhistory_enabled(Boolean resource_dbhistory_enabled) { this.resource_dbhistory_enabled = resource_dbhistory_enabled; } -} \ No newline at end of file +} From 2239fe5b4586212d8fb3957eed5e82bb0e586b1e Mon Sep 17 00:00:00 2001 From: Carl Anderson Date: Wed, 12 Jun 2024 12:02:05 -0500 Subject: [PATCH 3/4] enable mass ingestion mode --- .../ca/uhn/fhir/jpa/starter/common/FhirServerConfigCommon.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/ca/uhn/fhir/jpa/starter/common/FhirServerConfigCommon.java b/src/main/java/ca/uhn/fhir/jpa/starter/common/FhirServerConfigCommon.java index 10ea4a6..14318f6 100644 --- a/src/main/java/ca/uhn/fhir/jpa/starter/common/FhirServerConfigCommon.java +++ b/src/main/java/ca/uhn/fhir/jpa/starter/common/FhirServerConfigCommon.java @@ -100,6 +100,8 @@ public class FhirServerConfigCommon { : StorageSettings.IndexEnabledEnum.DISABLED); jpaStorageSettings.setAutoCreatePlaceholderReferenceTargets( appProperties.getAuto_create_placeholder_reference_targets()); + jpaStorageSettings.setEnableMassIngestionMode( + appProperties.getEnable_mass_ingestion_mode()); jpaStorageSettings.setAutoVersionReferenceAtPaths(appProperties.getAuto_version_reference_at_paths()); jpaStorageSettings.setEnforceReferentialIntegrityOnWrite( appProperties.getEnforce_referential_integrity_on_write()); From 7ef0e0614d3f1f199a5150c8dd6eb77b244cdf75 Mon Sep 17 00:00:00 2001 From: Carl Anderson Date: Wed, 12 Jun 2024 12:03:03 -0500 Subject: [PATCH 4/4] typo --- src/main/resources/application.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index 1cb74c5..48feebc 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -116,7 +116,7 @@ hapi: # allow_multiple_delete: true # allow_override_default_search_params: true # auto_create_placeholder_reference_targets: false - # mass_ingestion_mode: false + # enable_mass_ingestion_mode: false ### tells the server to automatically append the current version of the target resource to references at these paths # auto_version_reference_at_paths: Device.patient, Device.location, Device.parent, DeviceMetric.parent, DeviceMetric.source, Observation.device, Observation.subject # ips_enabled: false