problems creating segments/tag

mercredi 21 janvier 2015

Hi,



I am reading in a HL7 message and outputting it as XML but I'm having problems creating the opening and closing tags in the output.



eg <ORU_R01.PATIENT_RESULT> </ORU_R01.PATIENT_VISIT>

<ORU_R01.PATIENT> </ORU_R01.PATIENT>





I want my message to output like the following



</MSH>

<ORU_R01.PATIENT_RESULT>

<ORU_R01.PATIENT>

<PID>

<PID.1>1</PID.1>

<PID.3>

<CX.1>12345</CX.1>

<CX.5>MRN</CX.5>

</PID.3>

<PID.5>

<XPN.1>

<FN.1>TEST</FN.1>

</XPN.1>

<XPN.2>TEST</XPN.2>

<XPN.7>L</XPN.7>

</PID.5>

<PID.7>

<TS.1>19851026</TS.1>

</PID.7>

<PID.8>M</PID.8>

<PID.11>

<XAD.1>

<SAD.1>Test Hospital</SAD.1>

</XAD.1>

</PID.11>

</PID>

<ORU_R01.PATIENT_VISIT>

<PV1>

<PV1.2>O</PV1.2>

<PV1.3>

<PL.4>

<HD.1>DIAMG</HD.1>

</PL.4>

</PV1.3>

<PV1.7/>

<PV1.8/>

<PV1.19>

<CX.1>6338195</CX.1>

</PV1.19>

</PV1>

</ORU_R01.PATIENT_VISIT>

</ORU_R01.PATIENT>





Any help would be appreciated





problems creating segments/tag

0 commentaires:

Enregistrer un commentaire