Skip to content

Commit cfc4d70

Browse files
authored
Merge pull request #693 from barabo/master
Expose the mass ingestion mode for the dockerized hapi server
2 parents 769ec10 + 255031b commit cfc4d70

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

src/main/java/ca/uhn/fhir/jpa/starter/AppProperties.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public class AppProperties {
3737
private Boolean allow_multiple_delete = false;
3838
private Boolean allow_override_default_search_params = true;
3939
private Boolean auto_create_placeholder_reference_targets = false;
40+
private Boolean mass_ingestion_mode_enabled = false;
4041
private final Set<String> auto_version_reference_at_paths = new HashSet<>();
4142
private Boolean language_search_parameter_enabled = false;
4243
private Boolean dao_scheduling_enabled = true;
@@ -324,6 +325,14 @@ public void setAllow_override_default_search_params(
324325
this.allow_override_default_search_params = allow_override_default_search_params;
325326
}
326327

328+
public Boolean getMass_ingestion_mode_enabled() {
329+
return mass_ingestion_mode_enabled;
330+
}
331+
332+
public void setMass_ingestion_mode_enabled(Boolean mass_ingestion_mode_enabled) {
333+
this.mass_ingestion_mode_enabled = mass_ingestion_mode_enabled;
334+
}
335+
327336
public Boolean getAuto_create_placeholder_reference_targets() {
328337
return auto_create_placeholder_reference_targets;
329338
}
@@ -913,4 +922,4 @@ public Boolean getResource_dbhistory_enabled() {
913922
public void setResource_dbhistory_enabled(Boolean resource_dbhistory_enabled) {
914923
this.resource_dbhistory_enabled = resource_dbhistory_enabled;
915924
}
916-
}
925+
}

src/main/java/ca/uhn/fhir/jpa/starter/common/FhirServerConfigCommon.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ public JpaStorageSettings jpaStorageSettings(AppProperties appProperties) {
100100
: StorageSettings.IndexEnabledEnum.DISABLED);
101101
jpaStorageSettings.setAutoCreatePlaceholderReferenceTargets(
102102
appProperties.getAuto_create_placeholder_reference_targets());
103+
jpaStorageSettings.setMassIngestionMode(
104+
appProperties.getMass_ingestion_mode_enabled());
103105
jpaStorageSettings.setAutoVersionReferenceAtPaths(appProperties.getAuto_version_reference_at_paths());
104106
jpaStorageSettings.setEnforceReferentialIntegrityOnWrite(
105107
appProperties.getEnforce_referential_integrity_on_write());

src/main/resources/application.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ hapi:
116116
# allow_multiple_delete: true
117117
# allow_override_default_search_params: true
118118
# auto_create_placeholder_reference_targets: false
119+
# mass_ingestion_mode_enabled: false
119120
### tells the server to automatically append the current version of the target resource to references at these paths
120121
# auto_version_reference_at_paths: Device.patient, Device.location, Device.parent, DeviceMetric.parent, DeviceMetric.source, Observation.device, Observation.subject
121122
# ips_enabled: false

0 commit comments

Comments
 (0)