nodengine-hl7

HL7 parser

nodengine-hl7

A hl7 parser

$ npm install --save nodengine-hl7

To run tests:

$ npm test

NOTE: All hl7 test fixtures are samples taken from various places on the internet

To generate code coverage:

$ npm run cover

Constructor


Constructor

NameType(s)Description
segmentsArray, SegmentA single Segment or an array of Segments

Does this message have any segments?


Adds the given segment to the message

NameType(s)Description
segmentSegmentThe 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


Parses data as a hl7 segment

NameType(s)Description
dataBuffer, StringThe segment

Is the given segment a header segment?

NameType(s)Description
segmentSegmentA Segment object

Is the given segment type a header segment?

NameType(s)Description
typeStringThe segment type

  • To install, copy and paste the below into Terminal, hit enter, and follow the onscreen instructions
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
  • Go to http://nodejs.org and click download
  • Then, follow the instructions
  • Download from the App Store
  • To install command line tools, open Terminal and run:
$ git