nodengine-hl7

HL7 parser

nodengine-hl7

$ 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

TODO Remove this and add a default segment parser This is mainly in place so we can see what default segments we are missing


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
  • Clone the repo
$ git clone https://github.com/visionmedia/node-jscoverage
$ cd node-jscoverage
$ ./configure --prefix=/usr/local
$ make
$ make install