-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.js
171 lines (151 loc) · 6.27 KB
/
config.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
var os = require('os');
var path = require('path');
var config = {};
config.mdnTimeout = 10000; //milliseconds
config.authorExternalClassificationUID = 'urn:uuid:a7058bb9-b4e4-4307-ba5b-e3f0ab85e12d';
config.logging = {};
config.logging.folder = './output/';
config.logging.mdnFolder = './output/log/'; //base path for MDN messages
//new, processed, done subfolders must exist
config.rest = {};
//port - used to listen on localhost:<port>
config.rest.port = 8085;
//baseUrl - public Abelian API URL to be included in Location: header and in bundles (port may be missing or different by localhost service port)
config.rest.baseUrl = "http://localhost:" + config.rest.port + "/";
if(!/\/$/.test(config.rest.baseUrl)) { //ensure it ends with '/'
config.rest.baseUrl += '/';
}
config.rest.connString = "/tmp maildb";
//config.rest.connString = "mysql://direct:PASSWORDHERE@localhost/maildb";
//paging for resource search
config.rest.pageSize = 10;
//maximum time allowed for message processing (in seconds); after this, processing is considered to have failed and the message is available again
config.rest.maxMessageProcessingTime = 60;
// START: SMTP SETTINGS - REVIEW
// SMTP SETTINGS - REVIEW - NOT USED
/* config.smtp = {};
config.smtp.host = 'direct.mu.medicasoft.us';
config.smtp.port = 25; //others: 2525, 587, 465, 2526
config.smtp.user = 'edgetest';
config.smtp.pass = 'passwd'; */
// config.smtp = {};
// config.smtp.host = 'localhost';
// config.smtp.port = 2525; //others: 2525, 587, 465, 2526
// config.smtp.user = 'edgetest';
// config.smtp.pass = 'passwd';
// NEW SMTP SETTINGS - REVIEW
//open this SMTP interface
config.smtpLocalServer = {};
config.smtpLocalServer.port = 2500;
//SMTP server to send encrypted/decrypted messages to
config.smtpTargetServer = {};
config.smtpTargetServer.host = '127.0.0.1';
config.smtpTargetServer.port = 2501;
// END: SMTP SETTINGS
config.pathToCertificateString = os.tmpdir();
// config.capath = '/var/spool/direct/ca';
config.capath = './ca';
config.opensslPath = '/opt/openssl-1.0.2m/install/openssl'; //use custom openssl installation
// localDomainsToSendDispatchedFor
// For the following local domains, send dispatched MDN. (Default = no dispatched MDN sent for local domains)
// NOTE: Ensure the domains in this key are not used by running NXT EHR/PHR servers.
// If the domain is already connected with a running NXT EHR/PHR, the NXT system itself sends dispatched MDN.
//
// config.localDomainsToSendDispatchedFor = ['direct.medicasoft.us'];
config.ldapQueryMaxRetryTimes = 20;
// HTTPS certificates for the XDR Server
config.key = __dirname + '/cert/key.pem';
config.cert = __dirname + '/cert/cert.pem';
config.destinations = {
'[email protected]': {
type: 'xdr',
xdrType: 'minimal', // 'minimal'/'XDS' (defaults to 'minimal')
endpoint: 'https://ttpedge.sitenv.org:11084/xdstools/sim/edge-ttp__10/rep/xdrpr'
},
'[email protected]': {
type: 'xdr',
xdrType: 'minimal',
endpoint: 'https://ttpedge.sitenv.org:11084/xdstools/sim/edge-ttp__11/rep/xdrpr'
},
'[email protected]': {
type: 'xdr',
xdrType: 'XDS',
endpoint: 'https://ttpedge.sitenv.org:11084/xdstools/sim/edge-ttp__12/rep/xdrpr'
},
'[email protected]': {
type: 'xdr',
xdrType: 'minimal',
endpoint: 'https://ttpedge.sitenv.org:11084/xdstools/sim/edge-ttp__32mu2/rep/xdrpr'
},
'[email protected]': {
type: 'xdr',
xdrType: 'minimal',
endpoint: 'https://ttpedge.sitenv.org:11084/xdstools/sim/edge-ttp__33mu2/rep/xdrpr'
},
'[email protected]': {
type: 'xdr',
xdrType: 'minimal',
endpoint: 'https://ttpedge.sitenv.org:11084/xdstools/sim/edge-ttp__34mu2/rep/xdrpr'
},
'[email protected]': {
type: 'xdr',
xdrType: 'minimal',
endpoint: 'https://ttpedge.sitenv.org:11084/xdstools/sim/edge-ttp__16/rep/xdrpr' // Mutual TLS verify
},
'[email protected]': {
type: 'xdr',
xdrType: 'minimal',
endpoint: 'https://ttpedge.sitenv.org:11084/xdstools/sim/edge-ttp__35mu2/rep/xdrpr'
},
'[email protected]': {
type: 'xdr',
xdrType: 'minimal',
endpoint: '' // Server provided certificate is invalid
},
'[email protected]': {
type: 'xdr',
xdrType: 'minimal',
endpoint: 'https://ttpedge.sitenv.org:11084/xdstools/sim/edge-ttp__36mu2/rep/xdrpr'
},
'[email protected]': {
type: 'xdr',
xdrType: 'minimal',
endpoint: 'https://ttpedge.sitenv.org:11084/xdstools/sim/edge-ttp__37mu2/rep/xdrpr'
},
'[email protected]': {
type: 'xdr',
xdrType: 'minimal',
endpoint: 'https://ttpedge.sitenv.org:11084/xdstools/sim/edge-ttp__38mu2/rep/xdrpr'
},
'[email protected]': {
type: 'xdr',
xdrType: 'minimal',
endpoint: 'https://ttpedge.sitenv.org:11084/xdstools/sim/edge-ttp__43mu2/rep/xdrpr'
},
'[email protected]': {
type: 'xdr',
xdrType: 'minimal',
endpoint: 'https://ttpedge.sitenv.org:11084/xdstools/sim/edge-ttp__44mu2/rep/xdrpr'
},
'[email protected]': {
type: 'smtp',
username: '[email protected]',
password: 'vendortesting123'
}
//local addresses will be added from CAPATH/<domain_name> - to deliver messages to db
};
config.xdrServer = {};
config.xdrServer.host = 'https://direct.mu.medicasoft.us';
config.xdrServer.port = 3500;
config.xdrServer.path = '';
config.soapSchema = __dirname + '/input/soap_schema.xsd';
config.constants = {};
config.constants.patient = {};
config.constants.patient.patientId = '1^^^&2.16.840.1.113883.4.6&ISO';
config.constants.patient.name = 'Jones^Isabella^^^^';
config.constants.patient.birthDate = '19470501';
config.constants.patient.sex = 'F';
config.constants.patient.address = '1357 Amber Drive^^Beaverton^OR^97006^';
config.constants.stableDocumentEntry = 'urn:uuid:7edca82f-054d-47f2-a032-9b2a5b5186c1';
config.constants.registryPackageType = 'urn:uuid:a54d6aa5-d40d-43f9-88c5-b4633d873bdd';
module.exports = config;