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
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
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
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...@
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
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.
6 matches
Mail list logo