On this page:
   25.15    ETL Import: CSV Properties 25.17    FHIR Binary Storage   

25.16ETL Import: Source

 

The ETL Import: Source configuration category includes the following configurable options:

  • Import Source

  • Mapping Script

  • Worker Thread Count

  • Worker Row Hashing Function

25.16.1Property: Import Source

 
Property Name Import Source
Property Key
Property Type ENUM
Values
  • CSV
Description This setting defines the format for files being imported.
Default Value CSV
Example Property
module.[MODULE_ID].config.import_source = CSV

25.16.2Property: Mapping Script

 
Property Name Mapping Script
Property Key
Property Type JAVASCRIPT
Description This is the script that processes each received row. It must have at least one function, with signature function handleEtlImportRow(inputMap, context). See ETL Importer module for details on how this function works.
Default Value function handleEtlImportRow(inputMap, context) { // Mapping goes here }
Example Property
module.[MODULE_ID].config.mapping.script = function handleEtlImportRow(inputMap, context) {
   // Mapping goes here
}

25.16.3Property: Worker Thread Count

 
Property Name Worker Thread Count
Property Key
Property Type POSITIVE_INTEGER
Description This setting configures the number of worker threads that will be allocated to processing rows of the CSV file. If set to 1, the file will be processed in a single-threaded manner.
Default Value 4
Example Property
module.[MODULE_ID].config.parallelism.threadcount = 4

25.16.4Property: Worker Row Hashing Function

 
Property Name Worker Row Hashing Function
Property Key
Property Type JAVASCRIPT
Description If set, this script is used to provide an appropriate hash for each individual row in order to ensure that rows are processed in an appropriate order. This setting may be left blank if in-order processing of individual rows is not necessary.
Default Value (no default)
Example Property
module.[MODULE_ID].config.parallelism.hashing.script = 
   25.15    ETL Import: CSV Properties 25.17    FHIR Binary Storage