forked from koratech/mirthconnect_channels-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rule Builder.xml
737 lines (737 loc) · 41 KB
/
Rule Builder.xml
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
<channel version="3.8.0">
<id>ff488199-40c9-4b0f-97fc-969a7ba34f6e</id>
<nextMetaDataId>3</nextMetaDataId>
<name>Rule Builder</name>
<description></description>
<revision>10</revision>
<sourceConnector version="3.8.0">
<metaDataId>0</metaDataId>
<name>sourceConnector</name>
<properties class="com.mirth.connect.connectors.tcp.TcpReceiverProperties" version="3.8.0">
<pluginProperties/>
<listenerConnectorProperties version="3.8.0">
<host>0.0.0.0</host>
<port>6662</port>
</listenerConnectorProperties>
<sourceConnectorProperties version="3.8.0">
<responseVariable>Auto-generate (After source transformer)</responseVariable>
<respondAfterProcessing>true</respondAfterProcessing>
<processBatch>false</processBatch>
<firstResponse>true</firstResponse>
<processingThreads>1</processingThreads>
<resourceIds class="linked-hash-map">
<entry>
<string>Default Resource</string>
<string>[Default Resource]</string>
</entry>
</resourceIds>
<queueBufferSize>1000</queueBufferSize>
</sourceConnectorProperties>
<transmissionModeProperties class="com.mirth.connect.plugins.mllpmode.MLLPModeProperties">
<pluginPointName>MLLP</pluginPointName>
<startOfMessageBytes>0B</startOfMessageBytes>
<endOfMessageBytes>1C0D</endOfMessageBytes>
<useMLLPv2>false</useMLLPv2>
<ackBytes>06</ackBytes>
<nackBytes>15</nackBytes>
<maxRetries>2</maxRetries>
</transmissionModeProperties>
<serverMode>true</serverMode>
<remoteAddress></remoteAddress>
<remotePort></remotePort>
<overrideLocalBinding>false</overrideLocalBinding>
<reconnectInterval>5000</reconnectInterval>
<receiveTimeout>0</receiveTimeout>
<bufferSize>65536</bufferSize>
<maxConnections>10</maxConnections>
<keepConnectionOpen>true</keepConnectionOpen>
<dataTypeBinary>false</dataTypeBinary>
<charsetEncoding>DEFAULT_ENCODING</charsetEncoding>
<respondOnNewConnection>0</respondOnNewConnection>
<responseAddress></responseAddress>
<responsePort></responsePort>
</properties>
<transformer version="3.8.0">
<elements/>
<inboundTemplate encoding="base64">TVNIfF5+XCZ8QURUU0VOREVSfEhvc3BpdGFsIEF8fHwyMDE1MDYwMTEzMjMyM3x8QURUXkEwM3xI
Q09OUkFELTAwNDB8VHwyLjJ8ODA5Mg0KRVZOfEEwM3wyMDE1MDYwMTEzMjMyM3x8fG1yLmNmYXIN
ClBJRHx8ODgwMDQwfDg4MDA0MHx8Q29ucmFkXkhlcm1lc15efHwxOTY0MDIwMnxNfHwyMDU0LTV8
MTMgSmFtYWljYSBQbGFjZV5eTGFrZSBGb3Jlc3ReQ0FeOTI2MzBeVVNeSHx8KDk0OSkgNTU1LTAw
NDBeXkhPTUUgU09+fHxFTkd8UHxPVEh8MDA0MHw3NDEtMDEtMjYwNnx8DQpOSzF8MXxDb25yYWRe
TGFCYXJiYXJhfFNQT3wxMjMgT0FLIEFWRU5VRV5BUFQuIDRBXklSVklORV5DQV45MjYxMnwoMjI1
KTM1MS0zNzM4fCg4MDIpNTYxLTY2MTcNCk5LMXwyfENvbnJhZF5Ed2lnaHR8Q0hEfDEzIEphbWFp
Y2EgUGxhY2VeXkxha2UgRm9yZXN0XkNBXjkyNjMwXlVTXkh8DQpQVjF8fEl8VzJXXlcyNTFeQXxF
fHx8MTleV0lHR1VNXlNBUkFIXl58MTReVkFOIEhPVVRFTl5NSUxMSE9VU0VeXnw4XlNJTVBTT05e
QkFSVF5efE1FRHx8fHwzfHwgfDA5MzU3MF5LQUxFQl5WQU5FU1NBXk18SXx8QU98MzF8fHx8fHx8
fHx8fHx8fHwiInx8fFNJTVBTT04gQ0xJTklDfHx8fHwyMDE1MDUyNDE4MzB8MjAxNTA1MjUxMTQ1
DQpQVjJ8fDMxfDE4MzBeRVhQTEFSQVRPUlkgTEFQfHx8fHwyMDE1MDUyNHx8fHwiInx8fHx8fHx8
fFYNCkdUMXwxfHxDb25yYWReSGVybWVzXl58Q29ucmFkXkxhQmFyYmFyYXwxMyBKYW1haWNhIFBs
YWNlXl5MYWtlIEZvcmVzdF5DQV45MjYzMF5VU15IfCg5NDkpIDU1NS0wMDQwfHwxOTY0MDIwMnxN
fHxTRUx8NzQxLTAxLTI2MDZ8fHx8UGxhbmV0IEV4cHJlc3N8MTM4OCBXLiBFbG0gU3QuXl5OZXcg
WW9ya15OWV4xNDQ2Nw0KSU4xfDF8MUhQNnwwRjMwfEdSRUFUIFdFU1QgUFBPIEN8fHx8fE9QRU4g
QUNDRVNTDQo=</inboundTemplate>
<inboundDataType>HL7V2</inboundDataType>
<outboundDataType>HL7V2</outboundDataType>
<inboundProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2DataTypeProperties" version="3.8.0">
<serializationProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2SerializationProperties" version="3.8.0">
<handleRepetitions>true</handleRepetitions>
<handleSubcomponents>true</handleSubcomponents>
<useStrictParser>false</useStrictParser>
<useStrictValidation>false</useStrictValidation>
<stripNamespaces>true</stripNamespaces>
<segmentDelimiter>\r</segmentDelimiter>
<convertLineBreaks>true</convertLineBreaks>
</serializationProperties>
<deserializationProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2DeserializationProperties" version="3.8.0">
<useStrictParser>false</useStrictParser>
<useStrictValidation>false</useStrictValidation>
<segmentDelimiter>\r</segmentDelimiter>
</deserializationProperties>
<batchProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2BatchProperties" version="3.8.0">
<splitType>MSH_Segment</splitType>
<batchScript></batchScript>
</batchProperties>
<responseGenerationProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2ResponseGenerationProperties" version="3.8.0">
<segmentDelimiter>\r</segmentDelimiter>
<successfulACKCode>AA</successfulACKCode>
<successfulACKMessage></successfulACKMessage>
<errorACKCode>AE</errorACKCode>
<errorACKMessage>An Error Occurred Processing Message.</errorACKMessage>
<rejectedACKCode>AR</rejectedACKCode>
<rejectedACKMessage>Message Rejected.</rejectedACKMessage>
<msh15ACKAccept>false</msh15ACKAccept>
<dateFormat>yyyyMMddHHmmss.SSS</dateFormat>
</responseGenerationProperties>
<responseValidationProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2ResponseValidationProperties" version="3.8.0">
<successfulACKCode>AA,CA</successfulACKCode>
<errorACKCode>AE,CE</errorACKCode>
<rejectedACKCode>AR,CR</rejectedACKCode>
<validateMessageControlId>true</validateMessageControlId>
<originalMessageControlId>Destination_Encoded</originalMessageControlId>
<originalIdMapVariable></originalIdMapVariable>
</responseValidationProperties>
</inboundProperties>
<outboundProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2DataTypeProperties" version="3.8.0">
<serializationProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2SerializationProperties" version="3.8.0">
<handleRepetitions>true</handleRepetitions>
<handleSubcomponents>true</handleSubcomponents>
<useStrictParser>false</useStrictParser>
<useStrictValidation>false</useStrictValidation>
<stripNamespaces>true</stripNamespaces>
<segmentDelimiter>\r</segmentDelimiter>
<convertLineBreaks>true</convertLineBreaks>
</serializationProperties>
<deserializationProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2DeserializationProperties" version="3.8.0">
<useStrictParser>false</useStrictParser>
<useStrictValidation>false</useStrictValidation>
<segmentDelimiter>\r</segmentDelimiter>
</deserializationProperties>
<batchProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2BatchProperties" version="3.8.0">
<splitType>MSH_Segment</splitType>
<batchScript></batchScript>
</batchProperties>
<responseGenerationProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2ResponseGenerationProperties" version="3.8.0">
<segmentDelimiter>\r</segmentDelimiter>
<successfulACKCode>AA</successfulACKCode>
<successfulACKMessage></successfulACKMessage>
<errorACKCode>AE</errorACKCode>
<errorACKMessage>An Error Occurred Processing Message.</errorACKMessage>
<rejectedACKCode>AR</rejectedACKCode>
<rejectedACKMessage>Message Rejected.</rejectedACKMessage>
<msh15ACKAccept>false</msh15ACKAccept>
<dateFormat>yyyyMMddHHmmss.SSS</dateFormat>
</responseGenerationProperties>
<responseValidationProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2ResponseValidationProperties" version="3.8.0">
<successfulACKCode>AA,CA</successfulACKCode>
<errorACKCode>AE,CE</errorACKCode>
<rejectedACKCode>AR,CR</rejectedACKCode>
<validateMessageControlId>true</validateMessageControlId>
<originalMessageControlId>Destination_Encoded</originalMessageControlId>
<originalIdMapVariable></originalIdMapVariable>
</responseValidationProperties>
</outboundProperties>
</transformer>
<filter version="3.8.0">
<elements>
<com.mirth.connect.plugins.rulebuilder.RuleBuilderRule version="3.8.0">
<name>Accept message if "msg['MSH']['MSH.4']['MSH.4.1'].toString().toUpperCase()" equals "HOSPITAL A" or "HOSPITAL B"</name>
<sequenceNumber>0</sequenceNumber>
<enabled>true</enabled>
<field>msg['MSH']['MSH.4']['MSH.4.1'].toString().toUpperCase()</field>
<condition>EQUALS</condition>
<values>
<string>"HOSPITAL A"</string>
<string>"HOSPITAL B"</string>
</values>
</com.mirth.connect.plugins.rulebuilder.RuleBuilderRule>
<com.mirth.connect.plugins.rulebuilder.RuleBuilderRule version="3.8.0">
<name>Accept message if "msg['MSH']['MSH.9']['MSH.9.1'].toString()" equals "ADT"</name>
<sequenceNumber>1</sequenceNumber>
<enabled>true</enabled>
<operator>AND</operator>
<field>msg['MSH']['MSH.9']['MSH.9.1'].toString()</field>
<condition>EQUALS</condition>
<values>
<string>"ADT"</string>
</values>
</com.mirth.connect.plugins.rulebuilder.RuleBuilderRule>
</elements>
</filter>
<transportName>TCP Listener</transportName>
<mode>SOURCE</mode>
<enabled>true</enabled>
<waitForPrevious>true</waitForPrevious>
</sourceConnector>
<destinationConnectors>
<connector version="3.8.0">
<metaDataId>1</metaDataId>
<name>Hospital A</name>
<properties class="com.mirth.connect.connectors.file.FileDispatcherProperties" version="3.8.0">
<pluginProperties/>
<destinationConnectorProperties version="3.8.0">
<queueEnabled>false</queueEnabled>
<sendFirst>false</sendFirst>
<retryIntervalMillis>10000</retryIntervalMillis>
<regenerateTemplate>false</regenerateTemplate>
<retryCount>0</retryCount>
<rotate>false</rotate>
<includeFilterTransformer>false</includeFilterTransformer>
<threadCount>1</threadCount>
<threadAssignmentVariable></threadAssignmentVariable>
<validateResponse>false</validateResponse>
<resourceIds class="linked-hash-map">
<entry>
<string>Default Resource</string>
<string>[Default Resource]</string>
</entry>
</resourceIds>
<queueBufferSize>1000</queueBufferSize>
<reattachAttachments>true</reattachAttachments>
</destinationConnectorProperties>
<scheme>FILE</scheme>
<host>C:/Users/eslia/Desktop/Mirth Connect/Training/Hospital A</host>
<outputPattern>${UUID}.txt</outputPattern>
<anonymous>true</anonymous>
<username>anonymous</username>
<password>anonymous</password>
<timeout>10000</timeout>
<keepConnectionOpen>true</keepConnectionOpen>
<maxIdleTime>0</maxIdleTime>
<secure>true</secure>
<passive>true</passive>
<validateConnection>true</validateConnection>
<outputAppend>true</outputAppend>
<errorOnExists>false</errorOnExists>
<temporary>false</temporary>
<binary>false</binary>
<charsetEncoding>DEFAULT_ENCODING</charsetEncoding>
<template>${message.encodedData}</template>
</properties>
<transformer version="3.8.0">
<elements/>
<inboundTemplate encoding="base64">TVNIfF5+XCZ8QURUU0VOREVSfEhvc3BpdGFsIEF8fHwyMDE1MDYwMTEzMjMyM3x8QURUXkEwM3xI
Q09OUkFELTAwNDB8VHwyLjJ8ODA5Mg0KRVZOfEEwM3wyMDE1MDYwMTEzMjMyM3x8fG1yLmNmYXIN
ClBJRHx8ODgwMDQwfDg4MDA0MHx8Q29ucmFkXkhlcm1lc15efHwxOTY0MDIwMnxNfHwyMDU0LTV8
MTMgSmFtYWljYSBQbGFjZV5eTGFrZSBGb3Jlc3ReQ0FeOTI2MzBeVVNeSHx8KDk0OSkgNTU1LTAw
NDBeXkhPTUUgU09+fHxFTkd8UHxPVEh8MDA0MHw3NDEtMDEtMjYwNnx8DQpOSzF8MXxDb25yYWRe
TGFCYXJiYXJhfFNQT3wxMjMgT0FLIEFWRU5VRV5BUFQuIDRBXklSVklORV5DQV45MjYxMnwoMjI1
KTM1MS0zNzM4fCg4MDIpNTYxLTY2MTcNCk5LMXwyfENvbnJhZF5Ed2lnaHR8Q0hEfDEzIEphbWFp
Y2EgUGxhY2VeXkxha2UgRm9yZXN0XkNBXjkyNjMwXlVTXkh8DQpQVjF8fEl8VzJXXlcyNTFeQXxF
fHx8MTleV0lHR1VNXlNBUkFIXl58MTReVkFOIEhPVVRFTl5NSUxMSE9VU0VeXnw4XlNJTVBTT05e
QkFSVF5efE1FRHx8fHwzfHwgfDA5MzU3MF5LQUxFQl5WQU5FU1NBXk18SXx8QU98MzF8fHx8fHx8
fHx8fHx8fHwiInx8fFNJTVBTT04gQ0xJTklDfHx8fHwyMDE1MDUyNDE4MzB8MjAxNTA1MjUxMTQ1
DQpQVjJ8fDMxfDE4MzBeRVhQTEFSQVRPUlkgTEFQfHx8fHwyMDE1MDUyNHx8fHwiInx8fHx8fHx8
fFYNCkdUMXwxfHxDb25yYWReSGVybWVzXl58Q29ucmFkXkxhQmFyYmFyYXwxMyBKYW1haWNhIFBs
YWNlXl5MYWtlIEZvcmVzdF5DQV45MjYzMF5VU15IfCg5NDkpIDU1NS0wMDQwfHwxOTY0MDIwMnxN
fHxTRUx8NzQxLTAxLTI2MDZ8fHx8UGxhbmV0IEV4cHJlc3N8MTM4OCBXLiBFbG0gU3QuXl5OZXcg
WW9ya15OWV4xNDQ2Nw0KSU4xfDF8MUhQNnwwRjMwfEdSRUFUIFdFU1QgUFBPIEN8fHx8fE9QRU4g
QUNDRVNTDQo=</inboundTemplate>
<outboundTemplate encoding="base64"></outboundTemplate>
<inboundDataType>HL7V2</inboundDataType>
<outboundDataType>HL7V2</outboundDataType>
<inboundProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2DataTypeProperties" version="3.8.0">
<serializationProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2SerializationProperties" version="3.8.0">
<handleRepetitions>true</handleRepetitions>
<handleSubcomponents>true</handleSubcomponents>
<useStrictParser>false</useStrictParser>
<useStrictValidation>false</useStrictValidation>
<stripNamespaces>true</stripNamespaces>
<segmentDelimiter>\r</segmentDelimiter>
<convertLineBreaks>true</convertLineBreaks>
</serializationProperties>
<deserializationProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2DeserializationProperties" version="3.8.0">
<useStrictParser>false</useStrictParser>
<useStrictValidation>false</useStrictValidation>
<segmentDelimiter>\r</segmentDelimiter>
</deserializationProperties>
<batchProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2BatchProperties" version="3.8.0">
<splitType>MSH_Segment</splitType>
<batchScript></batchScript>
</batchProperties>
<responseGenerationProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2ResponseGenerationProperties" version="3.8.0">
<segmentDelimiter>\r</segmentDelimiter>
<successfulACKCode>AA</successfulACKCode>
<successfulACKMessage></successfulACKMessage>
<errorACKCode>AE</errorACKCode>
<errorACKMessage>An Error Occurred Processing Message.</errorACKMessage>
<rejectedACKCode>AR</rejectedACKCode>
<rejectedACKMessage>Message Rejected.</rejectedACKMessage>
<msh15ACKAccept>false</msh15ACKAccept>
<dateFormat>yyyyMMddHHmmss.SSS</dateFormat>
</responseGenerationProperties>
<responseValidationProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2ResponseValidationProperties" version="3.8.0">
<successfulACKCode>AA,CA</successfulACKCode>
<errorACKCode>AE,CE</errorACKCode>
<rejectedACKCode>AR,CR</rejectedACKCode>
<validateMessageControlId>true</validateMessageControlId>
<originalMessageControlId>Destination_Encoded</originalMessageControlId>
<originalIdMapVariable></originalIdMapVariable>
</responseValidationProperties>
</inboundProperties>
<outboundProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2DataTypeProperties" version="3.8.0">
<serializationProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2SerializationProperties" version="3.8.0">
<handleRepetitions>true</handleRepetitions>
<handleSubcomponents>true</handleSubcomponents>
<useStrictParser>false</useStrictParser>
<useStrictValidation>false</useStrictValidation>
<stripNamespaces>true</stripNamespaces>
<segmentDelimiter>\r</segmentDelimiter>
<convertLineBreaks>true</convertLineBreaks>
</serializationProperties>
<deserializationProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2DeserializationProperties" version="3.8.0">
<useStrictParser>false</useStrictParser>
<useStrictValidation>false</useStrictValidation>
<segmentDelimiter>\r</segmentDelimiter>
</deserializationProperties>
<batchProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2BatchProperties" version="3.8.0">
<splitType>MSH_Segment</splitType>
<batchScript></batchScript>
</batchProperties>
<responseGenerationProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2ResponseGenerationProperties" version="3.8.0">
<segmentDelimiter>\r</segmentDelimiter>
<successfulACKCode>AA</successfulACKCode>
<successfulACKMessage></successfulACKMessage>
<errorACKCode>AE</errorACKCode>
<errorACKMessage>An Error Occurred Processing Message.</errorACKMessage>
<rejectedACKCode>AR</rejectedACKCode>
<rejectedACKMessage>Message Rejected.</rejectedACKMessage>
<msh15ACKAccept>false</msh15ACKAccept>
<dateFormat>yyyyMMddHHmmss.SSS</dateFormat>
</responseGenerationProperties>
<responseValidationProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2ResponseValidationProperties" version="3.8.0">
<successfulACKCode>AA,CA</successfulACKCode>
<errorACKCode>AE,CE</errorACKCode>
<rejectedACKCode>AR,CR</rejectedACKCode>
<validateMessageControlId>true</validateMessageControlId>
<originalMessageControlId>Destination_Encoded</originalMessageControlId>
<originalIdMapVariable></originalIdMapVariable>
</responseValidationProperties>
</outboundProperties>
</transformer>
<responseTransformer version="3.8.0">
<elements/>
<inboundDataType>HL7V2</inboundDataType>
<outboundDataType>HL7V2</outboundDataType>
<inboundProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2DataTypeProperties" version="3.8.0">
<serializationProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2SerializationProperties" version="3.8.0">
<handleRepetitions>true</handleRepetitions>
<handleSubcomponents>true</handleSubcomponents>
<useStrictParser>false</useStrictParser>
<useStrictValidation>false</useStrictValidation>
<stripNamespaces>true</stripNamespaces>
<segmentDelimiter>\r</segmentDelimiter>
<convertLineBreaks>true</convertLineBreaks>
</serializationProperties>
<deserializationProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2DeserializationProperties" version="3.8.0">
<useStrictParser>false</useStrictParser>
<useStrictValidation>false</useStrictValidation>
<segmentDelimiter>\r</segmentDelimiter>
</deserializationProperties>
<batchProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2BatchProperties" version="3.8.0">
<splitType>MSH_Segment</splitType>
<batchScript></batchScript>
</batchProperties>
<responseGenerationProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2ResponseGenerationProperties" version="3.8.0">
<segmentDelimiter>\r</segmentDelimiter>
<successfulACKCode>AA</successfulACKCode>
<successfulACKMessage></successfulACKMessage>
<errorACKCode>AE</errorACKCode>
<errorACKMessage>An Error Occurred Processing Message.</errorACKMessage>
<rejectedACKCode>AR</rejectedACKCode>
<rejectedACKMessage>Message Rejected.</rejectedACKMessage>
<msh15ACKAccept>false</msh15ACKAccept>
<dateFormat>yyyyMMddHHmmss.SSS</dateFormat>
</responseGenerationProperties>
<responseValidationProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2ResponseValidationProperties" version="3.8.0">
<successfulACKCode>AA,CA</successfulACKCode>
<errorACKCode>AE,CE</errorACKCode>
<rejectedACKCode>AR,CR</rejectedACKCode>
<validateMessageControlId>true</validateMessageControlId>
<originalMessageControlId>Destination_Encoded</originalMessageControlId>
<originalIdMapVariable></originalIdMapVariable>
</responseValidationProperties>
</inboundProperties>
<outboundProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2DataTypeProperties" version="3.8.0">
<serializationProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2SerializationProperties" version="3.8.0">
<handleRepetitions>true</handleRepetitions>
<handleSubcomponents>true</handleSubcomponents>
<useStrictParser>false</useStrictParser>
<useStrictValidation>false</useStrictValidation>
<stripNamespaces>true</stripNamespaces>
<segmentDelimiter>\r</segmentDelimiter>
<convertLineBreaks>true</convertLineBreaks>
</serializationProperties>
<deserializationProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2DeserializationProperties" version="3.8.0">
<useStrictParser>false</useStrictParser>
<useStrictValidation>false</useStrictValidation>
<segmentDelimiter>\r</segmentDelimiter>
</deserializationProperties>
<batchProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2BatchProperties" version="3.8.0">
<splitType>MSH_Segment</splitType>
<batchScript></batchScript>
</batchProperties>
<responseGenerationProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2ResponseGenerationProperties" version="3.8.0">
<segmentDelimiter>\r</segmentDelimiter>
<successfulACKCode>AA</successfulACKCode>
<successfulACKMessage></successfulACKMessage>
<errorACKCode>AE</errorACKCode>
<errorACKMessage>An Error Occurred Processing Message.</errorACKMessage>
<rejectedACKCode>AR</rejectedACKCode>
<rejectedACKMessage>Message Rejected.</rejectedACKMessage>
<msh15ACKAccept>false</msh15ACKAccept>
<dateFormat>yyyyMMddHHmmss.SSS</dateFormat>
</responseGenerationProperties>
<responseValidationProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2ResponseValidationProperties" version="3.8.0">
<successfulACKCode>AA,CA</successfulACKCode>
<errorACKCode>AE,CE</errorACKCode>
<rejectedACKCode>AR,CR</rejectedACKCode>
<validateMessageControlId>true</validateMessageControlId>
<originalMessageControlId>Destination_Encoded</originalMessageControlId>
<originalIdMapVariable></originalIdMapVariable>
</responseValidationProperties>
</outboundProperties>
</responseTransformer>
<filter version="3.8.0">
<elements>
<com.mirth.connect.plugins.rulebuilder.RuleBuilderRule version="3.8.0">
<name>Accept message if "msg['MSH']['MSH.4']['MSH.4.1'].toString().toUpperCase()" equals "HOSPITAL A"</name>
<sequenceNumber>0</sequenceNumber>
<enabled>true</enabled>
<field>msg['MSH']['MSH.4']['MSH.4.1'].toString().toUpperCase()</field>
<condition>EQUALS</condition>
<values>
<string>"HOSPITAL B"</string>
</values>
</com.mirth.connect.plugins.rulebuilder.RuleBuilderRule>
</elements>
</filter>
<transportName>File Writer</transportName>
<mode>DESTINATION</mode>
<enabled>true</enabled>
<waitForPrevious>true</waitForPrevious>
</connector>
<connector version="3.8.0">
<metaDataId>2</metaDataId>
<name>Hospital B</name>
<properties class="com.mirth.connect.connectors.file.FileDispatcherProperties" version="3.8.0">
<pluginProperties/>
<destinationConnectorProperties version="3.8.0">
<queueEnabled>false</queueEnabled>
<sendFirst>false</sendFirst>
<retryIntervalMillis>10000</retryIntervalMillis>
<regenerateTemplate>false</regenerateTemplate>
<retryCount>0</retryCount>
<rotate>false</rotate>
<includeFilterTransformer>false</includeFilterTransformer>
<threadCount>1</threadCount>
<threadAssignmentVariable></threadAssignmentVariable>
<validateResponse>false</validateResponse>
<resourceIds class="linked-hash-map">
<entry>
<string>Default Resource</string>
<string>[Default Resource]</string>
</entry>
</resourceIds>
<queueBufferSize>1000</queueBufferSize>
<reattachAttachments>true</reattachAttachments>
</destinationConnectorProperties>
<scheme>FILE</scheme>
<host>C:/Users/eslia/Desktop/Mirth Connect/Training/Hospital B</host>
<outputPattern>${UUID}.txt</outputPattern>
<anonymous>true</anonymous>
<username>anonymous</username>
<password>anonymous</password>
<timeout>10000</timeout>
<keepConnectionOpen>true</keepConnectionOpen>
<maxIdleTime>0</maxIdleTime>
<secure>true</secure>
<passive>true</passive>
<validateConnection>true</validateConnection>
<outputAppend>true</outputAppend>
<errorOnExists>false</errorOnExists>
<temporary>false</temporary>
<binary>false</binary>
<charsetEncoding>DEFAULT_ENCODING</charsetEncoding>
<template>${message.encodedData}</template>
</properties>
<transformer version="3.8.0">
<elements/>
<inboundTemplate encoding="base64">TVNIfF5+XCZ8QURUU0VOREVSfEhvc3BpdGFsIEF8fHwyMDE1MDYwMTEzMjMyM3x8QURUXkEwM3xI
Q09OUkFELTAwNDB8VHwyLjJ8ODA5Mg0KRVZOfEEwM3wyMDE1MDYwMTEzMjMyM3x8fG1yLmNmYXIN
ClBJRHx8ODgwMDQwfDg4MDA0MHx8Q29ucmFkXkhlcm1lc15efHwxOTY0MDIwMnxNfHwyMDU0LTV8
MTMgSmFtYWljYSBQbGFjZV5eTGFrZSBGb3Jlc3ReQ0FeOTI2MzBeVVNeSHx8KDk0OSkgNTU1LTAw
NDBeXkhPTUUgU09+fHxFTkd8UHxPVEh8MDA0MHw3NDEtMDEtMjYwNnx8DQpOSzF8MXxDb25yYWRe
TGFCYXJiYXJhfFNQT3wxMjMgT0FLIEFWRU5VRV5BUFQuIDRBXklSVklORV5DQV45MjYxMnwoMjI1
KTM1MS0zNzM4fCg4MDIpNTYxLTY2MTcNCk5LMXwyfENvbnJhZF5Ed2lnaHR8Q0hEfDEzIEphbWFp
Y2EgUGxhY2VeXkxha2UgRm9yZXN0XkNBXjkyNjMwXlVTXkh8DQpQVjF8fEl8VzJXXlcyNTFeQXxF
fHx8MTleV0lHR1VNXlNBUkFIXl58MTReVkFOIEhPVVRFTl5NSUxMSE9VU0VeXnw4XlNJTVBTT05e
QkFSVF5efE1FRHx8fHwzfHwgfDA5MzU3MF5LQUxFQl5WQU5FU1NBXk18SXx8QU98MzF8fHx8fHx8
fHx8fHx8fHwiInx8fFNJTVBTT04gQ0xJTklDfHx8fHwyMDE1MDUyNDE4MzB8MjAxNTA1MjUxMTQ1
DQpQVjJ8fDMxfDE4MzBeRVhQTEFSQVRPUlkgTEFQfHx8fHwyMDE1MDUyNHx8fHwiInx8fHx8fHx8
fFYNCkdUMXwxfHxDb25yYWReSGVybWVzXl58Q29ucmFkXkxhQmFyYmFyYXwxMyBKYW1haWNhIFBs
YWNlXl5MYWtlIEZvcmVzdF5DQV45MjYzMF5VU15IfCg5NDkpIDU1NS0wMDQwfHwxOTY0MDIwMnxN
fHxTRUx8NzQxLTAxLTI2MDZ8fHx8UGxhbmV0IEV4cHJlc3N8MTM4OCBXLiBFbG0gU3QuXl5OZXcg
WW9ya15OWV4xNDQ2Nw0KSU4xfDF8MUhQNnwwRjMwfEdSRUFUIFdFU1QgUFBPIEN8fHx8fE9QRU4g
QUNDRVNTDQo=</inboundTemplate>
<outboundTemplate encoding="base64"></outboundTemplate>
<inboundDataType>HL7V2</inboundDataType>
<outboundDataType>HL7V2</outboundDataType>
<inboundProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2DataTypeProperties" version="3.8.0">
<serializationProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2SerializationProperties" version="3.8.0">
<handleRepetitions>true</handleRepetitions>
<handleSubcomponents>true</handleSubcomponents>
<useStrictParser>false</useStrictParser>
<useStrictValidation>false</useStrictValidation>
<stripNamespaces>true</stripNamespaces>
<segmentDelimiter>\r</segmentDelimiter>
<convertLineBreaks>true</convertLineBreaks>
</serializationProperties>
<deserializationProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2DeserializationProperties" version="3.8.0">
<useStrictParser>false</useStrictParser>
<useStrictValidation>false</useStrictValidation>
<segmentDelimiter>\r</segmentDelimiter>
</deserializationProperties>
<batchProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2BatchProperties" version="3.8.0">
<splitType>MSH_Segment</splitType>
<batchScript></batchScript>
</batchProperties>
<responseGenerationProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2ResponseGenerationProperties" version="3.8.0">
<segmentDelimiter>\r</segmentDelimiter>
<successfulACKCode>AA</successfulACKCode>
<successfulACKMessage></successfulACKMessage>
<errorACKCode>AE</errorACKCode>
<errorACKMessage>An Error Occurred Processing Message.</errorACKMessage>
<rejectedACKCode>AR</rejectedACKCode>
<rejectedACKMessage>Message Rejected.</rejectedACKMessage>
<msh15ACKAccept>false</msh15ACKAccept>
<dateFormat>yyyyMMddHHmmss.SSS</dateFormat>
</responseGenerationProperties>
<responseValidationProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2ResponseValidationProperties" version="3.8.0">
<successfulACKCode>AA,CA</successfulACKCode>
<errorACKCode>AE,CE</errorACKCode>
<rejectedACKCode>AR,CR</rejectedACKCode>
<validateMessageControlId>true</validateMessageControlId>
<originalMessageControlId>Destination_Encoded</originalMessageControlId>
<originalIdMapVariable></originalIdMapVariable>
</responseValidationProperties>
</inboundProperties>
<outboundProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2DataTypeProperties" version="3.8.0">
<serializationProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2SerializationProperties" version="3.8.0">
<handleRepetitions>true</handleRepetitions>
<handleSubcomponents>true</handleSubcomponents>
<useStrictParser>false</useStrictParser>
<useStrictValidation>false</useStrictValidation>
<stripNamespaces>true</stripNamespaces>
<segmentDelimiter>\r</segmentDelimiter>
<convertLineBreaks>true</convertLineBreaks>
</serializationProperties>
<deserializationProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2DeserializationProperties" version="3.8.0">
<useStrictParser>false</useStrictParser>
<useStrictValidation>false</useStrictValidation>
<segmentDelimiter>\r</segmentDelimiter>
</deserializationProperties>
<batchProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2BatchProperties" version="3.8.0">
<splitType>MSH_Segment</splitType>
<batchScript></batchScript>
</batchProperties>
<responseGenerationProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2ResponseGenerationProperties" version="3.8.0">
<segmentDelimiter>\r</segmentDelimiter>
<successfulACKCode>AA</successfulACKCode>
<successfulACKMessage></successfulACKMessage>
<errorACKCode>AE</errorACKCode>
<errorACKMessage>An Error Occurred Processing Message.</errorACKMessage>
<rejectedACKCode>AR</rejectedACKCode>
<rejectedACKMessage>Message Rejected.</rejectedACKMessage>
<msh15ACKAccept>false</msh15ACKAccept>
<dateFormat>yyyyMMddHHmmss.SSS</dateFormat>
</responseGenerationProperties>
<responseValidationProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2ResponseValidationProperties" version="3.8.0">
<successfulACKCode>AA,CA</successfulACKCode>
<errorACKCode>AE,CE</errorACKCode>
<rejectedACKCode>AR,CR</rejectedACKCode>
<validateMessageControlId>true</validateMessageControlId>
<originalMessageControlId>Destination_Encoded</originalMessageControlId>
<originalIdMapVariable></originalIdMapVariable>
</responseValidationProperties>
</outboundProperties>
</transformer>
<responseTransformer version="3.8.0">
<elements/>
<inboundDataType>HL7V2</inboundDataType>
<outboundDataType>HL7V2</outboundDataType>
<inboundProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2DataTypeProperties" version="3.8.0">
<serializationProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2SerializationProperties" version="3.8.0">
<handleRepetitions>true</handleRepetitions>
<handleSubcomponents>true</handleSubcomponents>
<useStrictParser>false</useStrictParser>
<useStrictValidation>false</useStrictValidation>
<stripNamespaces>true</stripNamespaces>
<segmentDelimiter>\r</segmentDelimiter>
<convertLineBreaks>true</convertLineBreaks>
</serializationProperties>
<deserializationProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2DeserializationProperties" version="3.8.0">
<useStrictParser>false</useStrictParser>
<useStrictValidation>false</useStrictValidation>
<segmentDelimiter>\r</segmentDelimiter>
</deserializationProperties>
<batchProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2BatchProperties" version="3.8.0">
<splitType>MSH_Segment</splitType>
<batchScript></batchScript>
</batchProperties>
<responseGenerationProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2ResponseGenerationProperties" version="3.8.0">
<segmentDelimiter>\r</segmentDelimiter>
<successfulACKCode>AA</successfulACKCode>
<successfulACKMessage></successfulACKMessage>
<errorACKCode>AE</errorACKCode>
<errorACKMessage>An Error Occurred Processing Message.</errorACKMessage>
<rejectedACKCode>AR</rejectedACKCode>
<rejectedACKMessage>Message Rejected.</rejectedACKMessage>
<msh15ACKAccept>false</msh15ACKAccept>
<dateFormat>yyyyMMddHHmmss.SSS</dateFormat>
</responseGenerationProperties>
<responseValidationProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2ResponseValidationProperties" version="3.8.0">
<successfulACKCode>AA,CA</successfulACKCode>
<errorACKCode>AE,CE</errorACKCode>
<rejectedACKCode>AR,CR</rejectedACKCode>
<validateMessageControlId>true</validateMessageControlId>
<originalMessageControlId>Destination_Encoded</originalMessageControlId>
<originalIdMapVariable></originalIdMapVariable>
</responseValidationProperties>
</inboundProperties>
<outboundProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2DataTypeProperties" version="3.8.0">
<serializationProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2SerializationProperties" version="3.8.0">
<handleRepetitions>true</handleRepetitions>
<handleSubcomponents>true</handleSubcomponents>
<useStrictParser>false</useStrictParser>
<useStrictValidation>false</useStrictValidation>
<stripNamespaces>true</stripNamespaces>
<segmentDelimiter>\r</segmentDelimiter>
<convertLineBreaks>true</convertLineBreaks>
</serializationProperties>
<deserializationProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2DeserializationProperties" version="3.8.0">
<useStrictParser>false</useStrictParser>
<useStrictValidation>false</useStrictValidation>
<segmentDelimiter>\r</segmentDelimiter>
</deserializationProperties>
<batchProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2BatchProperties" version="3.8.0">
<splitType>MSH_Segment</splitType>
<batchScript></batchScript>
</batchProperties>
<responseGenerationProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2ResponseGenerationProperties" version="3.8.0">
<segmentDelimiter>\r</segmentDelimiter>
<successfulACKCode>AA</successfulACKCode>
<successfulACKMessage></successfulACKMessage>
<errorACKCode>AE</errorACKCode>
<errorACKMessage>An Error Occurred Processing Message.</errorACKMessage>
<rejectedACKCode>AR</rejectedACKCode>
<rejectedACKMessage>Message Rejected.</rejectedACKMessage>
<msh15ACKAccept>false</msh15ACKAccept>
<dateFormat>yyyyMMddHHmmss.SSS</dateFormat>
</responseGenerationProperties>
<responseValidationProperties class="com.mirth.connect.plugins.datatypes.hl7v2.HL7v2ResponseValidationProperties" version="3.8.0">
<successfulACKCode>AA,CA</successfulACKCode>
<errorACKCode>AE,CE</errorACKCode>
<rejectedACKCode>AR,CR</rejectedACKCode>
<validateMessageControlId>true</validateMessageControlId>
<originalMessageControlId>Destination_Encoded</originalMessageControlId>
<originalIdMapVariable></originalIdMapVariable>
</responseValidationProperties>
</outboundProperties>
</responseTransformer>
<filter version="3.8.0">
<elements>
<com.mirth.connect.plugins.rulebuilder.RuleBuilderRule version="3.8.0">
<name>Accept message if "msg['MSH']['MSH.4']['MSH.4.1'].toString().toUpperCase()" equals "HOSPITAL A"</name>
<sequenceNumber>0</sequenceNumber>
<enabled>true</enabled>
<field>msg['MSH']['MSH.4']['MSH.4.1'].toString().toUpperCase()</field>
<condition>EQUALS</condition>
<values>
<string>"HOSPITAL A"</string>
</values>
</com.mirth.connect.plugins.rulebuilder.RuleBuilderRule>
</elements>
</filter>
<transportName>File Writer</transportName>
<mode>DESTINATION</mode>
<enabled>true</enabled>
<waitForPrevious>true</waitForPrevious>
</connector>
</destinationConnectors>
<preprocessingScript>// Modify the message variable below to pre process data
return message;</preprocessingScript>
<postprocessingScript>// This script executes once after a message has been processed
// Responses returned from here will be stored as "Postprocessor" in the response map
return;</postprocessingScript>
<deployScript>// This script executes once when the channel is deployed
// You only have access to the globalMap and globalChannelMap here to persist data
return;</deployScript>
<undeployScript>// This script executes once when the channel is undeployed
// You only have access to the globalMap and globalChannelMap here to persist data
return;</undeployScript>
<properties version="3.8.0">
<clearGlobalChannelMap>true</clearGlobalChannelMap>
<messageStorageMode>DEVELOPMENT</messageStorageMode>
<encryptData>false</encryptData>
<removeContentOnCompletion>false</removeContentOnCompletion>
<removeOnlyFilteredOnCompletion>false</removeOnlyFilteredOnCompletion>
<removeAttachmentsOnCompletion>false</removeAttachmentsOnCompletion>
<initialState>STARTED</initialState>
<storeAttachments>true</storeAttachments>
<metaDataColumns>
<metaDataColumn>
<name>SOURCE</name>
<type>STRING</type>
<mappingName>mirth_source</mappingName>
</metaDataColumn>
<metaDataColumn>
<name>TYPE</name>
<type>STRING</type>
<mappingName>mirth_type</mappingName>
</metaDataColumn>
</metaDataColumns>
<attachmentProperties version="3.8.0">
<type>None</type>
<properties/>
</attachmentProperties>
<resourceIds class="linked-hash-map">
<entry>
<string>Default Resource</string>
<string>[Default Resource]</string>
</entry>
</resourceIds>
</properties>
<exportData>
<metadata>
<enabled>true</enabled>
<lastModified>
<time>1564595507910</time>
<timezone>America/New_York</timezone>
</lastModified>
<pruningSettings>
<pruneMetaDataDays>1</pruneMetaDataDays>
<archiveEnabled>true</archiveEnabled>
</pruningSettings>
</metadata>
</exportData>
</channel>