Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need help structuring hl7 xml message

Status
Not open for further replies.

kakko

IS-IT--Management
Nov 18, 2003
2
0
0
US
I have schema representing hl7 v2.3 ORU^R01 message. I had created my schema by looking at how the hl7 accelerator represents the schema for ORU^R01 message. So now when i validate the schema againt the flat file i get the xml output in following order,
<Root>
<MSH>
<PID>
<PV1>
<OBR>
<OBX>
<NTE>
<NTE>
<OBX>
<OBR>
<OBX>
<NTE>
<NTE>
Notice that all the nodes are sequenced in right order under the same root node but not structured as a parent child nodes.
So now I am trying to get the above xml nodes in a parent child relationship like below,
<Root>
<MSH>
<PID>
<PV1>
<OBR>
<OBX>
<OBX>
<NTE>
<NTE>
<OBX>
<OBR>
<OBX>
<NTE>
<NTE>
Anyone knows how to get this in right order as above.

Thanks
 
If you validate the flat file against the schema (which is what I think you mean), the output is dictated by the schema. Are you sure that your schema hierarchy is correct?

Phil Hegedusich
Senior Programmer/Analyst
IIMAK
-----------
I'll have the roast duck with the mango salsa.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top