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

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
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 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 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 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 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 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-18 Thread Christian Ohr
If you are using HAPI 2.1, you should have a look at this: http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/ExampleSuperStructures.html . cheers Christian 2013/6/18 sagarshah1983 > > That would be really great for me. > Appreciate your reply and time for the same. > > Regards, > Sagar

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

2013-06-18 Thread Ian Vowles
I posted this response a couple of weeks back to a similar question about ADT generic. Ian --- I overcame this issue by creating a GENERIC_ADT message using techniques shown on the Hapi site. Our establishment has many Z-segments, so I had to do all those, and group them accordingly. A basic e

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

2013-06-18 Thread sagarshah1983
That would be really great for me. Appreciate your reply and time for the same. Regards, Sagar Shah LDH-2 wrote: > > I am not aware of one in 1.x... I don't know 2.x well enough yet. I am on > the road, but I can send out later the type of code I have used to be adt > generic. > > > > __

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

2013-06-18 Thread LDH
I am not aware of one in 1.x... I don't know 2.x well enough yet. I am on the road, but I can send out later the type of code I have used to be adt generic. ___ Laurent Hasson (via my BlackBerry) email: l...@360fresh.com cell: 646-283-2186 twitter: @ldhas