Error in parsing ORM_O01

View: New views
5 Messages — Rating Filter:   Alert me  

Error in parsing ORM_O01

by Fabio Daprile :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello all,

while parsing an ORM_O01 message i found what i think is an error.
I parse it first with the PipeParser and after that with the
DefaultXMLParser.

here is the message:

MSH|^~\\&|VERBENA|PRAEZISION|RIS|SYNCROMED|20070828135556+0000||ORM^O01|5366|P|2.5|
PID|||410379^^^PRAEZ||MORCHI^ANTONIO||19200202000000+0000|F|||VIA
BOSCHI, 13 ^BG^MARTO^BG^24027^100^M^ITALIA^016144~VIA BOSCHI, 13
^BG^MARTO^BG^24027^100^H^ITALIA^016144~^BG^MARTO^BG^^100^B^ITALIA^016144|||||||AAAAAAAAAAAAAAAA|228PP272||||016144|||100^ITALIA|\r"
PD1|||ASL DELLA PROVINCIA DI BERGAMO^^^^^^^^^301030|\r"
PV1||E|||||133429^GRIGIS^MASSIMO|9PRZMARK^MARTELLI^MARCO^^^^^^^^^^9||114||||||||||||||||||||||||||||||||A02|||||||||V|    
ORC|NW|67262|5189|2007100059|PR||1.000000^^^20070828135500+0000||20070828135500+0000|||9PRZMARK^MARTELLI^MARCO|||||114^PRONTO
SOCCORSO|\r"
OBR|1|67262|5189|1223^RX PELVI
(bacino)||||||||3|RRR|||9PRZMARK^MARTELLI||||||||1|||1.000000^^^20070828135500+0000|
OBR|2|67262|5189|1220^RX
SPALLA||||||||3|RRR|||9PRZMARK^MARTELLI||||||||1|||1.000000^^^20070828135500+0000|
OBR|2|67262|5189|1220^RX
SPALLA||||||||3|RRR|||9PRZMARK^MARTELLI||||||||1|||1.000000^^^20070828135500+0000|
ORC|NW|67262|5190|2007100059|PR||1.000000^^^20070828135500+0000||20070828135500+0000|||9PRZMARK^MARTELLI^MARCO|||||114^PRONTO
SOCCORSO|
OBR|1|67262|5190|8001^TAC
CAPO||||||||3|RRR|||9PRZMARK^MARTELLI||||||||7|||1.000000^^^20070828135500+0000|
ZDS|1.2.300.4005|a^b^c|Application|DICOM|


When parsing the first ORDER group, i find correctly the ORDER_DETAIL.
The parser asks then for all the repetitions of the OBR segment. the
reps[] array contains only 1 element.
The other 2 instances of OBR are found after the group OBSERVATION.

This is wrong on my opinion. The number of repetitions of OBR should be
3 in the ORDER_DETAIL group.

Somebody can explain this behavior?

Greetz,
Fabio


-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@...
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Re: Error in parsing ORM_O01

by Fabio Daprile :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

this is the definition of the Message structure. the segment OBR cannot
be repeated, and there is no OBR after the OBSERVATION GROUP.

MESSAGE SEGMENT HL7GROUP REPETITIONAL OPTIONAL
ORM_O01 MSH   0 0
ORM_O01 NTE   1 1
ORM_O01
        PATIENT 0 0
ORM_O01 PID   0 0
ORM_O01 PD1   0 1
ORM_O01 NTE   1 1
ORM_O01
        PATIENT_VISIT 0 0
ORM_O01 PV1   0 0
ORM_O01 PV2   0 1
ORM_O01
        PATIENT_VISIT 0 0
ORM_O01
        INSURANCE 1
        0
ORM_O01 IN1   0 0
ORM_O01 IN2   0 1
ORM_O01 IN3   0 1
ORM_O01
        INSURANCE 0 0
