Skip to content

Commit

Permalink
Merge pull request #693 from barabo/master
Browse files Browse the repository at this point in the history
Expose the mass ingestion mode for the dockerized hapi server
  • Loading branch information
KevinDougan committed Jun 14, 2024
2 parents 769ec10 + 255031b commit cfc4d70
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/main/java/ca/uhn/fhir/jpa/starter/AppProperties.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 mass_ingestion_mode_enabled = false;
private final Set<String> auto_version_reference_at_paths = new HashSet<>();
private Boolean language_search_parameter_enabled = false;
private Boolean dao_scheduling_enabled = true;
Expand Down Expand Up @@ -324,6 +325,14 @@ public void setAllow_override_default_search_params(
this.allow_override_default_search_params = allow_override_default_search_params;
}

public Boolean getMass_ingestion_mode_enabled() {
return mass_ingestion_mode_enabled;
}

public void setMass_ingestion_mode_enabled(Boolean mass_ingestion_mode_enabled) {
this.mass_ingestion_mode_enabled = mass_ingestion_mode_enabled;
}

public Boolean getAuto_create_placeholder_reference_targets() {
return auto_create_placeholder_reference_targets;
}
Expand Down Expand Up @@ -913,4 +922,4 @@ public Boolean getResource_dbhistory_enabled() {
public void setResource_dbhistory_enabled(Boolean resource_dbhistory_enabled) {
this.resource_dbhistory_enabled = resource_dbhistory_enabled;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ public JpaStorageSettings jpaStorageSettings(AppProperties appProperties) {
: StorageSettings.IndexEnabledEnum.DISABLED);
jpaStorageSettings.setAutoCreatePlaceholderReferenceTargets(
appProperties.getAuto_create_placeholder_reference_targets());
jpaStorageSettings.setMassIngestionMode(
appProperties.getMass_ingestion_mode_enabled());
jpaStorageSettings.setAutoVersionReferenceAtPaths(appProperties.getAuto_version_reference_at_paths());
jpaStorageSettings.setEnforceReferentialIntegrityOnWrite(
appProperties.getEnforce_referential_integrity_on_write());
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ hapi:
# allow_multiple_delete: true
# allow_override_default_search_params: true
# auto_create_placeholder_reference_targets: false
# mass_ingestion_mode_enabled: 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
Expand Down

0 comments on commit cfc4d70

Please sign in to comment.