Share

HAPI

Tracker: Bugs

5 SIU S12 Segment Issue - ID: 1482059
Last Update: Comment added ( bryan_tripp )

I am working with the Mirth project and have come
across a problem with parcing a S12 message type. If I
pull up the message in Chameleon parcer and look at the
message, it parces correctly, but in Mirth the parcing
looks incorrect (and the message dies after the MSH
segment). The HL7 format is 2.4

The parcing of the message looks like this at the point
it breaks.
<SCH/>
<NTE/>
<SIU_S12.PIDPD1PV1PV2OBXDG1>
<PID/>
<PD1/>
<PV1/>
<PV2/>
<OBX/>
<DG1/>
<EVN>
<EVN.1>S12</EVN.1>
<EVN.2>
<TS.1>20060407</TS.1>
</EVN.2>

So, I guess the first question is, does HAPI correctly
parse the SCH section? I am looking or the needle in
the haystack here to detemine where the problem might be.

Thanks
Nashtri


nashtri ( nashtri ) - 2006-05-04 19:02

5

Open

None

James Agnew

None

None

Public


Comments ( 2 )




Date: 2006-12-11 22:17
Sender: bryan_trippSourceForge.net DonorProject Admin


The reason it parses differently is that HAPI 0.4.3 and HAPI 0.5 support
different versions of the XML encoding spec. Specifically 0.5 uses shorter
group names that were introduced later. If you change the group names in
the message (e.g. change "PIDPD1PV1PV2OBXDG1" to "PATIENT" it will parse
completely in 0.5.

We realize that different people are probably using different versions of
the XML spec, so the ideal solution would be to support all of them in a
single version of HAPI. This will be considered for a later release. Sorry
for the inconvenience.

Bryan


Date: 2006-06-15 04:21
Sender: nashtri

Logged In: YES
user_id=1506652

Further details on this. I have parced this message with
two different version of HAPI (4.3 and 5.x). The parcing is
different in each of the versions for the same message. I
am attaching the XML rendering of this message for review
(the names have been changed to protect the innocent. I am
of the belief that either HAPI does not support S12 messages
or this is a malformed message, but it correctly parces
without errors in both HAPI versions as well as with several
other parcing engines. Help would be greatly appreciated.


<?xml version="1.0"?>
<SIU_S12>
<MSH>
<MSH.1>|</MSH.1>
<MSH.2>^~\&</MSH.2>
<MSH.3>
<HD.1>PARADIGM</HD.1>
</MSH.3>
<MSH.4>
<HD.1>QRS Healthcare Solutions</HD.1>
</MSH.4>
<MSH.5>
<HD.1>Impact MD</HD.1>
</MSH.5>
<MSH.6>
<HD.1>AICSoft</HD.1>
</MSH.6>
<MSH.7>
<TS.1>20060309</TS.1>
</MSH.7>
<MSH.9>
<MSG.1>SIU</MSG.1>
<MSG.2>S12</MSG.2>
</MSH.9>
<MSH.10>20060309170552</MSH.10>
<MSH.11>
<PT.1>P</PT.1>
</MSH.11>
<MSH.12>
<VID.1>2.4</VID.1>
</MSH.12>
<MSH.16>NE</MSH.16>
</MSH>
<SCH/>
<NTE/>
<SIU_S12.PIDPD1PV1PV2OBXDG1>
<PID/>
<PD1/>
<PV1/>
<PV2/>
<OBX/>
<DG1/>
<EVN>
<EVN.1>S12</EVN.1>
<EVN.2>
<TS.1>20060309</TS.1>
</EVN.2> <EVN.4>01</EVN.4>
</EVN>
<SCH>
<SCH.1>
<EI.1>989656</EI.1>
</SCH.1>
<SCH.2>
<EI.1>20060406</EI.1>
</SCH.2>
<SCH.6>
<CE.1>OP</CE.1>
</SCH.6>
<SCH.9>15</SCH.9>
<SCH.10>
<CE.1>m</CE.1>
</SCH.10>
<SCH.11>
<TQ.4>
<TS.1>200604061515</TS.1>
</TQ.4>
</SCH.11>
</SCH>
</SIU_S12.PIDPD1PV1PV2OBXDG1>
<SIU_S12.PIDPD1PV1PV2OBXDG1>
<PID>
<PID.2>
<CX.1>104144</CX.1>
</PID.2>
<PID.5>
<XPN.1>
<FN.1>Jones</FN.1>
</XPN.1>
<XPN.2>Joseph</XPN.2>
</PID.5>
<PID.8>M</PID.8>
<PID.11>
<XAD.1>
<SAD.1>Po Box 9999999</SAD.1>
</XAD.1>
<XAD.3>Nashville</XAD.3>
<XAD.4>TN</XAD.4>
<XAD.5>37211</XAD.5>
</PID.11>
<PID.13>
<XTN.1>(615)999-9999</XTN.1>
</PID.13>
</PID>
<PD1/>
<PV1>
<PV1.3>
<PL.1>VC</PL.1>
</PV1.3>
<PV1.7>
<XCN.1>HP</XCN.1>
<XCN.2>
<FN.1>Pierce.</FN.1>
</XCN.2>
<XCN.3>Hawkeye</XCN.3>
<XCN.4>H</XCN.4>
<XCN.5>Jr</XCN.5>
<XCN.7>D12345</XCN.7>
<XCN.8>UPIN</XCN.8>
</PV1.7>
<PV1.8>
<XCN.8>UPIN</XCN.8>
</PV1.8>
<PV1.44>
<TS.1>200604061515</TS.1>
</PV1.44>
<PV1.45>
<TS.1>200604061530</TS.1>
</PV1.45>
</PV1>
<PV2/>
<OBX/>
<DG1/>
<NTE>
<NTE.3>4 wk from laser on face-CB</NTE.3>
</NTE>
</SIU_S12.PIDPD1PV1PV2OBXDG1>
<SIU_S12.RGSAISNTEAIGNTEAILNTEAIPNTE>
<RGS/> </SIU_S12.RGSAISNTEAIGNTEAILNTEAIPNTE>
</SIU_S12>



Log in to comment.

Attached File

No Files Currently Attached

Change ( 1 )

Field Old Value Date By
assigned_to nobody 2006-12-11 22:17 bryan_tripp