ORM_O01 GT1   0 1
ORM_O01 AL1   1 1
ORM_O01
        PATIENT 0 0
ORM_O01
        ORDER 1
        0
ORM_O01 ORC   0 0
ORM_O01
        ORDER_DETAIL 0 0
ORM_O01 <
          0 0
ORM_O01 OBR   0 0
ORM_O01 |   0 0
ORM_O01 RQD   0 0
ORM_O01 |   0 0
ORM_O01 RQ1   0 0
ORM_O01 |   0 0
ORM_O01 RXO   0 0
ORM_O01 |   0 0
ORM_O01 ODS   0 0
ORM_O01 |   0 0
ORM_O01 ODT   0 0
ORM_O01 >   0 0
ORM_O01 NTE   1 1
ORM_O01 CTD   0 1
ORM_O01 DG1   1 1
ORM_O01
        OBSERVATION 1
        0
ORM_O01 OBX   0 0
ORM_O01 NTE   1 1
ORM_O01
        OBSERVATION 0 0
ORM_O01
        ORDER_DETAIL 0 0
ORM_O01 FT1   1 1
ORM_O01 CTI   1 1
ORM_O01 BLG   0 1
ORM_O01
        ORDER 0 0
ORM_O01 ZDS   0 1


Greetz,
Fabio



Fabio Daprile wrote:

> Hello all,
>
> while parsing an ORM_O01 message i found what i think is an error.
> I parse it first with the PipeParser and after that with the
> DefaultXMLParser.
>
> here is the message:
>
> MSH|^~\\&|VERBENA|PRAEZISION|RIS|SYNCROMED|20070828135556+0000||ORM^O01|5366|P|2.5|
> PID|||410379^^^PRAEZ||MORCHI^ANTONIO||19200202000000+0000|F|||VIA
> BOSCHI, 13 ^BG^MARTO^BG^24027^100^M^ITALIA^016144~VIA BOSCHI, 13
> ^BG^MARTO^BG^24027^100^H^ITALIA^016144~^BG^MARTO^BG^^100^B^ITALIA^016144|||||||AAAAAAAAAAAAAAAA|228PP272||||016144|||100^ITALIA|\r"
> PD1|||ASL DELLA PROVINCIA DI BERGAMO^^^^^^^^^301030|\r"
> PV1||E|||||133429^GRIGIS^MASSIMO|9PRZMARK^MARTELLI^MARCO^^^^^^^^^^9||114||||||||||||||||||||||||||||||||A02|||||||||V|    
> ORC|NW|67262|5189|2007100059|PR||1.000000^^^20070828135500+0000||20070828135500+0000|||9PRZMARK^MARTELLI^MARCO|||||114^PRONTO
> SOCCORSO|\r"
> OBR|1|67262|5189|1223^RX PELVI
> (bacino)||||||||3|RRR|||9PRZMARK^MARTELLI||||||||1|||1.000000^^^20070828135500+0000|
> OBR|2|67262|5189|1220^RX
> SPALLA||||||||3|RRR|||9PRZMARK^MARTELLI||||||||1|||1.000000^^^20070828135500+0000|
> OBR|2|67262|5189|1220^RX
> SPALLA||||||||3|RRR|||9PRZMARK^MARTELLI||||||||1|||1.000000^^^20070828135500+0000|
> ORC|NW|67262|5190|2007100059|PR||1.000000^^^20070828135500+0000||20070828135500+0000|||9PRZMARK^MARTELLI^MARCO|||||114^PRONTO
> SOCCORSO|
> OBR|1|67262|5190|8001^TAC
> CAPO||||||||3|RRR|||9PRZMARK^MARTELLI||||||||7|||1.000000^^^20070828135500+0000|
> ZDS|1.2.300.4005|a^b^c|Application|DICOM|
>
>
> When parsing the first ORDER group, i find correctly the ORDER_DETAIL.
> The parser asks then for all the repetitions of the OBR segment. the
> reps[] array contains only 1 element.
> The other 2 instances of OBR are found after the group OBSERVATION.
>
> This is wrong on my opinion. The number of repetitions of OBR should be
> 3 in the ORDER_DETAIL group.
>
> Somebody can explain this behavior?
>
> Greetz,
> Fabio
>
>
> -------------------------------------------------------------------------
> SF.Net email is sponsored by:
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Hl7api-devel mailing list
> Hl7api-devel@...
> https://lists.sourceforge.net/lists/listinfo/hl7api-devel
>
>
>  



