Hi, Not sure but don't you have tried to remove the double "\" in your MSH-1 ? Good luck
GHOPE1 a écrit : > 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. > -- Yves VIOT C.S.I.S. 130 rue Eugene POTTIER 35200 RENNES Mail :[EMAIL PROTECTED] T(Direct) :0952-170-963 (non surtaxé) T(Siège) :02-23-35-43-55 F(Siège) :02-23-35-43-56 ________________ CONFIDENTIALITE : Ce message et les éventuelles pièces attachées sont confidentiels. Si vous n'êtes pas dans la liste des destinataires, veuillez informer l'expéditeur immédiatement et ne pas divulguer le contenu à une tierce personne, ne pas l'utiliser pour quelque raison que ce soit, ne pas stocker ou copier l'information qu'il contient sur un quelconque support. ------------------------------------------------------------------------- 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

