bulk data instrumentation included
This commit is contained in:
@@ -46,6 +46,7 @@ public class AppProperties {
|
||||
private Boolean graphql_enabled = false;
|
||||
private Boolean binary_storage_enabled = false;
|
||||
private Boolean bulk_export_enabled = false;
|
||||
private Boolean bulk_import_enabled = false;
|
||||
private Boolean default_pretty_print = true;
|
||||
private Integer default_page_size = 20;
|
||||
private Integer max_binary_size = null;
|
||||
@@ -402,6 +403,14 @@ public class AppProperties {
|
||||
this.bulk_export_enabled = bulk_export_enabled;
|
||||
}
|
||||
|
||||
public Boolean getBulk_import_enabled() {
|
||||
return bulk_import_enabled;
|
||||
}
|
||||
|
||||
public void setBulk_import_enabled(Boolean bulk_import_enabled) {
|
||||
this.bulk_import_enabled = bulk_import_enabled;
|
||||
}
|
||||
|
||||
public EncodingEnum getDefault_encoding() {
|
||||
return default_encoding;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package ca.uhn.fhir.jpa.starter;
|
||||
|
||||
import ca.uhn.fhir.batch2.jobs.imprt.BulkDataImportProvider;
|
||||
import ca.uhn.fhir.batch2.jobs.reindex.ReindexProvider;
|
||||
import ca.uhn.fhir.context.FhirContext;
|
||||
import ca.uhn.fhir.context.FhirVersionEnum;
|
||||
@@ -78,6 +79,8 @@ public class BaseJpaRestfulServer extends RestfulServer {
|
||||
@Autowired
|
||||
BulkDataExportProvider bulkDataExportProvider;
|
||||
@Autowired
|
||||
BulkDataImportProvider bulkDataImportProvider;
|
||||
@Autowired
|
||||
PartitionManagementProvider partitionManagementProvider;
|
||||
|
||||
@Autowired
|
||||
@@ -364,6 +367,11 @@ public class BaseJpaRestfulServer extends RestfulServer {
|
||||
registerProvider(bulkDataExportProvider);
|
||||
}
|
||||
|
||||
//Bulk Import
|
||||
if (appProperties.getBulk_import_enabled()) {
|
||||
registerProvider(bulkDataImportProvider);
|
||||
}
|
||||
|
||||
// valueSet Operations i.e $expand
|
||||
registerProvider(myValueSetOperationProvider);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user