Processors: ETL Import module
ETL Importer Processors require the ETL Importer (ETL_IMPORTER) module.
smile:etl_importer/csvProcessorUse the steps below to send a .csv file to a csvProcessor using Camel's File Component.
.csv file using the sample data from the documentation.<routes xmlns="http://camel.apache.org/schema/spring">
<route>
<from uri="file:[directory-from-step-3-above]?fileName=[filename-from-step-3-above.csv]&noop=true"/>
<convertBodyTo type="String"/>
<to uri="smile:etl_importer/csvProcessor"/>
</route>
</routes>
The following route reads a multi-line CSV String (including headers) from the Kafka etl-in-topic topic and sends it to be processed by an ETL Import Module with an id of etl_importer.
<routes xmlns="http://camel.apache.org/schema/spring">
<route>
<from uri="kafka:etl-in-topic?brokers=localhost:9092"/>
<to uri="smile:etl_importer/csvProcessor"/>
</route>
</routes>
You are about to leave the Smile Digital Health documentation and navigate to the Open Source HAPI-FHIR Documentation.