From: Archie C. <ar...@de...> - 2004-08-24 17:55:26
|
Archie Cobbs wrote: > I've just upgraded to 0.4.2 and am encountering some problems. > I've also just switched to a new HL7 feed so some of these problems > may be related to that switch as well. > > #1: Infinite loops > > I'm receiving some ADT^A24 messages that seem to contain > no PID segments (which is wrong I think). In any case, they > send the HL7 server into an infinite loop when it tries to > parse them! See log trace below. Oddly, when I cut & paste > the same message into the Message Tester Swing app, it seems > to parse it fine. Oops, correction: the ADT^A24 is properly formatted and does contain the required PID segments. I was missing the latter half of the message with cut&paste because of the carriage returns without linefeeds. Also, the Message Tester Swing app goes into an infinite loop (ie., hangs) also when trying to parse this message. I've attached a sanitized version below of a message that causes this loop. -Archie __________________________________________________________________________ Archie Cobbs * CTO, Awarix * http://www.awarix.com MSH|^~\&|ST01|S|IM|S|20040824090059||ADT^A24|177588|P|2.2|177588||AL|||||||2.2b EVN|A24|20040824090059|||ADS PID|1|HNE1111111111^^^NE^PE|~11111111^^^ST01^PI||XXXXXXX^XXXXX^""^""||11111111|M||1|11 MAIN STREET #11^^SOMECITYX^AL^12345^USA^P^AL111||(111)111-1111|(111)111-1111|E^ENGLISH^HL11111^E^ENGLISH^111111|M|CHR||111-11-1111|||||N|||N|||N|N|||||||||||||||||||N PD1||||||||||||||514^CHR NO CHURCH SPECIFIED^99CHR PV1|1|P|""|3|||111111^XXXXXX^XXXXXXX^""^^^MD^HL11111||""|PAI||||1|||111111^XXXXXX^XXXXXXX^""^^^MD^HL11111|OSS||L|||||||||||||||||||S||0|||123123123123||||||1231231231^^^ST01S^TN PID|2||123123123123^^^ST01S^MR||XXXXXXX^XXXXX^""^""||11111111|M||1|11 MAIN STREED #11^^SOMECITYX^AL^12345^USA^P^AL115||(111)111-1111|(111)111-1111|E^ENGLISH^HL11111^E^ENGLISH^99CLAN|M|CHR||111-11-1111|||||N|||N|||N|N|||||||||||||||||||N PD1||||||||||||||514^CHR NO CHURCH SPECIFIED^99CHR PV1|2|P|""|3|||111111^XXXXXX^XXXXXXX^""^^^MD^HL11111||""|PAI||||1|||111111^XXXXXX^XXXXXXX^""^^^MD^HL11111|OSS||L|||||||||||||||||||S||0|||111111111111||||||1111111111^^^ST01S^TN |