4.1.8 • Published 10 years ago
nodengine-hl7 v4.1.8
nodengine-hl7
A hl7 parser
Installation
$ npm install --save nodengine-hl7or install globally for the CLI tool
$ npm install -g nodengine-hl7
$ ne-hl7 --help
ne-hl7 - a streaming parser for hl7 messages
usage: ne-hl7 [options]
options:
-h, --help show help 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 output in json
-v, --version show versionUnit Tests
To run tests:
$ npm testNOTE: All hl7 test fixtures are samples taken from various places on the internet
API
Parser
Constructor
Message
Constructor
Params
| Name | Type(s) | Description |
|---|---|---|
| segments | Array, Segment | A single Segment or an array of Segments |
Message.hasSegments()
Does this message have any segments?
Message.addSegment()
Adds the given segment to the message
Params
| Name | Type(s) | Description |
|---|---|---|
| segment | Segment | The Segment to add to the message |
Message.getHeader()
Gets the header Segment of the Message
Message.delimiters()
Gets the delimiters for the given message. These are taken from the MSH
Segment
Constructor
Segment.parse()
Parses data as a hl7 segment
Params
| Name | Type(s) | Description |
|---|---|---|
| data | Buffer, String | The segment |
utils.segmentIsHeader()
Is the given segment a header segment?
Params
| Name | Type(s) | Description |
|---|---|---|
| segment | Segment | A Segment object |
utils.segmentTypeIsHeader()
Is the given segment type a header segment?
Params
| Name | Type(s) | Description |
|---|---|---|
| type | String | The segment type |
License
MIT (See LICENSE for more info)
4.1.8
10 years ago
4.1.7
10 years ago
4.1.6
10 years ago
4.1.5
10 years ago
4.1.4
10 years ago
4.1.3
10 years ago
4.1.2
10 years ago
4.1.1
10 years ago
4.1.0
10 years ago
4.0.0
10 years ago
3.0.1
10 years ago
3.0.0
10 years ago
2.0.0
11 years ago
1.0.3
11 years ago
1.0.2
11 years ago
1.0.1
11 years ago
1.0.0
11 years ago
0.0.2
12 years ago
