camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mconner <>
Subject HL7 and Custom Models
Date Tue, 21 Aug 2012 14:30:28 GMT
I'm trying to use the HL7 component in Camel, but I have a custom model. 
Outside of camel, I can do this with:     new PipeParser(ModelClassFactory

However, I don't see any direct way to configure that in Camel.  In
org.apache.camel.component.hl7.HL7Converter (camel-hl7-2.2.0), the parser is
hard-coded, and I don't see a simple way to configure it.:

    static Message parse(String body, boolean validate) throws HL7Exception
        // replace \n with \r as HL7 uses 0x0d = \r as segment terminators
and HAPI only parses with \r
        body = body.replace('\n', '\r');

        Parser parser = new PipeParser();
        if (!validate) {
            parser.setValidationContext(new NoValidation());
        return parser.parse(body);

Is there a way to do this?

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message