A simple hl7Parser processor that parses an hl7 version 2.x message into a StreamSets Data Collector Record.
Step 1: Click Here to download the parser and save to your drive.
Step 2: Extract the parser and install it into your Data Collector by following the instructions detailed here: Custom Stage Library
- This parser only works with HL7 version 2.x
- Each messages must be conformant and end with a carriage return as the segment terminator.
That's it! Continue reading if you want to build the parser on your own.
-
Download StreamSets Data Collector (SDC) or use an existing instance (SDC version 3.x and above).
-
Clone and build hl7Parser
git clone https://github.com/rushah/hl7Parser.git
- Go into the hl7Parser idrectory
cd hl7Parser
- Execute a maven clean install
mvn clean install
A build success message should appear
...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.874 s
[INFO] Finished at: 2018-02-08T12:07:24-08:00
[INFO] Final Memory: 31M/418M
[INFO] ------------------------------------------------------------------------
- Navigate to your installed Data Collector, $SDC_DIST/user_libs directory and extract the hl7Parser binaries into user_libs. Example:
cd /opt/streamsets-datacollector/user-libs
tar xf ~/hl7Parser/target/hl7Parser-1.0-SNAPSHOT.tar.gz
- Navigate to
$SDC_CONF folder (/etc/sdc or $ {SDC_HOME}/etc) to update the sdc-security.policy file and provide permissions to user_libs. Add the following lines to the sdc-security.policy file
grant codebase "file://${sdc.dist.dir}/user-libs/-" {
permission java.security.AllPermission;
};
- Save the file and restart StreamSets Data Collector
This is a beta version. Do test it out and feel free to provide any feedback.


