-
Notifications
You must be signed in to change notification settings - Fork 10
/
index.js
40 lines (38 loc) · 903 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* GSB
------------------------
(c) 2017-present Panates
SQB may be freely distributed under the MIT license.
For details and documentation:
https://panates.github.io/gsb/
*/
const HL7Message = require('./lib/HL7Message');
const HL7Server = require('./lib/exchange/HL7Server');
const HL7Client = require('./lib/exchange/HL7Client');
const HL7MessageRouter = require('./lib/exchange/HL7MessageRouter');
const {
hl7Unescape,
hl7Escape,
hl7Encode,
hl7Decode,
hl7DecodeDate,
hl7DecodeTime,
hl7EncodeDate,
hl7EncodeDateTime
} = require('./lib/helpers');
module.exports = {
HL7Message,
HL7Server,
HL7Client,
HL7MessageRouter,
hl7Unescape,
hl7Escape,
hl7Encode,
hl7Decode,
hl7DecodeDate,
hl7DecodeTime,
hl7EncodeDate,
hl7EncodeDateTime,
createServer: HL7Server.createServer,
connect: HL7Client.connect,
router: (handler) => new HL7MessageRouter(handler)
};