All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.camel.component.hl7.HL7251ConverterLoader Maven / Gradle / Ivy

The newest version!
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.hl7;

import javax.annotation.processing.Generated;

import org.apache.camel.CamelContext;
import org.apache.camel.CamelContextAware;
import org.apache.camel.DeferredContextBinding;
import org.apache.camel.Exchange;
import org.apache.camel.TypeConversionException;
import org.apache.camel.TypeConverterLoaderException;
import org.apache.camel.spi.TypeConverterLoader;
import org.apache.camel.spi.TypeConverterRegistry;
import org.apache.camel.support.SimpleTypeConverter;
import org.apache.camel.support.TypeConverterSupport;
import org.apache.camel.util.DoubleMap;

/**
 * Generated by camel build tools - do NOT edit this file!
 */
@Generated("org.apache.camel.maven.packaging.TypeConverterLoaderGeneratorMojo")
@SuppressWarnings("unchecked")
@DeferredContextBinding
public final class HL7251ConverterLoader implements TypeConverterLoader, CamelContextAware {

    private CamelContext camelContext;

    public HL7251ConverterLoader() {
    }

    @Override
    public void setCamelContext(CamelContext camelContext) {
        this.camelContext = camelContext;
    }

    @Override
    public CamelContext getCamelContext() {
        return camelContext;
    }

    @Override
    public void load(TypeConverterRegistry registry) throws TypeConverterLoaderException {
        try {
            registerConverters(registry);
        } catch (Throwable e) {
            // ignore on load error
        }
    }

    private void registerConverters(TypeConverterRegistry registry) {
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ACK.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toACK((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ACK.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toACK((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADR_A19.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdrA19((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADR_A19.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdrA19((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A01.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA01((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A01.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA01((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A02.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA02((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A02.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA02((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A03.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA03((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A03.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA03((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A05.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA05((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A05.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA05((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A06.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA06((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A06.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA06((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A09.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA09((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A09.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA09((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A12.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA12((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A12.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA12((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A15.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA15((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A15.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA15((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A16.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA16((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A16.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA16((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A17.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA17((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A17.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA17((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A18.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA18((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A18.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA18((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A20.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA20((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A20.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA20((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A21.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA21((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A21.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA21((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A24.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA24((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A24.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA24((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A30.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA30((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A30.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA30((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A37.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA37((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A37.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA37((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A38.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA38((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A38.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA38((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A39.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA39((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A39.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA39((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A43.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA43((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A43.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA43((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A45.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA45((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A45.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA45((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A50.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA50((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A50.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA50((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A52.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA52((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A52.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA52((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A54.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA54((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A54.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA54((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A60.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA60((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A60.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA60((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A61.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA61((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_A61.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtA61((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_AXX.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtAXX((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ADT_AXX.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toAdtAXX((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.BAR_P01.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toBarP01((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.BAR_P01.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toBarP01((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.BAR_P02.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toBarP02((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.BAR_P02.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toBarP02((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.BAR_P05.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toBarP05((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.BAR_P05.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toBarP05((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.BAR_P06.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toBarP06((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.BAR_P06.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toBarP06((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.BAR_P10.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toBarP10((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.BAR_P10.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toBarP10((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.BAR_P12.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toBarP12((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.BAR_P12.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toBarP12((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.BPS_O29.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toBpsO29((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.BPS_O29.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toBpsO29((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.BRP_O30.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toBrpO30((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.BRP_O30.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toBrpO30((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.BRT_O32.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toBrtO32((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.BRT_O32.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toBrtO32((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.BTS_O31.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toBtsO31((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.BTS_O31.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toBtsO31((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.CRM_C01.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toCrmC01((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.CRM_C01.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toCrmC01((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.CSU_C09.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toCsuC09((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.CSU_C09.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toCsuC09((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.DFT_P03.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toDftP03((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.DFT_P03.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toDftP03((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.DFT_P11.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toDftP11((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.DFT_P11.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toDftP11((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.DOC_T12.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toDocT12((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.DOC_T12.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toDocT12((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.DSR_Q01.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toDsrQ01((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.DSR_Q01.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toDsrQ01((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.DSR_Q03.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toDsrQ03((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.DSR_Q03.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toDsrQ03((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.EAC_U07.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toEacU07((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.EAC_U07.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toEacU07((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.EAN_U09.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toEanU09((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.EAN_U09.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toEanU09((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.EAR_U08.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toEarU08((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.EAR_U08.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toEarU08((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.EDR_R07.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toEdrR07((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.EDR_R07.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toEdrR07((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.EQQ_Q04.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toEqqQ04((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.EQQ_Q04.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toEqqQ04((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ERP_R09.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toErpR09((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ERP_R09.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toErpR09((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ESR_U02.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toEsrU02((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ESR_U02.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toEsrU02((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ESU_U01.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toEsuU01((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ESU_U01.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toEsuU01((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.INR_U06.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toInrU06((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.INR_U06.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toInrU06((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.INU_U05.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toInuU05((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.INU_U05.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toInuU05((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.LSU_U12.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toLsuU12((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.LSU_U12.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toLsuU12((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MDM_T01.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMdmT01((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MDM_T01.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMdmT01((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MDM_T02.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMdmT02((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MDM_T02.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMdmT02((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFK_M01.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfkM01((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFK_M01.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfkM01((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFN_M01.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfnM01((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFN_M01.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfnM01((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFN_M02.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfnM02((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFN_M02.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfnM02((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFN_M03.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfnM03((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFN_M03.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfnM03((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFN_M04.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfnM04((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFN_M04.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfnM04((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFN_M05.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfnM05((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFN_M05.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfnM05((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFN_M06.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfnM06((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFN_M06.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfnM06((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFN_M07.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfnM07((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFN_M07.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfnM07((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFN_M08.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfnM08((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFN_M08.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfnM08((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFN_M09.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfnM09((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFN_M09.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfnM09((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFN_M10.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfnM10((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFN_M10.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfnM10((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFN_M11.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfnM11((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFN_M11.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfnM11((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFN_M12.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfnM12((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFN_M12.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfnM12((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFN_M13.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfnM13((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFN_M13.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfnM13((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFN_M15.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfnM15((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFN_M15.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfnM15((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFN_Znn.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfnZnn((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFN_Znn.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfnZnn((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFQ_M01.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfqM01((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFQ_M01.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfqM01((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFR_M01.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfrM01((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFR_M01.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfrM01((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFR_M04.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfrM04((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFR_M04.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfrM04((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFR_M05.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfrM05((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFR_M05.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfrM05((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFR_M06.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfrM06((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFR_M06.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfrM06((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFR_M07.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfrM07((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.MFR_M07.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toMfrM07((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.NMD_N02.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toNmdN02((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.NMD_N02.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toNmdN02((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.NMQ_N01.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toNmqN01((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.NMQ_N01.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toNmqN01((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.NMR_N01.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toNmrN01((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.NMR_N01.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toNmrN01((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.OMB_O27.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOmbO27((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.OMB_O27.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOmbO27((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.OMD_O03.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOmdO03((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.OMD_O03.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOmdO03((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.OMG_O19.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOmgO19((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.OMG_O19.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOmgO19((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.OMI_O23.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOmiO23((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.OMI_O23.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOmiO23((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.OML_O21.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOmlO21((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.OML_O21.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOmlO21((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.OML_O33.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOmlO33((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.OML_O33.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOmlO33((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.OML_O35.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOmlO35((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.OML_O35.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOmlO35((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.OMN_O07.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOmnO07((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.OMN_O07.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOmnO07((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.OMP_O09.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOmpO09((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.OMP_O09.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOmpO09((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.OMS_O05.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOmsO05((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.OMS_O05.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOmsO05((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ORB_O28.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOrbO28((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ORB_O28.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOrbO28((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ORD_O04.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOrdO04((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ORD_O04.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOrdO04((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ORF_R04.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOrfR04((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ORF_R04.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOrfR04((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ORG_O20.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOrgO20((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ORG_O20.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOrgO20((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ORI_O24.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOriO24((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ORI_O24.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOriO24((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ORL_O22.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOrlO22((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ORL_O22.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOrlO22((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ORL_O34.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOrlO34((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ORL_O34.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOrlO34((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ORL_O36.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOrlO36((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ORL_O36.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOrlO36((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ORM_O01.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOrmO01((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ORM_O01.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOrmO01((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ORN_O08.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOrnO08((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ORN_O08.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOrnO08((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ORP_O10.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOrpO10((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ORP_O10.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOrpO10((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ORR_O02.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOrrO02((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ORR_O02.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOrrO02((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ORS_O06.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOrsO06((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ORS_O06.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOrsO06((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ORU_R01.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOruR01((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ORU_R01.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOruR01((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ORU_R30.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOruR30((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ORU_R30.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOruR30((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.OSQ_Q06.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOsqQ06((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.OSQ_Q06.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOsqQ06((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.OSR_Q06.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOsrQ06((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.OSR_Q06.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOsrQ06((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.OUL_R21.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOulR21((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.OUL_R21.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOulR21((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.OUL_R22.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOulR22((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.OUL_R22.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOulR22((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.OUL_R23.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOulR23((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.OUL_R23.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOulR23((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.OUL_R24.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOulR24((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.OUL_R24.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toOulR24((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.PEX_P07.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toPexP07((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.PEX_P07.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toPexP07((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.PGL_PC6.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toPglPc6((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.PGL_PC6.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toPglPc6((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.PMU_B01.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toPmuB01((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.PMU_B01.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toPmuB01((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.PMU_B03.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toPmuB03((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.PMU_B03.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toPmuB03((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.PMU_B04.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toPmuB04((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.PMU_B04.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toPmuB04((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.PMU_B07.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toPmuB07((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.PMU_B07.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toPmuB07((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.PMU_B08.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toPmuB08((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.PMU_B08.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toPmuB08((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.PPG_PCG.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toPpgPcg((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.PPG_PCG.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toPpgPcg((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.PPP_PCB.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toPppPcb((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.PPP_PCB.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toPppPcb((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.PPR_PC1.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toPprPc1((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.PPR_PC1.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toPprPc1((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.PPT_PCL.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toPptPcl((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.PPT_PCL.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toPptPcl((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.PPV_PCA.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toPpvPca((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.PPV_PCA.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toPpvPca((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.PRR_PC5.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toPrrPc5((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.PRR_PC5.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toPrrPc5((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.PTR_PCF.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toPtrPcf((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.PTR_PCF.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toPtrPcf((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.QBP_Q11.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toQbpQ11((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.QBP_Q11.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toQbpQ11((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.QBP_Q13.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toQbpQ13((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.QBP_Q13.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toQbpQ13((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.QBP_Q15.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toQbpQ15((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.QBP_Q15.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toQbpQ15((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.QBP_Q21.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toQbpQ21((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.QBP_Q21.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toQbpQ21((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.QBP_Qnn.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toQbpQnn((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.QBP_Qnn.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toQbpQnn((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.QBP_Z73.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toQbpZ73((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.QBP_Z73.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toQbpZ73((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.QCK_Q02.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toQckQ02((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.QCK_Q02.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toQckQ02((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.QCN_J01.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toQcnJ01((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.QCN_J01.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toQcnJ01((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.QRY.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toQry((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.QRY.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toQry((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.QRY_A19.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toQryA19((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.QRY_A19.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toQryA19((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.QRY_PC4.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toQryPC4((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.QRY_PC4.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toQryPC4((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.QRY_Q01.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toQryQ01((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.QRY_Q01.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toQryQ01((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.QRY_Q02.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toQryQ02((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.QRY_Q02.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toQryQ02((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.QRY_R02.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toQryR02((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.QRY_R02.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toQryR02((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.QSB_Q16.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toQsbQ16((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.QSB_Q16.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toQsbQ16((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.QVR_Q17.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toQvrQ17((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.QVR_Q17.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toQvrQ17((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RAR_RAR.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRarRar((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RAR_RAR.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRarRar((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RAS_O17.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRasO17((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RAS_O17.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRasO17((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RCI_I05.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRciI05((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RCI_I05.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRciI05((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RCL_I06.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRclI06((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RCL_I06.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRclI06((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RDE_O11.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRdeO11((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RDE_O11.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRdeO11((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RDS_O13.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRdsO13((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RDS_O13.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRdsO13((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RDY_K15.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRdyK15((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RDY_K15.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRdyK15((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.REF_I12.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRefI12((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.REF_I12.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRefI12((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RER_RER.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRerRer((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RER_RER.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRerRer((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RGR_RGR.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRgrRgr((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RGR_RGR.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRgrRgr((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RGV_O15.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRgvO15((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RGV_O15.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRgvO15((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ROR_ROR.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRorRor((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.ROR_ROR.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRorRor((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RPA_I08.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRpaI08((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RPA_I08.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRpaI08((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RPI_I01.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRpiI01((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RPI_I01.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRpiI01((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RPI_I04.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRpiI04((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RPI_I04.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRpiI04((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RPL_I02.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRplI02((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RPL_I02.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRplI02((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RPR_I03.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRprI03((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RPR_I03.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRprI03((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RQA_I08.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRqaI08((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RQA_I08.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRqaI08((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RQC_I05.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRqcI05((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RQC_I05.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRqcI05((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RQI_I01.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRqiI01((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RQI_I01.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRqiI01((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RQP_I04.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRqpI04((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RQP_I04.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRqpI04((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RQQ_Q09.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRqqQ09((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RQQ_Q09.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRqqQ09((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RRA_O18.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRraO18((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RRA_O18.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRraO18((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RRD_O14.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRrdO14((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RRD_O14.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRrdO14((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RRE_O12.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRreO12((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RRE_O12.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRreO12((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RRG_O16.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRrgO16((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RRG_O16.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRrgO16((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RRI_I12.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRriI12((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RRI_I12.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRriI12((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RSP_K11.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRspK11((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RSP_K11.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRspK11((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RSP_K21.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRspK21((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RSP_K21.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRspK21((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RSP_K23.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRspK23((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RSP_K23.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRspK23((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RSP_K25.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRspK25((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RSP_K25.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRspK25((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RSP_K31.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRspK31((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RSP_K31.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRspK31((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RSP_Q11.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRspQ11((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RSP_Q11.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRspQ11((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RSP_Z82.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRspZ82((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RSP_Z82.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRspZ82((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RSP_Z86.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRspZ86((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RSP_Z86.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRspZ86((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RSP_Z88.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRspZ88((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RSP_Z88.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRspZ88((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RSP_Z90.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRspZ90((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RSP_Z90.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRspZ90((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RTB_K13.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRtbK13((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RTB_K13.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRtbK13((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RTB_Knn.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRtbKnn((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RTB_Knn.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRtbKnn((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RTB_Z74.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRtbZ74((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.RTB_Z74.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toRtbZ74((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.SIU_S12.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toSiuS12((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.SIU_S12.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toSiuS12((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.SPQ_Q08.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toSpqQ08((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.SPQ_Q08.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toSpqQ08((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.SQM_S25.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toSqmS25((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.SQM_S25.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toSqmS25((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.SQR_S25.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toSqrS25((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.SQR_S25.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toSqrS25((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.SRM_S01.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toSrmS01((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.SRM_S01.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toSrmS01((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.SRR_S01.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toSrrS01((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.SRR_S01.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toSrrS01((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.SSR_U04.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toSsrU04((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.SSR_U04.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toSsrU04((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.SSU_U03.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toSsuU03((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.SSU_U03.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toSsuU03((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.SUR_P09.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toSurP09((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.SUR_P09.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toSurP09((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.TBR_R08.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toTbrR08((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.TBR_R08.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toTbrR08((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.TCU_U10.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toTcuU10((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.TCU_U10.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toTcuU10((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.UDM_Q05.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toUdmQ05((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.UDM_Q05.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toUdmQ05((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.VQQ_Q07.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toVqqQ07((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.VQQ_Q07.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toVqqQ07((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.VXQ_V01.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toVxqV01((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.VXQ_V01.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toVxqV01((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.VXR_V03.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toVxrV03((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.VXR_V03.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toVxrV03((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.VXU_V04.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toVxuV04((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.VXU_V04.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toVxuV04((java.lang.String) value));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.VXX_V02.class, byte[].class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toVxxV02((byte[]) value, exchange));
        addTypeConverter(registry, ca.uhn.hl7v2.model.v251.message.VXX_V02.class, java.lang.String.class, false,
            (type, exchange, value) -> org.apache.camel.component.hl7.HL7251Converter.toVxxV02((java.lang.String) value));
    }

    private static void addTypeConverter(TypeConverterRegistry registry, Class toType, Class fromType, boolean allowNull, SimpleTypeConverter.ConversionMethod method) {
        registry.addTypeConverter(toType, fromType, new SimpleTypeConverter(allowNull, method));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy