I've created both a small client and server using hapi. For every one of my messages I receive the following error back from the server. I've pulled several different request/response messages off the net and all result in this message. It appears as if whatever response I create it is always replaced with an ack containing an error. I'm registering an application (that implements Application) with the SimpleServer.
received:MSH|^~\&|||||20080429153502.677-0600||ACK|112|D|2.3
MSA|AE|360629|Error internally routing message: ca.uhn.hl7v2.model.DataTypeException: Failed v
ERR|^^^207&Application Internal Error&HL70357
------------------------------------------------------------
Sample client message:
------------------------------------------------------------
Message tmp = null;
String msg;
Parser p = new GenericParser();
// test msg 1
msg = "MSH|^~\\&|KIS||CommServer||200611111017||QRY^A19|ctrl999|P|2.3\r"
+ "QRD|200611111016|R|I|Q1004|||1^RD|10000437363|DEM|||";
tmp = p.parse(msg);
Initiator initiator = connection.getInitiator();
response = initiator.sendAndReceive(tmp);
------------------------------------------------------------
Sample server response:
------------------------------------------------------------
String msgString = "MSH|^~\\&|CommServer||KIS||200611111017||ADR^A19|ctrl999|P|2.3\r"
+ "MSA|AA\r"
+ "QRD|200611111016|R|I|Q1004|||1^RD|10000437363|DEM\r"
+ "PID|||10000437363|508003|Bauer^Fritz^^^||19631101|M|||Mercedesstr 12^^Bergheim^^68123^D|||||M|\r"
+ "NK1|1|Bauer^Karin|Ehefrau\r"
+ "PV1||S|CHI1^2W^1^CHI|R||||20 56 344^Antonius^ Markus^^^Dr.med.^^^Konigstr. 112^69939^Haarheim/M.^06146^61011|20 56 344^Antonius^Markus^^^Dr.med.^^^Konigstr. 112^69939^Haarheim/M.^06146^61011|N|||||||||9800703||K|||||||||||||||||||||||200311110928\r"
+ "DG1|1||355.9^355.9 Neuropathie onA^I9|||EL|||||||||1\r"
+ "DG1|2||386.-^386.- Schwindel^I9|||EL|||||||||2\r"
+ "DG1|3||087.9^087.9 Borreliose^I9|||EL|||||||||3\r"
+ "PR1|1||1-502.6^1-502.6 Biopsie durch Inzision am Unterschenkel^ICPM||20031107|P\r"
+ "PR1|2||5-940^5-940 Operationslagerung^ICPM|||P\r"
+ "PR1|3||5-900^5-900 Einfache Wiederherstellung der Kontinuität an Haut und Unterhaut^ICPM|||P\r"
+ "IN1|1|0||NAK|Innenstr. 52 ^^Hannover^^30014||||||||207714 ||10035|Bauer^Fritz||19631101|Mercedesstr 12^^Bergheim^^68123\r";
Parser p = new GenericParser();
Message msg = p.parse(msgString);
// msg is returned by processMessage().
Anyone know why I get the "Internal Error" message?
Thanks in advance.