Re: [HAPI-devel] Is this the correct path to give the Terser for a repeating segment?

2010-10-14 Thread Jonathan Bartels
I think I figured this out. The IN1 segment doesn’t repeat but the ADT_A01_INSURANCE group it’s under does repeat. So I would have to get the INSURANCE group at index 1 and then the IN1 and index 0 of that group. Is there any way to get this data from the terser knowing only the segment name

[HAPI-devel] Is this the correct path to give the Terser for a repeating segment?

2010-10-14 Thread Jonathan Bartels
Using code posted in another thread I am getting the number of repeating segments in a message then iterating over those segments to get data using a for loop and a terser. The message is: MSH|^~\&|ADM|CLF654321||CLF123456|200612131130||ADT^A08|4323424|P|2.5|||AL|NE PID… GT1… IN1|1||somedata

Re: [HAPI-devel] Counting or iterating over segments for an unkown or generic message type

2010-10-14 Thread Jonathan Bartels
Christian, Thank you! I was able to make this work with the expected results: protected int getSegmentCount(String segment) { int segmentCount = 0; ReadOnlyMessageIterator readOnlyMessageIterator = new ReadOnlyMessageIterator(terser.getFinder().getRoot()); while (re

Re: [HAPI-devel] Hapi validation : OBX-5 pattern

2010-10-14 Thread rmeyer.ext
Hi all, Thank you very much for all your answers. You are right, I have "NM" in OBX-2, and NM doesn' t accept scientific notation. In fact, I will modify the content of OBX-5 in order to match the NM pattern. Raphaëlle De : Cameron Freiner [mailto:cfrei...@

Re: [HAPI-devel] HAPI Server Turkish Character Problem............

2010-10-14 Thread christian ohr
Hi, The MinLLPReader class evaluates a system property called "ca.uhn.hl7v2.llp.charset". If it's set to "default", it uses the default character set of the system environment. If you set it to "ISO_8859_9" (e.g. by launching the application with -Dca.uhn.hl7v2.llp.charset=ISO_8859_9") you expl

Re: [HAPI-devel] Counting or iterating over segments for an unkown or generic message type

2010-10-14 Thread christian ohr
Hi JOnathan, 1. HL7 Message structures are used for grouping messages with the same internal structure (i.e. groups and segments). HAPI classes model message structures rather than messages. As ADT_A08 is defined to have a message structure called ADT_A01, the instantiated HAPI class is ADT_A01.