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
*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
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
--
*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
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
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
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
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)
8 matches
Mail list logo