From: Ester C. <ES...@co...> - 2003-04-24 21:54:59
|
Please someone response -----Original Message----- From: Thomas J Lukasik [mailto:tlu...@da...] Sent: Thursday, April 24, 2003 6:10 PM To: Ester Cohen Subject: Fw: HAPI ----- Original Message ----- From: Tom <mailto:tlu...@da...> To: bry...@so... <mailto:bry...@so...> Cc: Ester Cohen <mailto:ES...@co...> Sent: Wednesday, February 05, 2003 11:41 PM Subject: HAPI Bryan, I've run into a serious problem with HAPI and wondered if you might be willing to help. Specifically, HAPI doesn't appear to parse RDT segments correctly; only the first "column value" is displayed. HAPI rejects all of the remaining column values as "unexpected fields". Here is an example of the HL7 message: MSH|^~\&|SA1|SF1|RA1|RA2|20030205|SEC|TBR^R08^TBR_R08|MSG99001|P|2.4 MSA|AA|MSG00001 QAK|TAG0001|OK RDF|12|acc.number^ST^20~name^ST^30~admit.date^ST^8~sex^ST^1~pat.street^ST^30 ~pat.street2^ST^30~pat.city^ST^20~pat.state^ST^2~pat.zip^ST^9~soc.sec.number ^ST^11~urn^ST^20 RDT|12345678|SYSTEMS,IATRIC|20021215|F|81920|105 Maple St.||Lancaster|PA|19786|156-96-2542|23 RDT|36377281|I AM,SAM|20021105|M|381992|166 Norwood Ln.||Hershey|PA|19987|765-58-4615|783 RDT|36735546|MAN,SPIDER|20021201|F|83719|15 Elmwood Ct.|Apt. 15|Gap|PA|19724|58-96-7619|119 RDT|18292938|BUNNY,BUGS|20021225|M|8837|903 Diane Circle||Phoenixville|PA|19460|156-96-2542|324 I've concluded that the problem is rooted in the fact that the HL7 folks decided to use a "single, repeating field" to represent "n" columns of data rather than a true single field as they do to represent "n" columns of metadata in an RDF segment. I've been trying for two days to figure out how to best correct this but unfortunately I don't know enough about the code yet to do so with confidence - I certainly don't want to hack it and break your code. So.. if you could give me some direction, or even a hint as to where I might concentrate my efforts, I'd be glad to revise the code and send you the results. TIA! Regards, Tom Lukasik Chief Architect DataGlider, Inc. 905-707-4214 |