Skip to content
This repository was archived by the owner on Aug 14, 2023. It is now read-only.

B-TECHBW/mllp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mllp

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
# you need Node.js installed

# install dependencies and test
yarn
yarn test

Usage

See example.js:

import { MllpServer } from "./mllp";

const server: MllpServer = new MllpServer('127.0.0.1', 1234);

server.listen()

// Subscribe to inbound messages
server.on('hl7', (data) => {
    console.log('received payload:', data);
});

// Send outbound messages
server.send('127.0.0.1', 4321, 'outbound-hl7-message', (err: any, ackData: any) => {
    // async callback code here
    console.log(`Sent message!\nerr: ${err}\nackData: ${ackData}`)
});

Contributing

Contributors are welcome. See issues on GitHub issues

Release Notes

See release notes [here] (./RELEASENOTES.md)

License

Licensed under Apache 2.0

About

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

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • TypeScript 100.0%