[HAPI-devel] Compose message with profile in time ejecution

2007-11-09 Thread Leo
Hello! Iam learning hapi. I need compose a message in time ejecution
using xml implementation profile. The message maybe Zmessage or not,
but i cant use concrete implementation of the message because I need
compose it in time ejecution using the xml, that is I cant use profile
compiler. Profiles have enough information for compose messages, but i
dont know if HAPI can help me to do it. If I use GenericMessage for
compose it using a terser i can add new non standards segments, but
¿how can i add new non standards groups, and fields?, besides if i use
GenericMessage then i cant parse it using XMLParser. Some idea?
Thanks a lot!



Sorry for my english :)

Leonardo.

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel


[HAPI-devel] Messagin Workbench insert non standard groups?

2007-11-16 Thread Leo
Hello to everybody! Iam using Messaging Workbench, great tool! But iam
getting strange results with segment groups when I load standard
message strucutre. For example in ADR_A19 message there are a
QUERY_RESPONDE group, inside of this should be a PROCEDURE group, but
dont are this. Instead there are a G2O group (¿?) than contains
PROCEDURE group. In other words should be:
ADR_A19
   - MSG
   - ...
   + QUERY_RESPONSE
  - ...
 + PROCEDURE

But is:
ADR_A19
   - MSG
   - ...
   + QUERY_RESPONSE
  - ...
  + G2O
   + PROCEDURE

¿What is this G2O group? G2O dont exist in HL7 standard and it do
crash my application!!!

Thanks you for everybodoy
Leonrado.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel


