mllp-server 3.2.0
Install from the command line:
Learn more about npm packages
$ npm install @i-tech-uw/mllp-server@3.2.0
Install via package.json:
"@i-tech-uw/mllp-server": "3.2.0"
About this version
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>
- Node.js (v0.10+) and NPM
# you need Node.js installed
# install dependencies and test
yarn
yarn test
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}`)
});
Contributors are welcome. See issues on GitHub issues
See release notes [here] (./RELEASENOTES.md)
Licensed under Apache 2.0
Details
- mllp-server
- I-TECH-UW
- about 2 years ago
- Apache-2.0
- 15 dependencies
Assets
- mllp-server-3.2.0.tgz
Download activity
- Total downloads 94
- Last 30 days 0
- Last week 0
- Today 0