I'm trying to integrate with a third party system that is using CON segments in
ADT messages. These are 2.5 message structures and I have found that the
library has a shell for this in the CON_ segment type
(http://hl7api.sourceforge.net/v251/apidocs/ca/uhn/hl7v2/model/v251/segment/CON_.html)
When I instantiate this class by extending the ADT_A01 message type, with a
this.add(ca.uhn.hl7v2.model.v25.segment.CON_.class, false, false,
indexOfPID+2);
in the constructor or
this.add(au.org.rch.custom.v25.segment.TST.class, false, false,
indexOfPID+1);
This results in a printStructure that looks reasonable:
MSH -
MSH|^~\&|xxx|xxx|xxx|xxx|20150604160029||ADT^A01^ADT_A01|xxxx|T|2.4|||AL|NE|AUS||en^^ISO
639-1
EVN - EVN|A01|20150604155951
PID - PID|||xxxxx|||||||
[ TST ] - TST||adf|||||||||||||||||||Y
[ CON_ ] - CON_
[ PD1 ] - PD1
The problem that I'm struggling with is that the segment is incorrectly named
either CON_ or TST. This is due to a limitation in the windows file system not
allowing the filename to be CON.java which I believe would then name the
segment correctly.
I've been parsing the code to try to understand where this is set but I can't
seem to find the correct way to change this. Has anyone else tried to set the
name of the segment to be different to the class name and if so, how can I do
this?
Thanks for reading through this and any help would be appreciated.
Andrew
------------------------------------------------------------------------------
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel