Is there any method available to get the no of segments present in a
message for a specified message ???
Eg: I would want to get a count of segment "GT1" in the message.

How to I get the count ?

On Thu, Sep 29, 2016 at 8:49 AM, James Agnew <jamesag...@gmail.com> wrote:

> I don't think there is a direct way but you could always create a new
> empty message instance and compare the results of the getNames() method.
>
> sent from my phone.
>
> On Sep 28, 2016 10:31 PM, "Ankit Shrestha" <shresthaank...@gmail.com>
> wrote:
>
>> Hello,
>> Is it possible to distinguish a segment name as standard or non-standard
>> ? Adding a non-standard segment ( segment name already exists ), appends a
>> integer to segment name as it's parent identifies. But is it possible to
>> get values of all the possible segment ( regardless of standard or
>> non-standard) ) using only the segment name. Please answer with a code
>> example.
>>
>> ------------------------------------------------------------
>> ------------------
>>
>> _______________________________________________
>> Hl7api-devel mailing list
>> Hl7api-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/hl7api-devel
>>
>>
------------------------------------------------------------------------------
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to