Hi folks,
I'm having problems transmitting and receiving a message of type ADT_A31.
Here is the test message I'm trying to send:
String msg =
"MSH|^~\\&|RHAPSODY|HOEFT|Therapies|Therapies|2007080215381000000000||ADT^A31|26106430.1.1.1.1.1.1.1|P|2.3|||AL|ER||ASCII|\"\""
+ "EVN|A31|2007080215381000000000"
+
"PID||N427962|800427962^^^01||PATIENT^TEST^^^||19581208000000|M|||ADDR1^ADDR2^ADDR3^ADDR4^PCODE||111
1111^^PH|^^PH||2|C/E||4788311593|||Z||||||||0"
+ "PD1|||M85038^^M85038^1~M85~038~01|G8510921"
+ "PV1||1";
For some reason, when I try to transmit this message I get the message back:
"INFO: Instantiating msg of class ca.uhn.hl7v2.model.v23.message.ADT_A01"
and then all sorts of stuff like...
"INFO: Initiator received message:
MSH|^~\&|||||20080318112940.601+0000||ACK|99|P|2.3
MSA|AE|26106430.1.1.1.1.1.1.1|Can't encode message: MSH-1 (field separator)
is missing
ERR|^^^207&&hl70357&&Can't encode message: MSH-1 (field separator) is
missing"
etc.
Shouldn't it be saying it's instantiating a message of type ADT_A31 instead?
The same goes when I try to transmit an ADT_A28 message too.
The thing is, I'm transmitting and recieving messages of type OMG_019 and
ORU-R01 fine. But these other two types I'm having really big problems with.
Any help would be much appreciated!
Cheers
Nick.
--
View this message in context:
http://www.nabble.com/Parsing-ADT_A31-and-ADT_A28-messages-tp16119499p16119499.html
Sent from the hl7api-devel mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel