[HAPI-devel] Checking for the existence of a segment or group

2013-07-02 Thread Ian Vowles
When building a transform of an HL7 message where some segment is optional, but if it is present lots of fields are to be checked and transformed, I like to check for existence of the segment first. Using HAPI I code the check like this: if (!("IN1".equals(hl7Message.getINSURANCE(0).

Re: [HAPI-devel] Difference between 2.3 and 2.4

2013-07-02 Thread Christian Ohr
No, obviously there is a bug in the HL7 database, which marks the field as non-repeatable in version 2.4 (back to repeatable in 2.5!). The HL7 standard mandates this field to be repeatable for 2.3, 2.4 and 2.5. Feel free to file a bug report (http://sourceforge.net/p/hl7api/bugs/), so we can fix th

[HAPI-devel] Difference between 2.3 and 2.4

2013-07-02 Thread Niederlander Alex
Hi, Is it normal that the field OBX.8 (AbnormalFlags) allow repetition in version 2.3 and does not allow repetition in version 2.4 Thank your for your help. --     Best regards