A hl7 parser
$ npm install --save nodengine-hl7 or install globally for the CLI tool
$ npm install -g nodengine-hl7$ ne-hl7 --helpne-hl7 - a streaming parserfor hl7 messages usage: ne-hl7 [options] options: -h, --help showhelp and usage -l, --loglevel< level> set log level -f, --file< file> parse file -s, --segments only show segment types -c, --count print message count -j, --json outputin json -v, --version show version To run tests:
NOTE: All hl7 test fixtures are samples taken from various places on the internet
Constructor
Constructor
Name Type(s) Description segments Array, Segment A single Segment or an array of Segments
Does this message have any segments?
Adds the givensegment to the message
Name Type(s) Description segment Segment The Segment to add to the message
Gets the header Segment of the Message
Gets the delimiters for the given message. These are taken from the MSH
Constructor
Parsesdata as a hl7 segment
Name Type(s) Description data Buffer, String The segment
Is the givensegment a header segment?
Name Type(s) Description segment Segment A Segment object
utils.segmentTypeIsHeader() Is the given segmenttype a header segment?
Name Type(s) Description type String The segment type
MIT (SeeLICENSE for more info)