Re: [HAPI-devel] Custom Model Classes

2015-12-22 Thread Ian Vowles
Following up on the example of our ORMIS message I posted earlier, I added an implementation called ORM_Q01. Code basically exactly the same as the ORU_R01 posted earlier (see below) I then added a test case to our test class (see further below), and successfully got an implementation of the cu

Re: [HAPI-devel] Custom Model Classes

2015-12-22 Thread Davies, Brian
Forgot to include the exception: RDS_R06is called!!! Exception in thread "main" java.lang.ClassCastException: ca.uhn.hl7v2.model.GenericSegment cannot be cast to com.mckn.mms.lds.hl7.zxx.custommodel.v25.group.PFG at com.mckn.mms.lds.hl7.zxx.custommodelv25.message.RDS_R06.getPFG(RDS_R

[HAPI-devel] Custom Model Classes

2015-12-22 Thread Davies, Brian
Hi All, It seems to me that the custom model classes simply do not recognize the AbstractGroup types even when one tries to forcefully load the group from the custom model. I think Christian is absolutely right that the eventmap is the solution known to work for this issue. The problem for me