Re: [HAPI-devel] How to check if a segmen tis present in a message

2008-05-13 Thread [EMAIL PROTECTED]
quot;/.GT1-1", terser)) { -ryan Date: Mon, 12 May 2008 11:14:13 -0400 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [email protected] Subject: Re: [HAPI-devel] How to check if a segmen tis present in a message

Re: [HAPI-devel] How to check if a segmen tis present in a message

2008-05-13 Thread VIOT Yves
*From:* VIOT Yves [mailto:[EMAIL PROTECTED] *Sent:* Tuesday, May 13, 2008 4:09 AM *To:* Lansdale Redmond *Cc:* clarksonpj; [email protected] *Subject:* Re: [HAPI-devel] How to check if a segmen tis present in a message That's very stang

Re: [HAPI-devel] How to check if a segmen tis present in a message

2008-05-13 Thread Lansdale Redmond
ubject: Re: [HAPI-devel] How to check if a segmen tis present in a message That's very stange because it works very well for me... Do you apply the getNames() on a ca.uhn.hl7v2.model.Message or on a for example : ca.uhn.hl7v2.model.v25.message.ADT_A09 Maybe, as the message structu

Re: [HAPI-devel] How to check if a segmen tis present in a message

2008-05-13 Thread VIOT Yves
-- *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *VIOT Yves *Sent:* Friday, May 09, 2008 5:05 AM *To:* clarksonpj *Cc:* [email protected] *Subject:* Re: [HAPI-devel] How to check if a segmen tis present in a message Hi, One way, but perhaps not

Re: [HAPI-devel] How to check if a segmen tis present in a message

2008-05-12 Thread Lansdale Redmond
message only had MSH and PID. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of VIOT Yves Sent: Friday, May 09, 2008 5:05 AM To: clarksonpj Cc: [email protected] Subject: Re: [HAPI-devel] How to check if a segmen tis present in a

Re: [HAPI-devel] How to check if a segmen tis present in a message

2008-05-09 Thread VIOT Yves
Hi, One way, but perhaps not the best (???), could be this: String[] segNames = hapiMessage.getNames(); Then jsut browse your string array to find if your seg exists Hope it helps Bye clarksonpj a écrit : Great question, I would also like to know if there is a way of doing this. Right now

Re: [HAPI-devel] How to check if a segmen tis present in a message

2008-05-07 Thread clarksonpj
Great question, I would also like to know if there is a way of doing this. Right now I need to check each element for null. Lansdale Redmond wrote: > > How can I check if a segment is present in a message..when I do the > following code it always returns a value then if I read a field the vlu

[HAPI-devel] How to check if a segmen tis present in a message

2008-05-03 Thread Lansdale Redmond
How can I check if a segment is present in a message..when I do the following code it always returns a value then if I read a field the vlue is null..very similar to if it was there...how do you know the difference PID seg = (PID) hapiMessage.get("PID"); if ( seg == null)