|
Hi all, I have a application that generates ER7 HL7 messages like this MSH|^~\&|^1301LAB1|SIGLO|INTLAB^TURRIANO|TURRIANO|20080829120115||ORU^R01|00002148|P|2.5 PID|1||NVCL2908719XXXX||xxxx^xxxx|xxxxx||U ORC|XO|5577|125689||CM|||| OBR|1|5577|125689 OBX|1|NM|1CX0^Aspergillus fumigatus^TURRIANO||0.35|KU/l|||||F|||||^^ I parse to XML format the messages to send then to another application using a HAPI DefaultXMLParser. My problem is that HAPI generates EMPTY SEGMENTS. i.e the <SFT/> Is there any way for no generation these empty segments by DefaultXMLParser <?xml version="1.0"?> <ORU_R01 xmlns="urn:hl7-org:v2xml"> <MSH> <MSH.1>|</MSH.1> <MSH.2>^~\&</MSH.2> <MSH.3> <HD.2>1301LAB1</HD.2> </MSH.3> <MSH.4> <HD.1>SIGLO</HD.1> </MSH.4> <MSH.5> <HD.1>INTLAB</HD.1> <HD.2>TURRIANO</HD.2> </MSH.5> <MSH.6> <HD.1>TURRIANO</HD.1> </MSH.6> <MSH.7> <TS.1>20080829120115</TS.1> </MSH.7> <MSH.9> <MSG.1>ORU</MSG.1> <MSG.2>R01</MSG.2> </MSH.9> <MSH.10>00002148</MSH.10> <MSH.11> <PT.1>P</PT.1> </MSH.11> <MSH.12> <VID.1>2.5</VID.1> </MSH.12> </MSH> <SFT/> <ORU_R01.PATIENT_RESULT> <ORU_R01.PATIENT> <PID> <PID.1>1</PID.1> <PID.3> <CX.1>NVCL290871916019</CX.1> </PID.3> <PID.5> <XPN.1> <FN.1>XXXX</FN.1> </XPN.1> <XPN.2>XXXX</XPN.2> </PID.5> <PID.6> <XPN.1> <FN.1>XXXXX</FN.1> </XPN.1> </PID.6> <PID.8>U</PID.8> </PID> <PD1/> <NTE/> <NK1/> <ORU_R01.VISIT> <PV1/> <PV2/> </ORU_R01.VISIT> </ORU_R01.PATIENT> <ORU_R01.ORDER_OBSERVATION> <ORC> <ORC.1>XO</ORC.1> <ORC.2> <EI.1>5577</EI.1> </ORC.2> <ORC.3> <EI.1>125689</EI.1> </ORC.3> <ORC.5>CM</ORC.5> </ORC> <OBR> <OBR.1>1</OBR.1> <OBR.2> <EI.1>5577</EI.1> </OBR.2> <OBR.3> <EI.1>125689</EI.1> </OBR.3> </OBR> <NTE/> <ORU_R01.TIMING_QTY> <TQ1/> <TQ2/> </ORU_R01.TIMING_QTY> <CTD/> <ORU_R01.OBSERVATION> <OBX> <OBX.1>1</OBX.1> <OBX.2>NM</OBX.2> <OBX.3> <CE.1>1CX0</CE.1> <CE.2>Aspergillus fumigatus</CE.2> <CE.3>TURRIANO</CE.3> </OBX.3> <OBX.5>0.35</OBX.5> <OBX.6> <CE.1>KU/l</CE.1> </OBX.6> <OBX.11>F</OBX.11> </OBX> </ORU_R01.OBSERVATION> </ORU_R01.ORDER_OBSERVATION> </ORU_R01.PATIENT_RESULT> </ORU_R01> --
| ||||||||||||||
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________ Hl7api-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/hl7api-devel

