Re: [HAPI-devel] Posible BUG when messages or groups have duplicated elements

2007-11-26 Thread Jan Klasser
Hi Leo, I don't know how the HAPI parser works, but I guess the NK1 as seperator is not enough because only the required segments will tell you if another segment is in the same group repetition or not. I only know very few examples of segments with the same name inside one group. Perhaps that's

Re: [HAPI-devel] Posible BUG when messages or groups have duplicated elements

2007-11-23 Thread Leo
Hi Jan, I think it is not the problem because in the example i have write I put nk1 segment between ROL segments. I think the problem is how HAPI naming duplicates segments (using ROL, ROL2, ROL3, ROL4...) and parser dont consider it. On Nov 23, 2007 11:46 AM, Jan Klasser <[EMAIL PROTECTED]> wrote

Re: [HAPI-devel] Posible BUG when messages or groups have duplicated elements

2007-11-23 Thread Jan Klasser
Hi Leo, sometimes the message structure in HL7 is ambiguous if you omit required segments. In this case(QUERY_RESPONSE group) if you need the group you need to set the PID and PV1. Not sure if this solves the error, anyhow the message parsing without the required segments is error prone Leo-61

[HAPI-devel] Posible BUG when messages or groups have duplicated elements

2007-11-18 Thread Leo
Hello to everybody! I dont know if it is a well-know bug. Imagine, for example, ADR_A19/QUERY_RESPONSE standard v.25 group, that contains these elements: EVN PID PD1 *ROL* NK1 ... *ROL* ... ROL segment appears 2 times in the group. In first place, if you want use a terser