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
Name | Type(s) | Description |
---|---|---|
segments | Array, Segment | A single Segment or an array of Segments |
Does this message have any segments?
Adds the given segment 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
Parses data as a hl7 segment
Name | Type(s) | Description |
---|---|---|
data | Buffer, String | The segment |
Is the given segment a header segment?
Name | Type(s) | Description |
---|---|---|
segment | Segment | A Segment object |
Is the given segment type a header segment?
Name | Type(s) | Description |
---|---|---|
type | String | The 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