-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@...
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Re: Error in parsing ORM_O01

by Fabio Daprile :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello all,

Somebody can explain me what happens in this case?
I need this information to finish a parser!!!!

Greetings,
Fabio


Fabio Daprile wrote:

> Hello all,
>
> while parsing an ORM_O01 message i found what i think is an error.
> I parse it first with the PipeParser and after that with the
> DefaultXMLParser.
>
> here is the message:
>
> MSH|^~\\&|VERBENA|PRAEZISION|RIS|SYNCROMED|20070828135556+0000||ORM^O01|5366|P|2.5|
> PID|||410379^^^PRAEZ||MORCHI^ANTONIO||19200202000000+0000|F|||VIA
> BOSCHI, 13 ^BG^MARTO^BG^24027^100^M^ITALIA^016144~VIA BOSCHI, 13
> ^BG^MARTO^BG^24027^100^H^ITALIA^016144~^BG^MARTO^BG^^100^B^ITALIA^016144|||||||AAAAAAAAAAAAAAAA|228PP272||||016144|||100^ITALIA|\r"
> PD1|||ASL DELLA PROVINCIA DI BERGAMO^^^^^^^^^301030|\r"
> PV1||E|||||133429^GRIGIS^MASSIMO|9PRZMARK^MARTELLI^MARCO^^^^^^^^^^9||114||||||||||||||||||||||||||||||||A02|||||||||V|    
> ORC|NW|67262|5189|2007100059|PR||1.000000^^^20070828135500+0000||20070828135500+0000|||9PRZMARK^MARTELLI^MARCO|||||114^PRONTO
> SOCCORSO|\r"
> OBR|1|67262|5189|1223^RX PELVI
> (bacino)||||||||3|RRR|||9PRZMARK^MARTELLI||||||||1|||1.000000^^^20070828135500+0000|
> OBR|2|67262|5189|1220^RX
> SPALLA||||||||3|RRR|||9PRZMARK^MARTELLI||||||||1|||1.000000^^^20070828135500+0000|
> OBR|2|67262|5189|1220^RX
> SPALLA||||||||3|RRR|||9PRZMARK^MARTELLI||||||||1|||1.000000^^^20070828135500+0000|
> ORC|NW|67262|5190|2007100059|PR||1.000000^^^20070828135500+0000||20070828135500+0000|||9PRZMARK^MARTELLI^MARCO|||||114^PRONTO
> SOCCORSO|
> OBR|1|67262|5190|8001^TAC
> CAPO||||||||3|RRR|||9PRZMARK^MARTELLI||||||||7|||1.000000^^^20070828135500+0000|
> ZDS|1.2.300.4005|a^b^c|Application|DICOM|
>
>
> When parsing the first ORDER group, i find correctly the ORDER_DETAIL.
> The parser asks then for all the repetitions of the OBR segment. the
> reps[] array contains only 1 element.
> The other 2 instances of OBR are found after the group OBSERVATION.
>
> This is wrong on my opinion. The number of repetitions of OBR should be
> 3 in the ORDER_DETAIL group.
>
> Somebody can explain this behavior?
>
> Greetz,
> Fabio
>
>
> -------------------------------------------------------------------------
> SF.Net email is sponsored by:
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Hl7api-devel mailing list
> Hl7api-devel@...
> https://lists.sourceforge.net/lists/listinfo/hl7api-devel
>
>
>  



-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@...
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Re: Error in parsing ORM_O01

by Fabio Daprile :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

i know that OBR is Not Repeatable, and it is configured as Not
Repeatable on the model.. So i expect that, if i have 3 OBR Segments
after an ORC in my message, the HAPI PipeParser will throw an exception.

Instead of this i find 1 OBR inside the ORDER_DETAIL Group, which is
correct, and the remaining 2  instances of OBR are found inside the
group OBSERVATION which is , on my opinion, wrong. Wrong because in the
model OBR segment is only allowed inside the ORDER_DETAIL group.
In the OBSERVATION group only OBX and NTE are allowed, not OBR.

Greetz,
Fabio

Here the message:

         
"MSH|^~\\&|VERBENA|PRAEZISION|RIS|SYNCROMED|20070828135556+0000||ORM^O01|5366|P|2.5|\r"

       + "PID|||410379^^^SILVANI||GONZI^||19200202000000+0000|F|||VIA
MARZO, 13 ^BG^MARCO^BG24027^100^M^ITALIA016144~VIA MARZO, 13
^BG^MARCO^BG24027^100^H^ITALIA016144~^BG^MARCO^BG^^100^B^ITALIA016144|||||||AAAAAAAAAAAAAAAA|228PP272||||016144|||100^ITALIA|\r"

       + "PD1|||ASL DELLA PROVINCIA DI BERGAMO^^^^^^^^^301030|\r"
       +
"PV1||E|||||133429^ROSSI^ENRICO|9PRZMARK^VERDI^MARCO^^^^^^^^^^9||114||||||||||||||||||||||||||||||||A02|||||||||V|\r"

       +
"ORC|NW|67262|5189|2007100059|PR||1.000000^^^20070828135500+0000||20070828135500+0000|||9PRZMARK^VERDI^MARCO|||||114^PRONTO
SOCCORSO|\r"
       + "OBR|1|67262|5189|1223^RX PELVI
(bacino)||||||||3|RRR|||9PRZMARK^VERDI||||||||1|||1.000000^^^20070828135500+0000|\r"

       + "OBR|2|67262|5189|1220^RX
SPALLA||||||||3|RRR|||9PRZMARK^VERDI||||||||1|||1.000000^^^20070828135500+0000|\r"

       + "OBR|2|67262|5189|1220^RX
SPALLA||||||||3|RRR|||9PRZMARK^VERDI||||||||1|||1.000000^^^20070828135500+0000|\r"

       +
"ORC|NW|67262|5190|2007100059|PR||1.000000^^^20070828135500+0000||20070828135500+0000|||9PRZMARK^VERDI^MARCO|||||114^PRONTO
SOCCORSO|\r"
       + "OBR|1|67262|5190|8001^TAC
CAPO||||||||3|RRR|||9PRZMARK^VERDI||||||||7|||1.000000^^^20070828135500+0000|\r"

       + "ZDS|1.2.300.4005|a^b^c|Application|DICOM|";


Here the result after parsing with the PipeParser and DefaultXMLParser.

<ORM_O01.ORDER_DETAIL>
<OBR>
<OBR.1>1</OBR.1>
<OBR.2>
<EI.1>67262</EI.1>
</OBR.2>
<OBR.3>
<EI.1>5189</EI.1>
</OBR.3>
<OBR.4>
<CE.1>1223</CE.1>
<CE.2>RX PELVI (bacino)</CE.2>
</OBR.4>
<OBR.12>
<CE.1>3</CE.1>
</OBR.12>
<OBR.13>RRR</OBR.13>
<OBR.16>
<XCN.1>9PRZMARK</XCN.1>
<XCN.2>
<FN.1>VERDI</FN.1>
</XCN.2>
</OBR.16>
<OBR.24>1</OBR.24>
<OBR.27>
<TQ.1>
<CQ.1>1.000000</CQ.1>
</TQ.1>
<TQ.4>
<TS.1>20070828135500+0000</TS.1>
</TQ.4>
</OBR.27>
</OBR>
<RQD/>
<RQ1/>
<RXO/>
<ODS/>
<ODT/>
<NTE/>
<CTD/>
<DG1/>
<ORM_O01.OBSERVATION>
<OBX/>
<NTE/>
<OBR>
<OBR.1>2</OBR.1>
<OBR.2>
<EI.1>67262</EI.1>
</OBR.2>
<OBR.3>
<EI.1>5189</EI.1>
</OBR.3>
<OBR.4>
<CE.1>1220</CE.1>
<CE.2>RX SPALLA</CE.2>
</OBR.4>
<OBR.12>
<CE.1>3</CE.1>
</OBR.12>
<OBR.13>RRR</OBR.13>
<OBR.16>
<XCN.1>9PRZMARK</XCN.1>
<XCN.2>
<FN.1>VERDI</FN.1>
</XCN.2>
</OBR.16>
<OBR.24>1</OBR.24>
<OBR.27>
<TQ.1>
<CQ.1>1.000000</CQ.1>
</TQ.1>
<TQ.4>
<TS.1>20070828135500+0000</TS.1>
</TQ.4>
</OBR.27>
</OBR>
<OBR>
<OBR.1>2</OBR.1>
<OBR.2>
<EI.1>67262</EI.1>
</OBR.2>
<OBR.3>
<EI.1>5189</EI.1>
</OBR.3>
<OBR.4>
<CE.1>1220</CE.1>
<CE.2>RX SPALLA</CE.2>
</OBR.4>
<OBR.12>
<CE.1>3</CE.1>
</OBR.12>
<OBR.13>RRR</OBR.13>
<OBR.16>
<XCN.1>9PRZMARK</XCN.1>
<XCN.2>
<FN.1>VERDI</FN.1>
</XCN.2>
</OBR.16>
<OBR.24>1</OBR.24>
<OBR.27>
<TQ.1>
<CQ.1>1.000000</CQ.1>
</TQ.1>
<TQ.4>
<TS.1>20070828135500+0000</TS.1>
</TQ.4>
</OBR.27>
</OBR>
</ORM_O01.OBSERVATION>
</ORM_O01.ORDER_DETAIL>


Leo wrote:
Hello friend, are you sure OBR segment is repeteable in ORDER_DETAIL
group? I think that no, or in HAPI model classes is not configured at
repeteable in ORM_O01_ORDER_DETAIL class.



Fabio Daprile wrote:

> Hello all,
>
> Somebody can explain me what happens in this case?
> I need this information to finish a parser!!!!
>
> Greetings,
> Fabio
>
>
> Fabio Daprile wrote:
>  
>> Hello all,
>>
>> while parsing an ORM_O01 message i found what i think is an error.
>> I parse it first with the PipeParser and after that with the
>> DefaultXMLParser.
>>
>> here is the message:
>>
>> MSH|^~\\&|VERBENA|PRAEZISION|RIS|SYNCROMED|20070828135556+0000||ORM^O01|5366|P|2.5|
>> PID|||410379^^^PRAEZ||MORCHI^ANTONIO||19200202000000+0000|F|||VIA
>> BOSCHI, 13 ^BG^MARTO^BG^24027^100^M^ITALIA^016144~VIA BOSCHI, 13
>> ^BG^MARTO^BG^24027^100^H^ITALIA^016144~^BG^MARTO^BG^^100^B^ITALIA^016144|||||||AAAAAAAAAAAAAAAA|228PP272||||016144|||100^ITALIA|\r"
>> PD1|||ASL DELLA PROVINCIA DI BERGAMO^^^^^^^^^301030|\r"
>> PV1||E|||||133429^GRIGIS^MASSIMO|9PRZMARK^MARTELLI^MARCO^^^^^^^^^^9||114||||||||||||||||||||||||||||||||A02|||||||||V|    
>> ORC|NW|67262|5189|2007100059|PR||1.000000^^^20070828135500+0000||20070828135500+0000|||9PRZMARK^MARTELLI^MARCO|||||114^PRONTO
>> SOCCORSO|\r"
>> OBR|1|67262|5189|1223^RX PELVI
>> (bacino)||||||||3|RRR|||9PRZMARK^MARTELLI||||||||1|||1.000000^^^20070828135500+0000|
>> OBR|2|67262|5189|1220^RX
>> SPALLA||||||||3|RRR|||9PRZMARK^MARTELLI||||||||1|||1.000000^^^20070828135500+0000|
>> OBR|2|67262|5189|1220^RX
>> SPALLA||||||||3|RRR|||9PRZMARK^MARTELLI||||||||1|||1.000000^^^20070828135500+0000|
>> ORC|NW|67262|5190|2007100059|PR||1.000000^^^20070828135500+0000||20070828135500+0000|||9PRZMARK^MARTELLI^MARCO|||||114^PRONTO
>> SOCCORSO|
>> OBR|1|67262|5190|8001^TAC
>> CAPO||||||||3|RRR|||9PRZMARK^MARTELLI||||||||7|||1.000000^^^20070828135500+0000|
>> ZDS|1.2.300.4005|a^b^c|Application|DICOM|
>>
>>
>> When parsing the first ORDER group, i find correctly the ORDER_DETAIL.
>> The parser asks then for all the repetitions of the OBR segment. the
>> reps[] array contains only 1 element.
>> The other 2 instances of OBR are found after the group OBSERVATION.
>>
>> This is wrong on my opinion. The number of repetitions of OBR should be
>> 3 in the ORDER_DETAIL group.
>>
>> Somebody can explain this behavior?
>>
>> Greetz,
>> Fabio
>>
>>
>> -------------------------------------------------------------------------
>> SF.Net email is sponsored by:
>> Check out the new SourceForge.net Marketplace.
>> It's the best place to buy or sell services for
>> just about anything Open Source.
>> http://sourceforge.net/services/buy/index.php
>> _______________________________________________
>> Hl7api-devel mailing list
>> Hl7api-devel@...
>> https://lists.sourceforge.net/lists/listinfo/hl7api-devel
>>
>>
>>  
>>    
>
>
>
> -------------------------------------------------------------------------
> SF.Net email is sponsored by:
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Hl7api-devel mailing list
> Hl7api-devel@...
> https://lists.sourceforge.net/lists/listinfo/hl7api-devel
>
>
>  



-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@...
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Re: Error in parsing ORM_O01

by nicovn :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm sorry I haven't answered earlier :(

The message you have is indeed incorrect !

It should indeed be better if HAPI threw an exception ... but it
doesn't in the current version.

I don't know the situation in which you encounter this issue, but to
my opinion the only solution is to ask the sending party to correct
the message, since it will fail anyway if they send it to other parties.

If you really want to use/implement this message, an option could be
to use the Messaging Workbench tool and create a message profile that
is compliant with your sample message. If you send me the hl7 xml
profile afterwards I can generate HAPI compatible classes that you
can use to parse this message ... but I would certainly not advise
this, since it's not "hl7" ...

If you want to validate hl7 test messages there are 2 good tools
available on the web:

http://humehealth.com.au/humeNET/files/Technology/bar2xml.php

http://ahml.ballarat.edu.au/

I will create a tracker in Sourceforge if you haven't done it already.


Hope this helps ...

Best Regards

Nico
At 12/12/2007, Fabio Daprile wrote:

