First, I'd like to apologize for using a dev-list, couldn't find a user mailing list.
I'm going for generic XML conversion but I'm having problems with custom message types. I haven't found any way to bypass validation if and unknown message type is encountered, e.g. "MFN^ZDR" which gives me a "Can't XML-encode a GenericMessage. Message must have a recognized structure". I also tried implementing a custom class for the message and using a ModelClassFactory in the configuration but all examples I've found define what the segments in the message are, what would be an implementation for "anything goes"? I'm interested in the XML conversion part and not validation at this point. Just a public class MFN_ZDR extends AbstractMessage { private static final long serialVersionUID = 1L; public MFN_ZDR() throws HL7Exception { this(new DefaultModelClassFactory()); } public MFN_ZDR(ModelClassFactory factory) throws HL7Exception { super(factory); } } gives a NPE for at ca.uhn.hl7v2.parser.MessageIterator.addNonStandardSegmentAtCurrentPosition(MessageIterator.java:179). How could I add some sort of "repeating non-standard wilcard-segment" after the call to super? Thanks in advance, Nik -- Nicklas Karlsson, +358 40 5062266 Vaakunatie 10 as 7, 20780 Kaarina
_______________________________________________ Hl7api-devel mailing list Hl7api-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hl7api-devel