Re: [HAPI-devel] Generic class for ADT message

2013-06-19 Thread sagarshah1983
Thanks Christian for sharing this link. I was trying to use ADT_AXX structure only, but found few issues with generating HL7 message with ADT_AXX and did not find a way to solve that out. So thought of checking for any other generic structure for ADT messages. Anyways, here's the issue I am facing

Re: [HAPI-devel] Generic class for ADT message

2013-06-19 Thread Christian Ohr
Yes, I can reproduce this problem. It seems that the MSH segment is not allowed e.g. for A01 message by the validator, which is obviously nonsense. Maybe James can enlighten this a bit potentially there's a bug in the generator. After all, when creating messages I don't see a need to create su

Re: [HAPI-devel] Generic class for ADT message

2013-06-19 Thread sagarshah1983
Thanks a ton Christian for this. I think I can make use of Terser to make it generic and use ADT_A01 as base message, as there are some issues with ADT_AXX as reported in previous message. Christian Ohr-2 wrote: > > Yes, I can reproduce this problem. It seems that the MSH segment is not > allo

Re: [HAPI-devel] Generic class for ADT message

2013-06-19 Thread James Agnew
Hi All, This does indeed appear to be a bug in the generator for the superstructures unfortunately. Sagar, the good news is that your code *should* work, you're doing the right thing. But the bad news is that it isn't working obviously. :) Superstructures are a brand new feature, and they haven't

Re: [HAPI-devel] Generic class for ADT message

2013-06-19 Thread sagarshah1983
Thanks a ton James for clarifications. I will look at ADT_AXX and create another structure out of the same at my end and follow your instructions as a work around. Appreciate your suggestions. Regards, Sagar Shah James Agnew wrote: > > Hi All, > > This does indeed appear to be a bug in the gen

Re: [HAPI-devel] Generic class for ADT message

2013-06-19 Thread sagarshah1983
Hi James, I also had one more question to understand difference between ADT_AXX and ADT_A01. The issues that I am getting is with ADT_AXX. So what if I have to replace this with ADT_A01. Can I used ADT_A01 class to generate ADT A04, A05, A08 and A28 messages as well? I tried generating just MSH

Re: [HAPI-devel] Generic class for ADT message

2013-06-19 Thread James Agnew
Hi Sagar, Yes, there is definitely nothing wrong with using ADT_A01 to generate other types of messages. The only challenge you may run into is that some ADT message types will have structures that ADT_A01 doesn't have. For example, an ADT_A17 has a second set of PID and PV1 segments, and these s

Re: [HAPI-devel] Generic class for ADT message

2013-06-19 Thread sagarshah1983
Ok. In that case, I think it makes more sense to replicate the code of ADT_AXX and add support for additional event triggers (as suggested by you in previous message). Appreciate your direction. Regards, Sagar Shah James Agnew wrote: > > Hi Sagar, > > Yes, there is definitely nothing wrong wi