mllp-node

2.0.0 • Public • Published

mllp

NPM

Build Status Coverage Status

HL7's MLLP (Minimum Lower Layer Protocol) server implementation in Node.js.

Listen on predefined port for HL7 messages in format:

<VT>[HL7 Message]<FS><CR>

Quick up and running guide

Prerequisites

  • Node.js (v0.10+) and NPM
  • Grunt.js
# you need Node.js and Grunt.js installed

# install dependencies and build
npm install
grunt

Usage

See example.js:

var mllp = require('mllp-node');
 
var server = new mllp.MLLPServer('127.0.0.1', 1234);
 
// Subscribe to inbound messages
server.on('hl7', function (data){
    console.log('received payload:', data);
});
 
// Send outbound messages
server.send('127.0.0.1', 4321, 'outbound-hl7-message', function (err, ackData) {
    // async callback code here
});

Contributing

Contributors are welcome. See issues on GitHub issues

Release Notes

See release notes here

License

Licensed under Apache 2.0

Readme

Keywords

none

Package Sidebar

Install

npm i mllp-node

Weekly Downloads

142

Version

2.0.0

License

Apache-2.0

Unpacked Size

24.2 kB

Total Files

13

Last publish

Collaborators

  • austundag
  • mhiner
  • jbregstone
  • rmharrison
  • mmccall
  • kachok
  • ekavs
  • jsachs13