>Hello all,
>
>Somebody can explain me what happens in this case?
>I need this information to finish a parser!!!!
>
>Greetings,
>Fabio
>
>
>Fabio Daprile wrote:
> > Hello all,
> >
> > while parsing an ORM_O01 message i found what i think is an error.
> > I parse it first with the PipeParser and after that with the
> > DefaultXMLParser.
> >
> > here is the message:
> >
> >
> MSH|^~\\&|VERBENA|PRAEZISION|RIS|SYNCROMED|20070828135556+0000||ORM^O01|5366|P|2.5|
> > PID|||410379^^^PRAEZ||MORCHI^ANTONIO||19200202000000+0000|F|||VIA
> > BOSCHI, 13 ^BG^MARTO^BG^24027^100^M^ITALIA^016144~VIA BOSCHI, 13
> >
> ^BG^MARTO^BG^24027^100^H^ITALIA^016144~^BG^MARTO^BG^^100^B^ITALIA^016144|||||||AAAAAAAAAAAAAAAA|228PP272||||016144|||100^ITALIA|\r"
> > PD1|||ASL DELLA PROVINCIA DI BERGAMO^^^^^^^^^301030|\r"
> >
> PV1||E|||||133429^GRIGIS^MASSIMO|9PRZMARK^MARTELLI^MARCO^^^^^^^^^^9||114||||||||||||||||||||||||||||||||A02|||||||||V|
>
> >
> ORC|NW|67262|5189|2007100059|PR||1.000000^^^20070828135500+0000||20070828135500+0000|||9PRZMARK^MARTELLI^MARCO|||||114^PRONTO
>
> > SOCCORSO|\r"
> > OBR|1|67262|5189|1223^RX PELVI
> >
> (bacino)||||||||3|RRR|||9PRZMARK^MARTELLI||||||||1|||1.000000^^^20070828135500+0000|
> > OBR|2|67262|5189|1220^RX
> >
> SPALLA||||||||3|RRR|||9PRZMARK^MARTELLI||||||||1|||1.000000^^^20070828135500+0000|
> > OBR|2|67262|5189|1220^RX
> >
> SPALLA||||||||3|RRR|||9PRZMARK^MARTELLI||||||||1|||1.000000^^^20070828135500+0000|
> >
> ORC|NW|67262|5190|2007100059|PR||1.000000^^^20070828135500+0000||20070828135500+0000|||9PRZMARK^MARTELLI^MARCO|||||114^PRONTO
>
> > SOCCORSO|
> > OBR|1|67262|5190|8001^TAC
> >
> CAPO||||||||3|RRR|||9PRZMARK^MARTELLI||||||||7|||1.000000^^^20070828135500+0000|
> > ZDS|1.2.300.4005|a^b^c|Application|DICOM|
> >
> >
> > When parsing the first ORDER group, i find correctly the ORDER_DETAIL.
> > The parser asks then for all the repetitions of the OBR segment. the
> > reps[] array contains only 1 element.
> > The other 2 instances of OBR are found after the group OBSERVATION.
> >
> > This is wrong on my opinion. The number of repetitions of OBR should be
> > 3 in the ORDER_DETAIL group.
> >
> > Somebody can explain this behavior?
> >
> > Greetz,
> > Fabio
> >
> >
> > -------------------------------------------------------------------------
> > SF.Net email is sponsored by:
> > Check out the new SourceForge.net Marketplace.
> > It's the best place to buy or sell services for
> > just about anything Open Source.
> > http://sourceforge.net/services/buy/index.php
> > _______________________________________________
> > Hl7api-devel mailing list
> > Hl7api-devel@...
> > https://lists.sourceforge.net/lists/listinfo/hl7api-devel
> >
> >
> >
>
>
>
>-------------------------------------------------------------------------
>SF.Net email is sponsored by:
>Check out the new SourceForge.net Marketplace.
>It's the best place to buy or sell services for
>just about anything Open Source.
>http://sourceforge.net/services/buy/index.php
>_______________________________________________
>Hl7api-devel mailing list
>Hl7api-devel@...
>https://lists.sourceforge.net/lists/listinfo/hl7api-devel



-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@...
https://lists.sourceforge.net/lists/listinfo/hl7api-devel
LightInTheBox - Buy quality products at wholesale price!