From: <ni...@sk...> - 2004-10-28 18:57:52
|
Hi Court, I don't have the documentation of HL7 v2.1 but I'm afraid that your message is not correct. Normally you can only have 1 PID segment and 1 PV1 segment in a A05 message (at least in v2.5). I think that's the cause of the strange behaviour of HAPI... Best Regards Nico I found that in this particular case, the order of the segments matters. The DG1 segment was being recognized were is existed in the message, but a placeholder was being put immediately following the PV1 segment where hl7api thought it should be. My next question is where is this structure defined and can it be relaxed as I am receiving messages from another interface and can't control the order of the segments? Thank you, Court -----Original Message----- From: Shrock, Court [mailto:Sh...@in...] Sent: Thursday, October 28, 2004 10:47 AM To: 'hl7...@li...' Subject: [HAPI-devel] Peculiar parse of a valid HL7 message in TestPanel When using the HL7 message below, the TestPanel parses the message with 2 DG1 segments, the first being an empty node and the second containing the actual data. This is curious because a call to terser.get(\"/DG1-2\") and terser.get(\"/DG1-4\") return nothing with this particular message. I have noticed that is doesn't just happen with the DG1 segments either. I've seen happen with the PV1 segments as well. Any ideas/leads from an experienced hand? Thanks, Court MSH|^~\\\\&|ADM|SHM|ALL|ALL|200410271610||ADT^A05|ADM-HUB.1.48134|D|2.1 EVN|A05||||TWB PID|1|Z4935|Z000004983||TESTSHM^TWB^^^^|NINETYNINE,AGENT|19621212|M|DANG PID|1|Z4935|Z000004983||ER^N ICK^^^^|1|7856 W EAST^^SPOKANE^WA^99208|SPO-WA|509 789-0978|509 474-3131||D|AG|Z00006154|890-23-4568 NK1|1|NOK MOM |MO|4523 N SOUTH^^SPOKANE^WA^99205|890 123-4568 PV1|1|P|Z.7S^^|EL|||MABRO^Mabunga^Rogelio^^^^|NADDA^Nadig^Daniel^^^^||ME PV1|1|P|DN|| ||A|||LABSY^Labes^Sylvia^^^^|IN||MSCV|||||||||||||||||||SHM||PRE|||20041 ||A|||0281 610 IN1|1|MSC||MSC PREMERA|PO BOX 3048^^SPOKANE^WA^99220-3048||509 536-4500|||||20041201|20091203|||TESTSHM^TWB^^^^|SP||||||||||||||||||321 536-4500|||||20041201|20091203|||6549 87|123456789 GT1|1||TESTSHM^TWB^^^^||7856 W EAST^^SPOKANE^WA^99208|509 789-0978|||||SP|890-23-4568||||SHMC|W 101 8TH, BOX TAC F-9^^SPOKANE^WA^99220|509 474-3131||FT DG1|1|TX||test a23 ZV1|^^^^|AALSUE^Aalgard^Sue^^^^|DABRA^Dabalos^Rodolfo^A^^^|||||PTN^DAD^^ ZV1|^^|F A|7531 N SOUTH^^SPOKANE^WA^99203|758 632-4512|TESTER|TESTER|SACRED HEART MEDICAL CENTER|W 101 8TH, BOX TAC F-9^^SPOKANE^WA^99220 ------------------------------------------------------- This Newsletter Sponsored by: Macrovision For reliable Linux application installations, use the industry's leading setup authoring tool, InstallShield X. Learn more and evaluate today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/ _______________________________________________ Hl7api-devel mailing list Hl7...@li... https://lists.sourceforge.net/lists/listinfo/hl7api-devel ------------------------------------------------------- This Newsletter Sponsored by: Macrovision For reliable Linux application installations, use the industry's leading setup authoring tool, InstallShield X. Learn more and evaluate today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/ _______________________________________________ Hl7api-devel mailing list Hl7...@li... https://lists.sourceforge.net/lists/listinfo/hl7api-devel |