Mirth Connect 3.1.1
Windows 8
Java 7
I'm trying to split an file into multiple messages using the Batch Javascript but dont succeed.
This is the input file:
I tried several things using the JavaScript Batch but I only succeed in creating a loop which passes on thousants of messages to the destination connectors.
Anyone any idea how to split this file into two messages splitting it on UNB?
Windows 8
Java 7
I'm trying to split an file into multiple messages using the Batch Javascript but dont succeed.
This is the input file:
Code:
UNB+UNOA:1+50001111+50002222+150119:1110+20150119111054'
UNH+20150119111054+MEDSPE:1:0'
ART:1+H+999999+Huisartsenpraktijk H::'
ART:2+S+999999+oogartsc'
SPE+Oogheelkunde+oogartsc'
ZKH+asery+Postbus:1::wwww:1111AA+'
AFD+Secretariaat'
PID+1955:03:11+M+:::VAN::B++'
PAD+:83:::'
DET+15:01:16'
TXT:1+Linkeroog?: Geen Diab. Retinopathie, Foto over 2 jaar'
TXT:2+Rechteroog?: Geen Diab. Retinopathie, Foto over 2 jaar'
UNT+12+20150119111054'
UNZ+1+20150119111054'
UNB+UNOA:1+50001111+50004444+150119:1110+20150119111055'
UNH+20150119111055+MEDSPE:1:0'
ART:1+H+999999+Huisartsenpraktijk ::'
ART:2+S+999999+oogartsenh'
SPE+Oogheelkunde+oogartsenh'
ZKH++Postbus::::+'
AFD+Secretariaat'
PID+1966:01:23+V+:::::G++'
PAD+:27:::'
DET+15:01:13'
TXT:1+Linkeroog?: Geen Diab. Retinopathie, Foto over 2 jaar'
TXT:2+Rechteroog?: Geen Diab. Retinopathie, Foto over 2 jaar'
UNT+12+20150119111055'
UNZ+1+20150119111055'
I tried several things using the JavaScript Batch but I only succeed in creating a loop which passes on thousants of messages to the destination connectors.
Anyone any idea how to split this file into two messages splitting it on UNB?
Multiple lines split with Batch javascript
0 commentaires:
Enregistrer un commentaire