[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 to set the values of ROL segment you should do:
t.set("/QUERY_RESPONSE/NK1-1", "1");
t.set("/QUERY_RESPONSE/*ROL*(0)-1", "vale1");  //first ocurrence
first repetition
t.set("/QUERY_RESPONSE/*ROL*(1)-1", "value2"); //first ocurrence
second repetition
t.set("/QUERY_RESPONSE/*ROL2*(0)-1", "value3");  //second ocurrence
first repetitition
t.set("/QUERY_RESPONSE/*ROL2*(1)-1", "value4");  /second ocurrence
second repetition

Note that you use ROL to refer first segment ocurrence (not first
repetition) and ROL2 for second. It is no documented in Terser class, but
this (ROL2, ROL3, ROL4...) names are asigned in insert() metod of
AbstractGroup class when is inserted a segment or group with existent name.
This generate a XML QUERY_RESPONSE like:



<*ROL*>

*value1*


<*ROL*>

*value2*


<*NK1*>
1

<*ROL*>

*value3*


<*ROL*>

*value4*






The problem is when you want to parse this xml message to hapi classes.
XMLParser is confused when find 4 ROL segments in the QUERY_RESPONSE group,
and cant parse it correctly, getting this QUERY_RESPONSE:

   



*value1*




*value2*




*value3*




*value4*



1



*value1*




*value2*




*value3*



        
*value4*





It is really a bug? Or iam doing something wrong?

Thanks a lot.
Leo.
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel


Re: [HAPI-devel] terser - syntax

2007-11-22 Thread Leo
Hello Epic! I think segment FT1 is not repeteable in FINANCIAL group, you
cant add second repetition using terer neither manualli using get(FT1,2).



On Nov 21, 2007 8:00 PM, epic winter <[EMAIL PROTECTED]> wrote:

>  I am working on producing the DFT_P03 message using the Terser.  I might
> be interpreting the spec wrong but from what I gather you can have many FT1
> segments.  When I try to add a second one I get the:
> Caused by: ca.uhn.hl7v2.HL7Exception: Can't create repetition #1 of
> Structure FT1 - this Structure is non-repeating
>
> I would assume my syntax is incorrect.  Here is what I am using for the
> second segment:
> terser.set(/.FT1(1)FT1-1, setId);
>
> The first one works:
> terser.set(/.FT1(0)FT1-1, setId);
>
> What am I doing wrong?
> thanks
>
>
>
> --
> You keep typing, we keep giving. Download Messenger and join the i'm
> Initiative now. Join 
> in!
>
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> ___
> Hl7api-devel mailing list
> Hl7api-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/hl7api-devel
>
>
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel


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:

>
> 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 wrote:
> >
> > 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 to set the values of ROL segment you should do:
> > t.set("/QUERY_RESPONSE/NK1-1", "1");
> > t.set("/QUERY_RESPONSE/*ROL*(0)-1", "vale1");  //first ocurrence
> > first repetition
> > t.set("/QUERY_RESPONSE/*ROL*(1)-1", "value2"); //first ocurrence
> > second repetition
> > t.set("/QUERY_RESPONSE/*ROL2*(0)-1", "value3");  //second
> > ocurrence
> > first repetitition
> > t.set("/QUERY_RESPONSE/*ROL2*(1)-1", "value4");  /second
> ocurrence
> > second repetition
> >
> > Note that you use ROL to refer first segment ocurrence (not first
> > repetition) and ROL2 for second. It is no documented in Terser class,
> but
> > this (ROL2, ROL3, ROL4...) names are asigned in insert() metod of
> > AbstractGroup class when is inserted a segment or group with existent
> > name.
> > This generate a XML QUERY_RESPONSE like:
> >
> > 
> > 
> > <*ROL*>
> > 
> > *value1*
> > 
> > 
> > <*ROL*>
> > 
> > *value2*
> > 
> > 
> > <*NK1*>
> > 1
> > 
> > <*ROL*>
> > 
> > *value3*
> > 
> > 
> > <*ROL*>
> > 
> > *value4*
> > 
> > 
> > 
> >
> >
> >
> > The problem is when you want to parse this xml message to hapi classes.
> > XMLParser is confused when find 4 ROL segments in the QUERY_RESPONSE
> > group,
> > and cant parse it correctly, getting this QUERY_RESPONSE:
> >
> >
> > 
> > 
> > 
> > *value1*
> > 
> > 
> > 
> > 
> > *value2*
> > 
> > 
> >     
> > 
> > *value3*
> > 
> > 
> > 
> > 
> > *value4*
> > 
> > 
> > 
> > 1
> > 
> > 
> > 
> > *value1*
> > 
> > 
> > 
> > 
> > *value2*
> > 
> > 
> > 
> > 
> > *value3*
> > 
> > 
> > 
> > 
> > *value4*
> > 
> > 
> > 
> >
> >
> > It is really a bug? Or iam doing something wrong?
> >
> > Thanks a lot.
> > Leo.
> >
> >
> -
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2005.
> > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> > ___
> > Hl7api-devel mailing list
> > Hl7api-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/hl7api-devel
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Posible-BUG-when-messages-or-groups-have-duplicated-elements-tf4832294.html#a13910063
> Sent from the hl7api-devel mailing list archive at Nabble.com.
>
>
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> ___
> Hl7api-devel mailing list
> Hl7api-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/hl7api-devel
>
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel


[HAPI-devel] Test messages and profiles

2007-12-12 Thread Leo
Hello HAPI people! Iam developing HL7 tool using HAPI, and now i need test
it using implementation profiles and example messages adjust to those
profiles. Iam using messagin workbench, but is too boredom create a new
message and profile, and i need some reals messages to test my application.
¿Somebody knows where can i find it? I think maybe HL7 offer some examples
via web... but i dont know

Thanks to all!

Leo.
-
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel


[HAPI-devel] Dummy question about HL7, please

2007-12-13 Thread Leo
Hello! I have a serious question, hehe
Imagine a change of ADR_A19/QRY_A19 messages. I doubt about ACK send. Could
somebody tell me how of those scenays is correct? (supposing original ack
mode):

CASE 1:
 -A send QRY_A19 to B
 -B send ADR_A19 to A with MSA segment set to AA
 -A don't acknowled ADR_A19 message

CASE 2:
 -A send QRY_A19 to B
 -B send ADR_A19 to A with MSA segment set to AA
 -A send ACK to B to confirm ADR_A19

CASE 3:
 -A send QRY_A19 to B
 -B send ADR_A19 to A with MSA segment set to AA

 -when A send next message (in later exange) set MSA segment to AA to
confirm last ADR message

My main question is if last ACK (ack for ADR to B) is neccesary, optional or
never sended, and if is necessary what CASE is the correct?


Thanks.
Leo.
-
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel