Hi James,
thank you for your answer. I tested my code with these jars:

hapi-base-1.0 as hapi base;
hapi-structures-v25-1.0 for structures
xml-apis-1.0.b2 and xercesImpl-2.4.0 for xml parsing

My results still remain the same wrong results. Do I have to modify  
something inside my code?
This is a problem for me because I lose the relationship between each  
SPM segment and all the ORC-OBR segments related to it.
Notice that with an OML^O33^OML_O33 message, which has a SPM-ORC-OBR  
segments hierarchy very similar to the RSP^SLI^K11 one, I don't have  
any problem.

Regards,
Alessandro


James Agnew <[email protected]>:

> Hi Alessandro,
>
> This is likely being caused by a bug that was finally fixed in the most
> recent release of HAPI. Can you try it again using the new HAPI 1.0 JAR, and
> see if it is fixed?
>
> Cheers,
> James
>
> On Fri, Apr 30, 2010 at 8:31 AM, Alessandro Sulis <[email protected]> wrote:
>
>> Dear to all.
>> I have a problem with the XML parsing of a RSP^SLI^K11 template message.
>> The starting pipe message is taken from the reference Laboratory IHE
>> technical framework V2.
>> I have a simple Java class, attached (ExampleParser.java), that converts
>> the starting HL7 piped message to XML, and then re-converts it to pipe. The
>> problem is that the second piped message is different from the starting one
>> because segments are switched in order, and this is bad because the SPM
>> segment must collect one or more ORC-OBR-TQ1  3-segment ordered groups, and
>> I lose this order in the final piped XML message, as you can see from
>> standard output (output.txt).
>> I tried this because the same conversion problem occurred me inside a Mirth
>> XML transformation
>> Am I getting wrong ? Could someone help me?
>>
>> Regards
>> Alessandro
>>
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Hl7api-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/hl7api-devel
>>
>>
>



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


------------------------------------------------------------------------------

_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to