From: tfennelly <do-...@jb...> - 2006-06-24 19:31:27
|
Nice one Dave !!!! You're not joking, it is ugly!! Anyway, what doesn't kill you will make you stronger etc, so I'm looking forward to trying this out. To be honest, I was sorta thinking more in terms of SOAP to SOAP style examples, but this is great because I need to understand all the scenarios - especially the ugly ones ;-) anonymous wrote : Please advise if this makes little sense. I've only had one read through it and it makes *some* sense :-) After a dozen or so reads I'm sure a clearer pisture will start to form. First thought that came into my head after reading this was... would it be possible to write an X12N to SAX event parser? This would be a parser that could generate bog standard SAX events from an X12N stream, thereby allowing you to construct an XML DOM directly from the X12N stream - or alternatively, serializing the SAX event stream straight out to HL7. So, this would make the X12N stream *appear* as though it was an XML stream. Can't think why this wouldn't be possible, if X12N is hierarchical/predictable!! On your XML'ified version of the X12N stream: <batch><ISA><ISA01>00</ISA01>... etc.</ISA></batch> Why did you choose to represent each of the interchanges with new element tags i.e. ISA01, ISA02 etc?? Could it not be something like: <x12n><isa whatever="00">....</isa><isa whatever="13">....</isa> ... etc... </x12n> ... and use the position of each element to infer the 01 (ala ISA01) etc. Is the position of an interchange, within a batch, actually all that important? I'll take a closer look when I get a chance. Sat evening now and I'm away for the day tomorrow - our county team is playing a big game against Dublin :-) Thanks again Dave!! You certainly have me thinking now :-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953235#3953235 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953235 |