Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

HL7 parser for nodengine

License

NotificationsYou must be signed in to change notification settings

evanlucas/nodengine-hl7

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build StatusCoverage Status

A hl7 parser

Installation

$ 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

Unit Tests

To run tests:

$ npmtest

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

API

Parser

Constructor


Message

Constructor

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

Message.hasSegments()

Does this message have any segments?


Message.addSegment()

Adds the givensegment to the message

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

Parsesdata as a hl7 segment

Params
NameType(s)Description
dataBuffer, StringThe segment

utils.segmentIsHeader()

Is the givensegment a header segment?

Params
NameType(s)Description
segmentSegmentA Segment object

utils.segmentTypeIsHeader()

Is the given segmenttype a header segment?

Params
NameType(s)Description
typeStringThe segment type

License

MIT (SeeLICENSE for more info)

About

HL7 parser for nodengine

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors5


[8]ページ先頭

©2009-2025 Movatter.jp