In ADT_A01 v2.5 there doesn't seem to be a way to add repeatable insurance fields. In v2.3 there was a getInsurance() method that allowed you to add multiple insurances. In v2.5 there isn't a getInsurance() Method. Can someone please help me with adding multiple insurances to an ADT_A01 message with v2.5
Thanks in Advance
It looks like there is a property called 'Insurance' that contains the grouping of insurances.
I saw that, but I can only add 1 insurance not multiple. I need to be able to add up to 4 insurances but I only see a way of adding 1.
It looks like the HL7 database that I used to generate the structure for 2.5 is not correct. You'll have to manually fix the class to allow for repetitions. There should be a way to tell it that the segments/groups are repeating in the constructors.
It appeared to be that way. After looking through the source code I had to modify when it checked to see if the field was repeatable to always be true for the Insurance segment. Thanks for the conformation.
I believe there may be some other errors, but I have more or less worked around them, since the source code was available.
Thanks for the reply.
Can I get the code you changed to achieve this? I am facing the same problem for retrieving the multiple IN1 segments.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.