diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/datatypes10_50/Type10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/datatypes10_50/Type10_50.java index 2e809d675..39db7e923 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/datatypes10_50/Type10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/datatypes10_50/Type10_50.java @@ -133,9 +133,9 @@ public class Type10_50 { return UnsignedInt10_50.convertUnsignedInt((org.hl7.fhir.r5.model.UnsignedIntType) src); if (src instanceof org.hl7.fhir.r5.model.IntegerType) return Integer10_50.convertInteger((org.hl7.fhir.r5.model.IntegerType) src); - if (src instanceof org.hl7.fhir.r5.model.UriType) return Uri10_50.convertUri((org.hl7.fhir.r5.model.UriType) src); if (src instanceof org.hl7.fhir.r5.model.UuidType) return Uuid10_50.convertUuid((org.hl7.fhir.r5.model.UuidType) src); + if (src instanceof org.hl7.fhir.r5.model.UriType) return Uri10_50.convertUri((org.hl7.fhir.r5.model.UriType) src); if (src instanceof org.hl7.fhir.r5.model.Extension) return Extension10_50.convertExtension((org.hl7.fhir.r5.model.Extension) src); if (src instanceof org.hl7.fhir.r5.model.Narrative) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/datatypes10_50/primitivetypes10_50/Code10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/datatypes10_50/primitivetypes10_50/Code10_50.java index 204d406f8..f37e1d25e 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/datatypes10_50/primitivetypes10_50/Code10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/datatypes10_50/primitivetypes10_50/Code10_50.java @@ -17,13 +17,13 @@ public class Code10_50 { } public static org.hl7.fhir.r5.model.UriType convertCodeToUri(org.hl7.fhir.dstu2.model.CodeType src) throws FHIRException { - org.hl7.fhir.r5.model.UriType tgt = src.hasValue() ? new org.hl7.fhir.r5.model.UriType(src.getValue()) : new org.hl7.fhir.r5.model.UriType(); + org.hl7.fhir.r5.model.UriType tgt = src.hasValue() ? new org.hl7.fhir.r5.model.UriType(src.getValueAsString()) : new org.hl7.fhir.r5.model.UriType(); ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); return tgt; } public static org.hl7.fhir.dstu2.model.CodeType convertUriToCode(org.hl7.fhir.r5.model.UriType src) throws FHIRException { - org.hl7.fhir.dstu2.model.CodeType tgt = src.hasValue() ? new org.hl7.fhir.dstu2.model.CodeType(src.getValue()) : new org.hl7.fhir.dstu2.model.CodeType(); + org.hl7.fhir.dstu2.model.CodeType tgt = src.hasValue() ? new org.hl7.fhir.dstu2.model.CodeType(src.getValueAsString()) : new org.hl7.fhir.dstu2.model.CodeType(); ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); return tgt; } diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/datatypes10_50/primitivetypes10_50/MarkDown10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/datatypes10_50/primitivetypes10_50/MarkDown10_50.java index 76eab91a2..7c906bc19 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/datatypes10_50/primitivetypes10_50/MarkDown10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/datatypes10_50/primitivetypes10_50/MarkDown10_50.java @@ -17,13 +17,13 @@ public class MarkDown10_50 { } public static org.hl7.fhir.r5.model.MarkdownType convertStringToMarkdown(org.hl7.fhir.dstu2.model.StringType src) throws FHIRException { - org.hl7.fhir.r5.model.MarkdownType tgt = src.hasValue() ? new org.hl7.fhir.r5.model.MarkdownType(src.getValue()) : new org.hl7.fhir.r5.model.MarkdownType(); + org.hl7.fhir.r5.model.MarkdownType tgt = src.hasValue() ? new org.hl7.fhir.r5.model.MarkdownType(src.getValueAsString()) : new org.hl7.fhir.r5.model.MarkdownType(); ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); return tgt; } public static org.hl7.fhir.dstu2.model.StringType convertMarkdownToString(org.hl7.fhir.r5.model.MarkdownType src) throws FHIRException { - org.hl7.fhir.dstu2.model.StringType tgt = src.hasValue() ? new org.hl7.fhir.dstu2.model.StringType(src.getValue()) : new org.hl7.fhir.dstu2.model.StringType(); + org.hl7.fhir.dstu2.model.StringType tgt = src.hasValue() ? new org.hl7.fhir.dstu2.model.StringType(src.getValueAsString()) : new org.hl7.fhir.dstu2.model.StringType(); ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); return tgt; } diff --git a/org.hl7.fhir.convertors/src/test/java/org/hl7/fhir/convertors/VersionConvertorPrimitiveTypeTests.java b/org.hl7.fhir.convertors/src/test/java/org/hl7/fhir/convertors/VersionConvertorPrimitiveTypeTests.java index 53d68c2c3..1811586ca 100644 --- a/org.hl7.fhir.convertors/src/test/java/org/hl7/fhir/convertors/VersionConvertorPrimitiveTypeTests.java +++ b/org.hl7.fhir.convertors/src/test/java/org/hl7/fhir/convertors/VersionConvertorPrimitiveTypeTests.java @@ -1,6 +1,12 @@ package org.hl7.fhir.convertors; +import org.hl7.fhir.convertors.context.ConversionContext10_30; +import org.hl7.fhir.convertors.context.ConversionContext10_40; +import org.hl7.fhir.convertors.context.ConversionContext10_50; +import org.hl7.fhir.convertors.conv10_30.VersionConvertor_10_30; +import org.hl7.fhir.convertors.conv10_40.VersionConvertor_10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Canonical10_40; +import org.hl7.fhir.convertors.conv10_50.VersionConvertor_10_50; import org.hl7.fhir.convertors.factory.*; import org.hl7.fhir.r4.model.CanonicalType; import org.junit.jupiter.api.Assertions; @@ -8,21 +14,26 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.Arguments; import org.junit.jupiter.params.provider.MethodSource; +import org.mockito.MockedStatic; +import org.mockito.Mockito; import java.lang.reflect.Array; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; +import java.lang.reflect.ParameterizedType; import java.math.BigDecimal; import java.util.Arrays; import java.util.concurrent.Callable; import java.util.function.Function; import java.util.stream.Stream; +import static org.mockito.Mockito.mock; + public class VersionConvertorPrimitiveTypeTests { private static String[] BASE64_BINARY_STRINGS = { - "dGhpcyBpcyB2YWxpZCBiYXNlNjQ=" + "dGhpcyBpcyB2YWxpZCBiYXNlNjQ=" }; private static String[] BOOLEAN_STRINGS = { @@ -46,7 +57,7 @@ public class VersionConvertorPrimitiveTypeTests { private static String[] ID_STRINGS = { "345e3443345343f3453.t34g5348t3-45t34" }; - + private static String[] STRING_STRINGS = { "something", "?", "Han shot first", "" }; @@ -69,7 +80,7 @@ public class VersionConvertorPrimitiveTypeTests { private static String[] TIME_STRINGS = { "12:34:56", "12:34:56.789" }; - + private static String[] UNSIGNED_INT_STRINGS = { "0", "12345", Integer.toString(Integer.MAX_VALUE) }; @@ -92,712 +103,712 @@ public class VersionConvertorPrimitiveTypeTests { }; private static String[] SECOND_DATE_PRECISION_STRINGS = - Stream.concat(Arrays.stream(DEFAULT_DATE_PRECISION_STRINGS),Stream.of("1933-01-02T13:45:12")) + Stream.concat(Arrays.stream(DEFAULT_DATE_PRECISION_STRINGS), Stream.of("1933-01-02T13:45:12")) .toArray(size -> (String[]) Array.newInstance(String.class, size)); private static String[] MILLISECOND_DATE_PRECISION_STRINGS = - Stream.concat(Arrays.stream(SECOND_DATE_PRECISION_STRINGS),Stream.of("1933-01-02T13:45:12.3", "1933-01-02T13:45:12.3456")) + Stream.concat(Arrays.stream(SECOND_DATE_PRECISION_STRINGS), Stream.of("1933-01-02T13:45:12.3", "1933-01-02T13:45:12.3456")) .toArray(size -> (String[]) Array.newInstance(String.class, size)); private static String[] INSTANT_PRECISION_STRINGS = { "1933-01-02T13:45:12", "1933-01-02T13:45:12.3", "1933-01-02T13:45:12.3456" }; - - private static Stream getFactoryConversionParams(Class versionConverterFactoryClazz, Class firstTypeClazz, Class firstTypeMethodClazz, Class secondTypeClazz, Class secondTypeMethodClazz, String[] testStrings) { - return Arrays.stream(testStrings).map( it -> Arguments.of(versionConverterFactoryClazz, + private static Stream getFactoryConversionParams(Class versionConverterFactoryClazz, Class firstTypeClazz, Class firstTypeMethodClazz, Class secondTypeClazz, Class secondTypeMethodClazz, String[] testStrings) { + + return Arrays.stream(testStrings).map(it -> Arguments.of(versionConverterFactoryClazz, firstTypeClazz, firstTypeMethodClazz, it, secondTypeClazz, secondTypeMethodClazz, it )); } private static Stream getFactoryParams() { - return Stream.of( - //Base64Binary - getFactoryConversionParams(VersionConvertorFactory_10_30.class, - org.hl7.fhir.dstu2.model.Base64BinaryType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.dstu3.model.Base64BinaryType.class, org.hl7.fhir.dstu3.model.Type.class, - BASE64_BINARY_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_10_40.class, - org.hl7.fhir.dstu2.model.Base64BinaryType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.r4.model.Base64BinaryType.class, org.hl7.fhir.r4.model.Type.class, - BASE64_BINARY_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_10_50.class, - org.hl7.fhir.dstu2.model.Base64BinaryType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.r5.model.Base64BinaryType.class, org.hl7.fhir.r5.model.DataType.class, - BASE64_BINARY_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_30.class, - org.hl7.fhir.dstu2016may.model.Base64BinaryType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.dstu3.model.Base64BinaryType.class, org.hl7.fhir.dstu3.model.Type.class, - BASE64_BINARY_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_40.class, - org.hl7.fhir.dstu2016may.model.Base64BinaryType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.r4.model.Base64BinaryType.class, org.hl7.fhir.r4.model.Type.class, - BASE64_BINARY_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_50.class, - org.hl7.fhir.dstu2016may.model.Base64BinaryType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.r5.model.Base64BinaryType.class, org.hl7.fhir.r5.model.DataType.class, - BASE64_BINARY_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_30_40.class, - org.hl7.fhir.dstu3.model.Base64BinaryType.class, org.hl7.fhir.dstu3.model.Type.class, - org.hl7.fhir.r4.model.Base64BinaryType.class, org.hl7.fhir.r4.model.Type.class, - BASE64_BINARY_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_30_50.class, - org.hl7.fhir.dstu3.model.Base64BinaryType.class, org.hl7.fhir.dstu3.model.Type.class, - org.hl7.fhir.r5.model.Base64BinaryType.class, org.hl7.fhir.r5.model.DataType.class, - BASE64_BINARY_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_40_50.class, - org.hl7.fhir.r4.model.Base64BinaryType.class, org.hl7.fhir.r4.model.Type.class, - org.hl7.fhir.r5.model.Base64BinaryType.class, org.hl7.fhir.r5.model.DataType.class, - BASE64_BINARY_STRINGS), + return Stream.of( + //Base64Binary + getFactoryConversionParams(VersionConvertorFactory_10_30.class, + org.hl7.fhir.dstu2.model.Base64BinaryType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.dstu3.model.Base64BinaryType.class, org.hl7.fhir.dstu3.model.Type.class, + BASE64_BINARY_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_10_40.class, + org.hl7.fhir.dstu2.model.Base64BinaryType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.r4.model.Base64BinaryType.class, org.hl7.fhir.r4.model.Type.class, + BASE64_BINARY_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_10_50.class, + org.hl7.fhir.dstu2.model.Base64BinaryType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.r5.model.Base64BinaryType.class, org.hl7.fhir.r5.model.DataType.class, + BASE64_BINARY_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_30.class, + org.hl7.fhir.dstu2016may.model.Base64BinaryType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.dstu3.model.Base64BinaryType.class, org.hl7.fhir.dstu3.model.Type.class, + BASE64_BINARY_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_40.class, + org.hl7.fhir.dstu2016may.model.Base64BinaryType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.r4.model.Base64BinaryType.class, org.hl7.fhir.r4.model.Type.class, + BASE64_BINARY_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_50.class, + org.hl7.fhir.dstu2016may.model.Base64BinaryType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.r5.model.Base64BinaryType.class, org.hl7.fhir.r5.model.DataType.class, + BASE64_BINARY_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_30_40.class, + org.hl7.fhir.dstu3.model.Base64BinaryType.class, org.hl7.fhir.dstu3.model.Type.class, + org.hl7.fhir.r4.model.Base64BinaryType.class, org.hl7.fhir.r4.model.Type.class, + BASE64_BINARY_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_30_50.class, + org.hl7.fhir.dstu3.model.Base64BinaryType.class, org.hl7.fhir.dstu3.model.Type.class, + org.hl7.fhir.r5.model.Base64BinaryType.class, org.hl7.fhir.r5.model.DataType.class, + BASE64_BINARY_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_40_50.class, + org.hl7.fhir.r4.model.Base64BinaryType.class, org.hl7.fhir.r4.model.Type.class, + org.hl7.fhir.r5.model.Base64BinaryType.class, org.hl7.fhir.r5.model.DataType.class, + BASE64_BINARY_STRINGS), - //Boolean - getFactoryConversionParams(VersionConvertorFactory_10_30.class, - org.hl7.fhir.dstu2.model.BooleanType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.dstu3.model.BooleanType.class, org.hl7.fhir.dstu3.model.Type.class, - BOOLEAN_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_10_40.class, - org.hl7.fhir.dstu2.model.BooleanType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.r4.model.BooleanType.class, org.hl7.fhir.r4.model.Type.class, - BOOLEAN_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_10_50.class, - org.hl7.fhir.dstu2.model.BooleanType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.r5.model.BooleanType.class, org.hl7.fhir.r5.model.DataType.class, - BOOLEAN_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_30.class, - org.hl7.fhir.dstu2016may.model.BooleanType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.dstu3.model.BooleanType.class, org.hl7.fhir.dstu3.model.Type.class, - BOOLEAN_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_40.class, - org.hl7.fhir.dstu2016may.model.BooleanType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.r4.model.BooleanType.class, org.hl7.fhir.r4.model.Type.class, - BOOLEAN_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_50.class, - org.hl7.fhir.dstu2016may.model.BooleanType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.r5.model.BooleanType.class, org.hl7.fhir.r5.model.DataType.class, - BOOLEAN_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_30_40.class, - org.hl7.fhir.dstu3.model.BooleanType.class, org.hl7.fhir.dstu3.model.Type.class, - org.hl7.fhir.r4.model.BooleanType.class, org.hl7.fhir.r4.model.Type.class, - BOOLEAN_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_30_50.class, - org.hl7.fhir.dstu3.model.BooleanType.class, org.hl7.fhir.dstu3.model.Type.class, - org.hl7.fhir.r5.model.BooleanType.class, org.hl7.fhir.r5.model.DataType.class, - BOOLEAN_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_40_50.class, - org.hl7.fhir.r4.model.BooleanType.class, org.hl7.fhir.r4.model.Type.class, - org.hl7.fhir.r5.model.BooleanType.class, org.hl7.fhir.r5.model.DataType.class, - BOOLEAN_STRINGS), + //Boolean + getFactoryConversionParams(VersionConvertorFactory_10_30.class, + org.hl7.fhir.dstu2.model.BooleanType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.dstu3.model.BooleanType.class, org.hl7.fhir.dstu3.model.Type.class, + BOOLEAN_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_10_40.class, + org.hl7.fhir.dstu2.model.BooleanType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.r4.model.BooleanType.class, org.hl7.fhir.r4.model.Type.class, + BOOLEAN_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_10_50.class, + org.hl7.fhir.dstu2.model.BooleanType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.r5.model.BooleanType.class, org.hl7.fhir.r5.model.DataType.class, + BOOLEAN_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_30.class, + org.hl7.fhir.dstu2016may.model.BooleanType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.dstu3.model.BooleanType.class, org.hl7.fhir.dstu3.model.Type.class, + BOOLEAN_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_40.class, + org.hl7.fhir.dstu2016may.model.BooleanType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.r4.model.BooleanType.class, org.hl7.fhir.r4.model.Type.class, + BOOLEAN_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_50.class, + org.hl7.fhir.dstu2016may.model.BooleanType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.r5.model.BooleanType.class, org.hl7.fhir.r5.model.DataType.class, + BOOLEAN_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_30_40.class, + org.hl7.fhir.dstu3.model.BooleanType.class, org.hl7.fhir.dstu3.model.Type.class, + org.hl7.fhir.r4.model.BooleanType.class, org.hl7.fhir.r4.model.Type.class, + BOOLEAN_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_30_50.class, + org.hl7.fhir.dstu3.model.BooleanType.class, org.hl7.fhir.dstu3.model.Type.class, + org.hl7.fhir.r5.model.BooleanType.class, org.hl7.fhir.r5.model.DataType.class, + BOOLEAN_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_40_50.class, + org.hl7.fhir.r4.model.BooleanType.class, org.hl7.fhir.r4.model.Type.class, + org.hl7.fhir.r5.model.BooleanType.class, org.hl7.fhir.r5.model.DataType.class, + BOOLEAN_STRINGS), - //Code - getFactoryConversionParams(VersionConvertorFactory_10_30.class, - org.hl7.fhir.dstu2.model.CodeType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.dstu3.model.CodeType.class, org.hl7.fhir.dstu3.model.Type.class, - STRING_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_10_40.class, - org.hl7.fhir.dstu2.model.CodeType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.r4.model.CodeType.class, org.hl7.fhir.r4.model.Type.class, - STRING_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_10_50.class, - org.hl7.fhir.dstu2.model.CodeType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.r5.model.CodeType.class, org.hl7.fhir.r5.model.DataType.class, - STRING_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_30.class, - org.hl7.fhir.dstu2016may.model.CodeType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.dstu3.model.CodeType.class, org.hl7.fhir.dstu3.model.Type.class, - STRING_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_40.class, - org.hl7.fhir.dstu2016may.model.CodeType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.r4.model.CodeType.class, org.hl7.fhir.r4.model.Type.class, - STRING_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_50.class, - org.hl7.fhir.dstu2016may.model.CodeType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.r5.model.CodeType.class, org.hl7.fhir.r5.model.DataType.class, - STRING_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_30_40.class, - org.hl7.fhir.dstu3.model.CodeType.class, org.hl7.fhir.dstu3.model.Type.class, - org.hl7.fhir.r4.model.CodeType.class, org.hl7.fhir.r4.model.Type.class, - STRING_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_30_50.class, - org.hl7.fhir.dstu3.model.CodeType.class, org.hl7.fhir.dstu3.model.Type.class, - org.hl7.fhir.r5.model.CodeType.class, org.hl7.fhir.r5.model.DataType.class, - STRING_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_40_50.class, - org.hl7.fhir.r4.model.CodeType.class, org.hl7.fhir.r4.model.Type.class, - org.hl7.fhir.r5.model.CodeType.class, org.hl7.fhir.r5.model.DataType.class, - STRING_STRINGS), + //Code + getFactoryConversionParams(VersionConvertorFactory_10_30.class, + org.hl7.fhir.dstu2.model.CodeType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.dstu3.model.CodeType.class, org.hl7.fhir.dstu3.model.Type.class, + STRING_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_10_40.class, + org.hl7.fhir.dstu2.model.CodeType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.r4.model.CodeType.class, org.hl7.fhir.r4.model.Type.class, + STRING_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_10_50.class, + org.hl7.fhir.dstu2.model.CodeType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.r5.model.CodeType.class, org.hl7.fhir.r5.model.DataType.class, + STRING_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_30.class, + org.hl7.fhir.dstu2016may.model.CodeType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.dstu3.model.CodeType.class, org.hl7.fhir.dstu3.model.Type.class, + STRING_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_40.class, + org.hl7.fhir.dstu2016may.model.CodeType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.r4.model.CodeType.class, org.hl7.fhir.r4.model.Type.class, + STRING_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_50.class, + org.hl7.fhir.dstu2016may.model.CodeType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.r5.model.CodeType.class, org.hl7.fhir.r5.model.DataType.class, + STRING_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_30_40.class, + org.hl7.fhir.dstu3.model.CodeType.class, org.hl7.fhir.dstu3.model.Type.class, + org.hl7.fhir.r4.model.CodeType.class, org.hl7.fhir.r4.model.Type.class, + STRING_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_30_50.class, + org.hl7.fhir.dstu3.model.CodeType.class, org.hl7.fhir.dstu3.model.Type.class, + org.hl7.fhir.r5.model.CodeType.class, org.hl7.fhir.r5.model.DataType.class, + STRING_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_40_50.class, + org.hl7.fhir.r4.model.CodeType.class, org.hl7.fhir.r4.model.Type.class, + org.hl7.fhir.r5.model.CodeType.class, org.hl7.fhir.r5.model.DataType.class, + STRING_STRINGS), - //Decimal - getFactoryConversionParams(VersionConvertorFactory_10_30.class, - org.hl7.fhir.dstu2.model.DecimalType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.dstu3.model.DecimalType.class, org.hl7.fhir.dstu3.model.Type.class, - DECIMAL_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_10_40.class, - org.hl7.fhir.dstu2.model.DecimalType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.r4.model.DecimalType.class, org.hl7.fhir.r4.model.Type.class, - DECIMAL_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_10_50.class, - org.hl7.fhir.dstu2.model.DecimalType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.r5.model.DecimalType.class, org.hl7.fhir.r5.model.DataType.class, - DECIMAL_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_30.class, - org.hl7.fhir.dstu2016may.model.DecimalType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.dstu3.model.DecimalType.class, org.hl7.fhir.dstu3.model.Type.class, - DECIMAL_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_40.class, - org.hl7.fhir.dstu2016may.model.DecimalType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.r4.model.DecimalType.class, org.hl7.fhir.r4.model.Type.class, - DECIMAL_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_50.class, - org.hl7.fhir.dstu2016may.model.DecimalType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.r5.model.DecimalType.class, org.hl7.fhir.r5.model.DataType.class, - DECIMAL_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_30_40.class, - org.hl7.fhir.dstu3.model.DecimalType.class, org.hl7.fhir.dstu3.model.Type.class, - org.hl7.fhir.r4.model.DecimalType.class, org.hl7.fhir.r4.model.Type.class, - DECIMAL_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_30_50.class, - org.hl7.fhir.dstu3.model.DecimalType.class, org.hl7.fhir.dstu3.model.Type.class, - org.hl7.fhir.r5.model.DecimalType.class, org.hl7.fhir.r5.model.DataType.class, - DECIMAL_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_40_50.class, - org.hl7.fhir.r4.model.DecimalType.class, org.hl7.fhir.r4.model.Type.class, - org.hl7.fhir.r5.model.DecimalType.class, org.hl7.fhir.r5.model.DataType.class, - DECIMAL_STRINGS), + //Decimal + getFactoryConversionParams(VersionConvertorFactory_10_30.class, + org.hl7.fhir.dstu2.model.DecimalType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.dstu3.model.DecimalType.class, org.hl7.fhir.dstu3.model.Type.class, + DECIMAL_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_10_40.class, + org.hl7.fhir.dstu2.model.DecimalType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.r4.model.DecimalType.class, org.hl7.fhir.r4.model.Type.class, + DECIMAL_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_10_50.class, + org.hl7.fhir.dstu2.model.DecimalType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.r5.model.DecimalType.class, org.hl7.fhir.r5.model.DataType.class, + DECIMAL_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_30.class, + org.hl7.fhir.dstu2016may.model.DecimalType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.dstu3.model.DecimalType.class, org.hl7.fhir.dstu3.model.Type.class, + DECIMAL_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_40.class, + org.hl7.fhir.dstu2016may.model.DecimalType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.r4.model.DecimalType.class, org.hl7.fhir.r4.model.Type.class, + DECIMAL_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_50.class, + org.hl7.fhir.dstu2016may.model.DecimalType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.r5.model.DecimalType.class, org.hl7.fhir.r5.model.DataType.class, + DECIMAL_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_30_40.class, + org.hl7.fhir.dstu3.model.DecimalType.class, org.hl7.fhir.dstu3.model.Type.class, + org.hl7.fhir.r4.model.DecimalType.class, org.hl7.fhir.r4.model.Type.class, + DECIMAL_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_30_50.class, + org.hl7.fhir.dstu3.model.DecimalType.class, org.hl7.fhir.dstu3.model.Type.class, + org.hl7.fhir.r5.model.DecimalType.class, org.hl7.fhir.r5.model.DataType.class, + DECIMAL_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_40_50.class, + org.hl7.fhir.r4.model.DecimalType.class, org.hl7.fhir.r4.model.Type.class, + org.hl7.fhir.r5.model.DecimalType.class, org.hl7.fhir.r5.model.DataType.class, + DECIMAL_STRINGS), - //Id - getFactoryConversionParams(VersionConvertorFactory_10_30.class, - org.hl7.fhir.dstu2.model.IdType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.dstu3.model.IdType.class, org.hl7.fhir.dstu3.model.Type.class, - ID_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_10_40.class, - org.hl7.fhir.dstu2.model.IdType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.r4.model.IdType.class, org.hl7.fhir.r4.model.Type.class, - ID_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_10_50.class, - org.hl7.fhir.dstu2.model.IdType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.r5.model.IdType.class, org.hl7.fhir.r5.model.DataType.class, - ID_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_30.class, - org.hl7.fhir.dstu2016may.model.IdType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.dstu3.model.IdType.class, org.hl7.fhir.dstu3.model.Type.class, - ID_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_40.class, - org.hl7.fhir.dstu2016may.model.IdType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.r4.model.IdType.class, org.hl7.fhir.r4.model.Type.class, - ID_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_50.class, - org.hl7.fhir.dstu2016may.model.IdType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.r5.model.IdType.class, org.hl7.fhir.r5.model.DataType.class, - ID_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_30_40.class, - org.hl7.fhir.dstu3.model.IdType.class, org.hl7.fhir.dstu3.model.Type.class, - org.hl7.fhir.r4.model.IdType.class, org.hl7.fhir.r4.model.Type.class, - ID_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_30_50.class, - org.hl7.fhir.dstu3.model.IdType.class, org.hl7.fhir.dstu3.model.Type.class, - org.hl7.fhir.r5.model.IdType.class, org.hl7.fhir.r5.model.DataType.class, - ID_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_40_50.class, - org.hl7.fhir.r4.model.IdType.class, org.hl7.fhir.r4.model.Type.class, - org.hl7.fhir.r5.model.IdType.class, org.hl7.fhir.r5.model.DataType.class, - ID_STRINGS), + //Id + getFactoryConversionParams(VersionConvertorFactory_10_30.class, + org.hl7.fhir.dstu2.model.IdType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.dstu3.model.IdType.class, org.hl7.fhir.dstu3.model.Type.class, + ID_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_10_40.class, + org.hl7.fhir.dstu2.model.IdType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.r4.model.IdType.class, org.hl7.fhir.r4.model.Type.class, + ID_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_10_50.class, + org.hl7.fhir.dstu2.model.IdType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.r5.model.IdType.class, org.hl7.fhir.r5.model.DataType.class, + ID_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_30.class, + org.hl7.fhir.dstu2016may.model.IdType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.dstu3.model.IdType.class, org.hl7.fhir.dstu3.model.Type.class, + ID_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_40.class, + org.hl7.fhir.dstu2016may.model.IdType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.r4.model.IdType.class, org.hl7.fhir.r4.model.Type.class, + ID_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_50.class, + org.hl7.fhir.dstu2016may.model.IdType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.r5.model.IdType.class, org.hl7.fhir.r5.model.DataType.class, + ID_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_30_40.class, + org.hl7.fhir.dstu3.model.IdType.class, org.hl7.fhir.dstu3.model.Type.class, + org.hl7.fhir.r4.model.IdType.class, org.hl7.fhir.r4.model.Type.class, + ID_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_30_50.class, + org.hl7.fhir.dstu3.model.IdType.class, org.hl7.fhir.dstu3.model.Type.class, + org.hl7.fhir.r5.model.IdType.class, org.hl7.fhir.r5.model.DataType.class, + ID_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_40_50.class, + org.hl7.fhir.r4.model.IdType.class, org.hl7.fhir.r4.model.Type.class, + org.hl7.fhir.r5.model.IdType.class, org.hl7.fhir.r5.model.DataType.class, + ID_STRINGS), - //Integer - getFactoryConversionParams(VersionConvertorFactory_10_30.class, - org.hl7.fhir.dstu2.model.IntegerType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.dstu3.model.IntegerType.class, org.hl7.fhir.dstu3.model.Type.class, - INTEGER_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_10_40.class, - org.hl7.fhir.dstu2.model.IntegerType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.r4.model.IntegerType.class, org.hl7.fhir.r4.model.Type.class, - INTEGER_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_10_50.class, - org.hl7.fhir.dstu2.model.IntegerType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.r5.model.IntegerType.class, org.hl7.fhir.r5.model.DataType.class, - INTEGER_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_30.class, - org.hl7.fhir.dstu2016may.model.IntegerType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.dstu3.model.IntegerType.class, org.hl7.fhir.dstu3.model.Type.class, - INTEGER_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_40.class, - org.hl7.fhir.dstu2016may.model.IntegerType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.r4.model.IntegerType.class, org.hl7.fhir.r4.model.Type.class, - INTEGER_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_50.class, - org.hl7.fhir.dstu2016may.model.IntegerType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.r5.model.IntegerType.class, org.hl7.fhir.r5.model.DataType.class, - INTEGER_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_30_40.class, - org.hl7.fhir.dstu3.model.IntegerType.class, org.hl7.fhir.dstu3.model.Type.class, - org.hl7.fhir.r4.model.IntegerType.class, org.hl7.fhir.r4.model.Type.class, - INTEGER_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_30_50.class, - org.hl7.fhir.dstu3.model.IntegerType.class, org.hl7.fhir.dstu3.model.Type.class, - org.hl7.fhir.r5.model.IntegerType.class, org.hl7.fhir.r5.model.DataType.class, - INTEGER_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_40_50.class, - org.hl7.fhir.r4.model.IntegerType.class, org.hl7.fhir.r4.model.Type.class, - org.hl7.fhir.r5.model.IntegerType.class, org.hl7.fhir.r5.model.DataType.class, - INTEGER_STRINGS), - - //Markdown - getFactoryConversionParams(VersionConvertorFactory_10_30.class, - org.hl7.fhir.dstu2.model.MarkdownType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.dstu3.model.MarkdownType.class, org.hl7.fhir.dstu3.model.Type.class, - STRING_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_10_40.class, - org.hl7.fhir.dstu2.model.MarkdownType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.r4.model.MarkdownType.class, org.hl7.fhir.r4.model.Type.class, - STRING_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_10_50.class, - org.hl7.fhir.dstu2.model.MarkdownType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.r5.model.MarkdownType.class, org.hl7.fhir.r5.model.DataType.class, - STRING_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_30.class, - org.hl7.fhir.dstu2016may.model.MarkdownType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.dstu3.model.MarkdownType.class, org.hl7.fhir.dstu3.model.Type.class, - STRING_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_40.class, - org.hl7.fhir.dstu2016may.model.MarkdownType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.r4.model.MarkdownType.class, org.hl7.fhir.r4.model.Type.class, - STRING_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_50.class, - org.hl7.fhir.dstu2016may.model.MarkdownType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.r5.model.MarkdownType.class, org.hl7.fhir.r5.model.DataType.class, - STRING_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_30_40.class, - org.hl7.fhir.dstu3.model.MarkdownType.class, org.hl7.fhir.dstu3.model.Type.class, - org.hl7.fhir.r4.model.MarkdownType.class, org.hl7.fhir.r4.model.Type.class, - STRING_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_30_50.class, - org.hl7.fhir.dstu3.model.MarkdownType.class, org.hl7.fhir.dstu3.model.Type.class, - org.hl7.fhir.r5.model.MarkdownType.class, org.hl7.fhir.r5.model.DataType.class, - STRING_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_40_50.class, - org.hl7.fhir.r4.model.MarkdownType.class, org.hl7.fhir.r4.model.Type.class, - org.hl7.fhir.r5.model.MarkdownType.class, org.hl7.fhir.r5.model.DataType.class, - STRING_STRINGS), + //Integer + getFactoryConversionParams(VersionConvertorFactory_10_30.class, + org.hl7.fhir.dstu2.model.IntegerType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.dstu3.model.IntegerType.class, org.hl7.fhir.dstu3.model.Type.class, + INTEGER_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_10_40.class, + org.hl7.fhir.dstu2.model.IntegerType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.r4.model.IntegerType.class, org.hl7.fhir.r4.model.Type.class, + INTEGER_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_10_50.class, + org.hl7.fhir.dstu2.model.IntegerType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.r5.model.IntegerType.class, org.hl7.fhir.r5.model.DataType.class, + INTEGER_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_30.class, + org.hl7.fhir.dstu2016may.model.IntegerType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.dstu3.model.IntegerType.class, org.hl7.fhir.dstu3.model.Type.class, + INTEGER_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_40.class, + org.hl7.fhir.dstu2016may.model.IntegerType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.r4.model.IntegerType.class, org.hl7.fhir.r4.model.Type.class, + INTEGER_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_50.class, + org.hl7.fhir.dstu2016may.model.IntegerType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.r5.model.IntegerType.class, org.hl7.fhir.r5.model.DataType.class, + INTEGER_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_30_40.class, + org.hl7.fhir.dstu3.model.IntegerType.class, org.hl7.fhir.dstu3.model.Type.class, + org.hl7.fhir.r4.model.IntegerType.class, org.hl7.fhir.r4.model.Type.class, + INTEGER_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_30_50.class, + org.hl7.fhir.dstu3.model.IntegerType.class, org.hl7.fhir.dstu3.model.Type.class, + org.hl7.fhir.r5.model.IntegerType.class, org.hl7.fhir.r5.model.DataType.class, + INTEGER_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_40_50.class, + org.hl7.fhir.r4.model.IntegerType.class, org.hl7.fhir.r4.model.Type.class, + org.hl7.fhir.r5.model.IntegerType.class, org.hl7.fhir.r5.model.DataType.class, + INTEGER_STRINGS), - //Oid - getFactoryConversionParams(VersionConvertorFactory_10_30.class, - org.hl7.fhir.dstu2.model.OidType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.dstu3.model.OidType.class, org.hl7.fhir.dstu3.model.Type.class, - OID_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_10_40.class, - org.hl7.fhir.dstu2.model.OidType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.r4.model.OidType.class, org.hl7.fhir.r4.model.Type.class, - OID_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_10_50.class, - org.hl7.fhir.dstu2.model.OidType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.r5.model.OidType.class, org.hl7.fhir.r5.model.DataType.class, - OID_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_30.class, - org.hl7.fhir.dstu2016may.model.OidType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.dstu3.model.OidType.class, org.hl7.fhir.dstu3.model.Type.class, - OID_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_40.class, - org.hl7.fhir.dstu2016may.model.OidType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.r4.model.OidType.class, org.hl7.fhir.r4.model.Type.class, - OID_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_50.class, - org.hl7.fhir.dstu2016may.model.OidType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.r5.model.OidType.class, org.hl7.fhir.r5.model.DataType.class, - OID_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_30_40.class, - org.hl7.fhir.dstu3.model.OidType.class, org.hl7.fhir.dstu3.model.Type.class, - org.hl7.fhir.r4.model.OidType.class, org.hl7.fhir.r4.model.Type.class, - OID_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_30_50.class, - org.hl7.fhir.dstu3.model.OidType.class, org.hl7.fhir.dstu3.model.Type.class, - org.hl7.fhir.r5.model.OidType.class, org.hl7.fhir.r5.model.DataType.class, - OID_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_40_50.class, - org.hl7.fhir.r4.model.OidType.class, org.hl7.fhir.r4.model.Type.class, - org.hl7.fhir.r5.model.OidType.class, org.hl7.fhir.r5.model.DataType.class, - OID_STRINGS), - - //PositiveInt - getFactoryConversionParams(VersionConvertorFactory_10_30.class, - org.hl7.fhir.dstu2.model.PositiveIntType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.dstu3.model.PositiveIntType.class, org.hl7.fhir.dstu3.model.Type.class, - POSITIVE_INT_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_10_40.class, - org.hl7.fhir.dstu2.model.PositiveIntType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.r4.model.PositiveIntType.class, org.hl7.fhir.r4.model.Type.class, - POSITIVE_INT_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_10_50.class, - org.hl7.fhir.dstu2.model.PositiveIntType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.r5.model.PositiveIntType.class, org.hl7.fhir.r5.model.DataType.class, - POSITIVE_INT_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_30.class, - org.hl7.fhir.dstu2016may.model.PositiveIntType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.dstu3.model.PositiveIntType.class, org.hl7.fhir.dstu3.model.Type.class, - POSITIVE_INT_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_40.class, - org.hl7.fhir.dstu2016may.model.PositiveIntType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.r4.model.PositiveIntType.class, org.hl7.fhir.r4.model.Type.class, - POSITIVE_INT_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_50.class, - org.hl7.fhir.dstu2016may.model.PositiveIntType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.r5.model.PositiveIntType.class, org.hl7.fhir.r5.model.DataType.class, - POSITIVE_INT_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_30_40.class, - org.hl7.fhir.dstu3.model.PositiveIntType.class, org.hl7.fhir.dstu3.model.Type.class, - org.hl7.fhir.r4.model.PositiveIntType.class, org.hl7.fhir.r4.model.Type.class, - POSITIVE_INT_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_30_50.class, - org.hl7.fhir.dstu3.model.PositiveIntType.class, org.hl7.fhir.dstu3.model.Type.class, - org.hl7.fhir.r5.model.PositiveIntType.class, org.hl7.fhir.r5.model.DataType.class, - POSITIVE_INT_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_40_50.class, - org.hl7.fhir.r4.model.PositiveIntType.class, org.hl7.fhir.r4.model.Type.class, - org.hl7.fhir.r5.model.PositiveIntType.class, org.hl7.fhir.r5.model.DataType.class, - POSITIVE_INT_STRINGS), - - //String - getFactoryConversionParams(VersionConvertorFactory_10_30.class, - org.hl7.fhir.dstu2.model.StringType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.dstu3.model.StringType.class, org.hl7.fhir.dstu3.model.Type.class, - STRING_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_10_40.class, - org.hl7.fhir.dstu2.model.StringType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.r4.model.StringType.class, org.hl7.fhir.r4.model.Type.class, - STRING_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_10_50.class, - org.hl7.fhir.dstu2.model.StringType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.r5.model.StringType.class, org.hl7.fhir.r5.model.DataType.class, - STRING_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_30.class, - org.hl7.fhir.dstu2016may.model.StringType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.dstu3.model.StringType.class, org.hl7.fhir.dstu3.model.Type.class, - STRING_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_40.class, - org.hl7.fhir.dstu2016may.model.StringType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.r4.model.StringType.class, org.hl7.fhir.r4.model.Type.class, - STRING_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_50.class, - org.hl7.fhir.dstu2016may.model.StringType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.r5.model.StringType.class, org.hl7.fhir.r5.model.DataType.class, - STRING_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_30_40.class, - org.hl7.fhir.dstu3.model.StringType.class, org.hl7.fhir.dstu3.model.Type.class, - org.hl7.fhir.r4.model.StringType.class, org.hl7.fhir.r4.model.Type.class, - STRING_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_30_50.class, - org.hl7.fhir.dstu3.model.StringType.class, org.hl7.fhir.dstu3.model.Type.class, - org.hl7.fhir.r5.model.StringType.class, org.hl7.fhir.r5.model.DataType.class, - STRING_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_40_50.class, - org.hl7.fhir.r4.model.StringType.class, org.hl7.fhir.r4.model.Type.class, - org.hl7.fhir.r5.model.StringType.class, org.hl7.fhir.r5.model.DataType.class, - STRING_STRINGS), + //Markdown + getFactoryConversionParams(VersionConvertorFactory_10_30.class, + org.hl7.fhir.dstu2.model.MarkdownType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.dstu3.model.MarkdownType.class, org.hl7.fhir.dstu3.model.Type.class, + STRING_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_10_40.class, + org.hl7.fhir.dstu2.model.MarkdownType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.r4.model.MarkdownType.class, org.hl7.fhir.r4.model.Type.class, + STRING_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_10_50.class, + org.hl7.fhir.dstu2.model.MarkdownType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.r5.model.MarkdownType.class, org.hl7.fhir.r5.model.DataType.class, + STRING_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_30.class, + org.hl7.fhir.dstu2016may.model.MarkdownType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.dstu3.model.MarkdownType.class, org.hl7.fhir.dstu3.model.Type.class, + STRING_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_40.class, + org.hl7.fhir.dstu2016may.model.MarkdownType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.r4.model.MarkdownType.class, org.hl7.fhir.r4.model.Type.class, + STRING_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_50.class, + org.hl7.fhir.dstu2016may.model.MarkdownType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.r5.model.MarkdownType.class, org.hl7.fhir.r5.model.DataType.class, + STRING_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_30_40.class, + org.hl7.fhir.dstu3.model.MarkdownType.class, org.hl7.fhir.dstu3.model.Type.class, + org.hl7.fhir.r4.model.MarkdownType.class, org.hl7.fhir.r4.model.Type.class, + STRING_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_30_50.class, + org.hl7.fhir.dstu3.model.MarkdownType.class, org.hl7.fhir.dstu3.model.Type.class, + org.hl7.fhir.r5.model.MarkdownType.class, org.hl7.fhir.r5.model.DataType.class, + STRING_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_40_50.class, + org.hl7.fhir.r4.model.MarkdownType.class, org.hl7.fhir.r4.model.Type.class, + org.hl7.fhir.r5.model.MarkdownType.class, org.hl7.fhir.r5.model.DataType.class, + STRING_STRINGS), - //Time - getFactoryConversionParams(VersionConvertorFactory_10_30.class, - org.hl7.fhir.dstu2.model.TimeType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.dstu3.model.TimeType.class, org.hl7.fhir.dstu3.model.Type.class, - TIME_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_10_40.class, - org.hl7.fhir.dstu2.model.TimeType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.r4.model.TimeType.class, org.hl7.fhir.r4.model.Type.class, - TIME_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_10_50.class, - org.hl7.fhir.dstu2.model.TimeType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.r5.model.TimeType.class, org.hl7.fhir.r5.model.DataType.class, - TIME_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_30.class, - org.hl7.fhir.dstu2016may.model.TimeType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.dstu3.model.TimeType.class, org.hl7.fhir.dstu3.model.Type.class, - TIME_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_40.class, - org.hl7.fhir.dstu2016may.model.TimeType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.r4.model.TimeType.class, org.hl7.fhir.r4.model.Type.class, - TIME_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_50.class, - org.hl7.fhir.dstu2016may.model.TimeType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.r5.model.TimeType.class, org.hl7.fhir.r5.model.DataType.class, - TIME_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_30_40.class, - org.hl7.fhir.dstu3.model.TimeType.class, org.hl7.fhir.dstu3.model.Type.class, - org.hl7.fhir.r4.model.TimeType.class, org.hl7.fhir.r4.model.Type.class, - TIME_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_30_50.class, - org.hl7.fhir.dstu3.model.TimeType.class, org.hl7.fhir.dstu3.model.Type.class, - org.hl7.fhir.r5.model.TimeType.class, org.hl7.fhir.r5.model.DataType.class, - TIME_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_40_50.class, - org.hl7.fhir.r4.model.TimeType.class, org.hl7.fhir.r4.model.Type.class, - org.hl7.fhir.r5.model.TimeType.class, org.hl7.fhir.r5.model.DataType.class, - TIME_STRINGS), + //Oid + getFactoryConversionParams(VersionConvertorFactory_10_30.class, + org.hl7.fhir.dstu2.model.OidType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.dstu3.model.OidType.class, org.hl7.fhir.dstu3.model.Type.class, + OID_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_10_40.class, + org.hl7.fhir.dstu2.model.OidType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.r4.model.OidType.class, org.hl7.fhir.r4.model.Type.class, + OID_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_10_50.class, + org.hl7.fhir.dstu2.model.OidType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.r5.model.OidType.class, org.hl7.fhir.r5.model.DataType.class, + OID_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_30.class, + org.hl7.fhir.dstu2016may.model.OidType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.dstu3.model.OidType.class, org.hl7.fhir.dstu3.model.Type.class, + OID_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_40.class, + org.hl7.fhir.dstu2016may.model.OidType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.r4.model.OidType.class, org.hl7.fhir.r4.model.Type.class, + OID_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_50.class, + org.hl7.fhir.dstu2016may.model.OidType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.r5.model.OidType.class, org.hl7.fhir.r5.model.DataType.class, + OID_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_30_40.class, + org.hl7.fhir.dstu3.model.OidType.class, org.hl7.fhir.dstu3.model.Type.class, + org.hl7.fhir.r4.model.OidType.class, org.hl7.fhir.r4.model.Type.class, + OID_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_30_50.class, + org.hl7.fhir.dstu3.model.OidType.class, org.hl7.fhir.dstu3.model.Type.class, + org.hl7.fhir.r5.model.OidType.class, org.hl7.fhir.r5.model.DataType.class, + OID_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_40_50.class, + org.hl7.fhir.r4.model.OidType.class, org.hl7.fhir.r4.model.Type.class, + org.hl7.fhir.r5.model.OidType.class, org.hl7.fhir.r5.model.DataType.class, + OID_STRINGS), - //UnsignedInt - getFactoryConversionParams(VersionConvertorFactory_10_30.class, - org.hl7.fhir.dstu2.model.UnsignedIntType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.dstu3.model.UnsignedIntType.class, org.hl7.fhir.dstu3.model.Type.class, - UNSIGNED_INT_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_10_40.class, - org.hl7.fhir.dstu2.model.UnsignedIntType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.r4.model.UnsignedIntType.class, org.hl7.fhir.r4.model.Type.class, - UNSIGNED_INT_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_10_50.class, - org.hl7.fhir.dstu2.model.UnsignedIntType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.r5.model.UnsignedIntType.class, org.hl7.fhir.r5.model.DataType.class, - UNSIGNED_INT_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_30.class, - org.hl7.fhir.dstu2016may.model.UnsignedIntType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.dstu3.model.UnsignedIntType.class, org.hl7.fhir.dstu3.model.Type.class, - UNSIGNED_INT_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_40.class, - org.hl7.fhir.dstu2016may.model.UnsignedIntType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.r4.model.UnsignedIntType.class, org.hl7.fhir.r4.model.Type.class, - UNSIGNED_INT_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_50.class, - org.hl7.fhir.dstu2016may.model.UnsignedIntType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.r5.model.UnsignedIntType.class, org.hl7.fhir.r5.model.DataType.class, - UNSIGNED_INT_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_30_40.class, - org.hl7.fhir.dstu3.model.UnsignedIntType.class, org.hl7.fhir.dstu3.model.Type.class, - org.hl7.fhir.r4.model.UnsignedIntType.class, org.hl7.fhir.r4.model.Type.class, - UNSIGNED_INT_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_30_50.class, - org.hl7.fhir.dstu3.model.UnsignedIntType.class, org.hl7.fhir.dstu3.model.Type.class, - org.hl7.fhir.r5.model.UnsignedIntType.class, org.hl7.fhir.r5.model.DataType.class, - UNSIGNED_INT_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_40_50.class, - org.hl7.fhir.r4.model.UnsignedIntType.class, org.hl7.fhir.r4.model.Type.class, - org.hl7.fhir.r5.model.UnsignedIntType.class, org.hl7.fhir.r5.model.DataType.class, - UNSIGNED_INT_STRINGS), - - //Uri - getFactoryConversionParams(VersionConvertorFactory_10_30.class, - org.hl7.fhir.dstu2.model.UriType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.dstu3.model.UriType.class, org.hl7.fhir.dstu3.model.Type.class, - URI_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_10_40.class, - org.hl7.fhir.dstu2.model.UriType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.r4.model.UriType.class, org.hl7.fhir.r4.model.Type.class, - URI_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_10_50.class, - org.hl7.fhir.dstu2.model.UriType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.r5.model.UriType.class, org.hl7.fhir.r5.model.DataType.class, - URI_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_30.class, - org.hl7.fhir.dstu2016may.model.UriType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.dstu3.model.UriType.class, org.hl7.fhir.dstu3.model.Type.class, - URI_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_40.class, - org.hl7.fhir.dstu2016may.model.UriType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.r4.model.UriType.class, org.hl7.fhir.r4.model.Type.class, - URI_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_50.class, - org.hl7.fhir.dstu2016may.model.UriType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.r5.model.UriType.class, org.hl7.fhir.r5.model.DataType.class, - URI_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_30_40.class, - org.hl7.fhir.dstu3.model.UriType.class, org.hl7.fhir.dstu3.model.Type.class, - org.hl7.fhir.r4.model.UriType.class, org.hl7.fhir.r4.model.Type.class, - URI_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_30_50.class, - org.hl7.fhir.dstu3.model.UriType.class, org.hl7.fhir.dstu3.model.Type.class, - org.hl7.fhir.r5.model.UriType.class, org.hl7.fhir.r5.model.DataType.class, - URI_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_40_50.class, - org.hl7.fhir.r4.model.UriType.class, org.hl7.fhir.r4.model.Type.class, - org.hl7.fhir.r5.model.UriType.class, org.hl7.fhir.r5.model.DataType.class, - URI_STRINGS), + //PositiveInt + getFactoryConversionParams(VersionConvertorFactory_10_30.class, + org.hl7.fhir.dstu2.model.PositiveIntType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.dstu3.model.PositiveIntType.class, org.hl7.fhir.dstu3.model.Type.class, + POSITIVE_INT_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_10_40.class, + org.hl7.fhir.dstu2.model.PositiveIntType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.r4.model.PositiveIntType.class, org.hl7.fhir.r4.model.Type.class, + POSITIVE_INT_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_10_50.class, + org.hl7.fhir.dstu2.model.PositiveIntType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.r5.model.PositiveIntType.class, org.hl7.fhir.r5.model.DataType.class, + POSITIVE_INT_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_30.class, + org.hl7.fhir.dstu2016may.model.PositiveIntType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.dstu3.model.PositiveIntType.class, org.hl7.fhir.dstu3.model.Type.class, + POSITIVE_INT_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_40.class, + org.hl7.fhir.dstu2016may.model.PositiveIntType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.r4.model.PositiveIntType.class, org.hl7.fhir.r4.model.Type.class, + POSITIVE_INT_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_50.class, + org.hl7.fhir.dstu2016may.model.PositiveIntType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.r5.model.PositiveIntType.class, org.hl7.fhir.r5.model.DataType.class, + POSITIVE_INT_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_30_40.class, + org.hl7.fhir.dstu3.model.PositiveIntType.class, org.hl7.fhir.dstu3.model.Type.class, + org.hl7.fhir.r4.model.PositiveIntType.class, org.hl7.fhir.r4.model.Type.class, + POSITIVE_INT_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_30_50.class, + org.hl7.fhir.dstu3.model.PositiveIntType.class, org.hl7.fhir.dstu3.model.Type.class, + org.hl7.fhir.r5.model.PositiveIntType.class, org.hl7.fhir.r5.model.DataType.class, + POSITIVE_INT_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_40_50.class, + org.hl7.fhir.r4.model.PositiveIntType.class, org.hl7.fhir.r4.model.Type.class, + org.hl7.fhir.r5.model.PositiveIntType.class, org.hl7.fhir.r5.model.DataType.class, + POSITIVE_INT_STRINGS), - //Canonical - getFactoryConversionParams(VersionConvertorFactory_40_50.class, - org.hl7.fhir.r4.model.CanonicalType.class, org.hl7.fhir.r4.model.Type.class, - org.hl7.fhir.r5.model.CanonicalType.class, org.hl7.fhir.r5.model.DataType.class, - URI_STRINGS), - - //Url - getFactoryConversionParams(VersionConvertorFactory_40_50.class, - org.hl7.fhir.r4.model.UrlType.class, org.hl7.fhir.r4.model.Type.class, - org.hl7.fhir.r5.model.UrlType.class, org.hl7.fhir.r5.model.DataType.class, - URI_STRINGS), - - //Uuid - getFactoryConversionParams(VersionConvertorFactory_10_30.class, - org.hl7.fhir.dstu2.model.UuidType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.dstu3.model.UuidType.class, org.hl7.fhir.dstu3.model.Type.class, - UUID_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_10_40.class, - org.hl7.fhir.dstu2.model.UuidType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.r4.model.UuidType.class, org.hl7.fhir.r4.model.Type.class, - UUID_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_10_50.class, - org.hl7.fhir.dstu2.model.UuidType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.r5.model.UuidType.class, org.hl7.fhir.r5.model.DataType.class, - UUID_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_30.class, - org.hl7.fhir.dstu2016may.model.UuidType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.dstu3.model.UuidType.class, org.hl7.fhir.dstu3.model.Type.class, - UUID_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_40.class, - org.hl7.fhir.dstu2016may.model.UuidType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.r4.model.UuidType.class, org.hl7.fhir.r4.model.Type.class, - UUID_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_50.class, - org.hl7.fhir.dstu2016may.model.UuidType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.r5.model.UuidType.class, org.hl7.fhir.r5.model.DataType.class, - UUID_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_30_40.class, - org.hl7.fhir.dstu3.model.UuidType.class, org.hl7.fhir.dstu3.model.Type.class, - org.hl7.fhir.r4.model.UuidType.class, org.hl7.fhir.r4.model.Type.class, - UUID_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_30_50.class, - org.hl7.fhir.dstu3.model.UuidType.class, org.hl7.fhir.dstu3.model.Type.class, - org.hl7.fhir.r5.model.UuidType.class, org.hl7.fhir.r5.model.DataType.class, - UUID_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_40_50.class, - org.hl7.fhir.r4.model.UuidType.class, org.hl7.fhir.r4.model.Type.class, - org.hl7.fhir.r5.model.UuidType.class, org.hl7.fhir.r5.model.DataType.class, - UUID_STRINGS), - - //Date - getFactoryConversionParams(VersionConvertorFactory_10_30.class, - org.hl7.fhir.dstu2.model.DateType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.dstu3.model.DateType.class, org.hl7.fhir.dstu3.model.Type.class, - DEFAULT_DATE_PRECISION_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_10_40.class, - org.hl7.fhir.dstu2.model.DateType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.r4.model.DateType.class, org.hl7.fhir.r4.model.Type.class, - DEFAULT_DATE_PRECISION_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_10_50.class, - org.hl7.fhir.dstu2.model.DateType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.r5.model.DateType.class, org.hl7.fhir.r5.model.DataType.class, - DEFAULT_DATE_PRECISION_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_30.class, - org.hl7.fhir.dstu2016may.model.DateType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.dstu3.model.DateType.class, org.hl7.fhir.dstu3.model.Type.class, - DEFAULT_DATE_PRECISION_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_40.class, - org.hl7.fhir.dstu2016may.model.DateType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.r4.model.DateType.class, org.hl7.fhir.r4.model.Type.class, - DEFAULT_DATE_PRECISION_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_50.class, - org.hl7.fhir.dstu2016may.model.DateType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.r5.model.DateType.class, org.hl7.fhir.r5.model.DataType.class, - DEFAULT_DATE_PRECISION_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_30_40.class, - org.hl7.fhir.dstu3.model.DateType.class, org.hl7.fhir.dstu3.model.Type.class, - org.hl7.fhir.r4.model.DateType.class, org.hl7.fhir.r4.model.Type.class, - DEFAULT_DATE_PRECISION_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_30_50.class, - org.hl7.fhir.dstu3.model.DateType.class, org.hl7.fhir.dstu3.model.Type.class, - org.hl7.fhir.r5.model.DateType.class, org.hl7.fhir.r5.model.DataType.class, - DEFAULT_DATE_PRECISION_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_40_50.class, - org.hl7.fhir.r4.model.DateType.class, org.hl7.fhir.r4.model.Type.class, - org.hl7.fhir.r5.model.DateType.class, org.hl7.fhir.r5.model.DataType.class, - DEFAULT_DATE_PRECISION_STRINGS), + //String + getFactoryConversionParams(VersionConvertorFactory_10_30.class, + org.hl7.fhir.dstu2.model.StringType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.dstu3.model.StringType.class, org.hl7.fhir.dstu3.model.Type.class, + STRING_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_10_40.class, + org.hl7.fhir.dstu2.model.StringType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.r4.model.StringType.class, org.hl7.fhir.r4.model.Type.class, + STRING_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_10_50.class, + org.hl7.fhir.dstu2.model.StringType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.r5.model.StringType.class, org.hl7.fhir.r5.model.DataType.class, + STRING_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_30.class, + org.hl7.fhir.dstu2016may.model.StringType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.dstu3.model.StringType.class, org.hl7.fhir.dstu3.model.Type.class, + STRING_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_40.class, + org.hl7.fhir.dstu2016may.model.StringType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.r4.model.StringType.class, org.hl7.fhir.r4.model.Type.class, + STRING_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_50.class, + org.hl7.fhir.dstu2016may.model.StringType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.r5.model.StringType.class, org.hl7.fhir.r5.model.DataType.class, + STRING_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_30_40.class, + org.hl7.fhir.dstu3.model.StringType.class, org.hl7.fhir.dstu3.model.Type.class, + org.hl7.fhir.r4.model.StringType.class, org.hl7.fhir.r4.model.Type.class, + STRING_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_30_50.class, + org.hl7.fhir.dstu3.model.StringType.class, org.hl7.fhir.dstu3.model.Type.class, + org.hl7.fhir.r5.model.StringType.class, org.hl7.fhir.r5.model.DataType.class, + STRING_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_40_50.class, + org.hl7.fhir.r4.model.StringType.class, org.hl7.fhir.r4.model.Type.class, + org.hl7.fhir.r5.model.StringType.class, org.hl7.fhir.r5.model.DataType.class, + STRING_STRINGS), - //Date DateTime - getFactoryConversionParams(VersionConvertorFactory_10_30.class, - org.hl7.fhir.dstu2.model.DateType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.dstu3.model.DateTimeType.class, org.hl7.fhir.dstu3.model.Type.class, - DEFAULT_DATE_PRECISION_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_10_40.class, - org.hl7.fhir.dstu2.model.DateType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.r4.model.DateTimeType.class, org.hl7.fhir.r4.model.Type.class, - DEFAULT_DATE_PRECISION_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_10_50.class, - org.hl7.fhir.dstu2.model.DateType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.r5.model.DateTimeType.class, org.hl7.fhir.r5.model.DataType.class, - DEFAULT_DATE_PRECISION_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_10_30.class, - org.hl7.fhir.dstu2.model.DateTimeType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.dstu3.model.DateType.class, org.hl7.fhir.dstu3.model.Type.class, - DEFAULT_DATE_PRECISION_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_10_40.class, - org.hl7.fhir.dstu2.model.DateTimeType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.r4.model.DateType.class, org.hl7.fhir.r4.model.Type.class, - DEFAULT_DATE_PRECISION_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_10_50.class, - org.hl7.fhir.dstu2.model.DateTimeType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.r5.model.DateType.class, org.hl7.fhir.r5.model.DataType.class, - DEFAULT_DATE_PRECISION_STRINGS), + //Time + getFactoryConversionParams(VersionConvertorFactory_10_30.class, + org.hl7.fhir.dstu2.model.TimeType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.dstu3.model.TimeType.class, org.hl7.fhir.dstu3.model.Type.class, + TIME_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_10_40.class, + org.hl7.fhir.dstu2.model.TimeType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.r4.model.TimeType.class, org.hl7.fhir.r4.model.Type.class, + TIME_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_10_50.class, + org.hl7.fhir.dstu2.model.TimeType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.r5.model.TimeType.class, org.hl7.fhir.r5.model.DataType.class, + TIME_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_30.class, + org.hl7.fhir.dstu2016may.model.TimeType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.dstu3.model.TimeType.class, org.hl7.fhir.dstu3.model.Type.class, + TIME_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_40.class, + org.hl7.fhir.dstu2016may.model.TimeType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.r4.model.TimeType.class, org.hl7.fhir.r4.model.Type.class, + TIME_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_50.class, + org.hl7.fhir.dstu2016may.model.TimeType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.r5.model.TimeType.class, org.hl7.fhir.r5.model.DataType.class, + TIME_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_30_40.class, + org.hl7.fhir.dstu3.model.TimeType.class, org.hl7.fhir.dstu3.model.Type.class, + org.hl7.fhir.r4.model.TimeType.class, org.hl7.fhir.r4.model.Type.class, + TIME_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_30_50.class, + org.hl7.fhir.dstu3.model.TimeType.class, org.hl7.fhir.dstu3.model.Type.class, + org.hl7.fhir.r5.model.TimeType.class, org.hl7.fhir.r5.model.DataType.class, + TIME_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_40_50.class, + org.hl7.fhir.r4.model.TimeType.class, org.hl7.fhir.r4.model.Type.class, + org.hl7.fhir.r5.model.TimeType.class, org.hl7.fhir.r5.model.DataType.class, + TIME_STRINGS), - //DateTime - getFactoryConversionParams(VersionConvertorFactory_10_30.class, - org.hl7.fhir.dstu2.model.DateTimeType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.dstu3.model.DateTimeType.class, org.hl7.fhir.dstu3.model.Type.class, - MILLISECOND_DATE_PRECISION_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_10_40.class, - org.hl7.fhir.dstu2.model.DateTimeType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.r4.model.DateTimeType.class, org.hl7.fhir.r4.model.Type.class, - MILLISECOND_DATE_PRECISION_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_10_50.class, - org.hl7.fhir.dstu2.model.DateTimeType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.r5.model.DateTimeType.class, org.hl7.fhir.r5.model.DataType.class, - MILLISECOND_DATE_PRECISION_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_30.class, - org.hl7.fhir.dstu2016may.model.DateTimeType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.dstu3.model.DateTimeType.class, org.hl7.fhir.dstu3.model.Type.class, - MILLISECOND_DATE_PRECISION_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_40.class, - org.hl7.fhir.dstu2016may.model.DateTimeType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.r4.model.DateTimeType.class, org.hl7.fhir.r4.model.Type.class, - MILLISECOND_DATE_PRECISION_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_50.class, - org.hl7.fhir.dstu2016may.model.DateTimeType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.r5.model.DateTimeType.class, org.hl7.fhir.r5.model.DataType.class, - MILLISECOND_DATE_PRECISION_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_30_40.class, - org.hl7.fhir.dstu3.model.DateTimeType.class, org.hl7.fhir.dstu3.model.Type.class, - org.hl7.fhir.r4.model.DateTimeType.class, org.hl7.fhir.r4.model.Type.class, - MILLISECOND_DATE_PRECISION_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_30_50.class, - org.hl7.fhir.dstu3.model.DateTimeType.class, org.hl7.fhir.dstu3.model.Type.class, - org.hl7.fhir.r5.model.DateTimeType.class, org.hl7.fhir.r5.model.DataType.class, - MILLISECOND_DATE_PRECISION_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_40_50.class, - org.hl7.fhir.r4.model.DateTimeType.class, org.hl7.fhir.r4.model.Type.class, - org.hl7.fhir.r5.model.DateTimeType.class, org.hl7.fhir.r5.model.DataType.class, - MILLISECOND_DATE_PRECISION_STRINGS), + //UnsignedInt + getFactoryConversionParams(VersionConvertorFactory_10_30.class, + org.hl7.fhir.dstu2.model.UnsignedIntType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.dstu3.model.UnsignedIntType.class, org.hl7.fhir.dstu3.model.Type.class, + UNSIGNED_INT_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_10_40.class, + org.hl7.fhir.dstu2.model.UnsignedIntType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.r4.model.UnsignedIntType.class, org.hl7.fhir.r4.model.Type.class, + UNSIGNED_INT_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_10_50.class, + org.hl7.fhir.dstu2.model.UnsignedIntType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.r5.model.UnsignedIntType.class, org.hl7.fhir.r5.model.DataType.class, + UNSIGNED_INT_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_30.class, + org.hl7.fhir.dstu2016may.model.UnsignedIntType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.dstu3.model.UnsignedIntType.class, org.hl7.fhir.dstu3.model.Type.class, + UNSIGNED_INT_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_40.class, + org.hl7.fhir.dstu2016may.model.UnsignedIntType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.r4.model.UnsignedIntType.class, org.hl7.fhir.r4.model.Type.class, + UNSIGNED_INT_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_50.class, + org.hl7.fhir.dstu2016may.model.UnsignedIntType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.r5.model.UnsignedIntType.class, org.hl7.fhir.r5.model.DataType.class, + UNSIGNED_INT_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_30_40.class, + org.hl7.fhir.dstu3.model.UnsignedIntType.class, org.hl7.fhir.dstu3.model.Type.class, + org.hl7.fhir.r4.model.UnsignedIntType.class, org.hl7.fhir.r4.model.Type.class, + UNSIGNED_INT_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_30_50.class, + org.hl7.fhir.dstu3.model.UnsignedIntType.class, org.hl7.fhir.dstu3.model.Type.class, + org.hl7.fhir.r5.model.UnsignedIntType.class, org.hl7.fhir.r5.model.DataType.class, + UNSIGNED_INT_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_40_50.class, + org.hl7.fhir.r4.model.UnsignedIntType.class, org.hl7.fhir.r4.model.Type.class, + org.hl7.fhir.r5.model.UnsignedIntType.class, org.hl7.fhir.r5.model.DataType.class, + UNSIGNED_INT_STRINGS), - //Instant - getFactoryConversionParams(VersionConvertorFactory_10_30.class, - org.hl7.fhir.dstu2.model.InstantType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.dstu3.model.InstantType.class, org.hl7.fhir.dstu3.model.Type.class, - INSTANT_PRECISION_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_10_40.class, - org.hl7.fhir.dstu2.model.InstantType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.r4.model.InstantType.class, org.hl7.fhir.r4.model.Type.class, - INSTANT_PRECISION_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_10_50.class, - org.hl7.fhir.dstu2.model.InstantType.class, org.hl7.fhir.dstu2.model.Type.class, - org.hl7.fhir.r5.model.InstantType.class, org.hl7.fhir.r5.model.DataType.class, - INSTANT_PRECISION_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_30.class, - org.hl7.fhir.dstu2016may.model.InstantType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.dstu3.model.InstantType.class, org.hl7.fhir.dstu3.model.Type.class, - INSTANT_PRECISION_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_40.class, - org.hl7.fhir.dstu2016may.model.InstantType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.r4.model.InstantType.class, org.hl7.fhir.r4.model.Type.class, - INSTANT_PRECISION_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_14_50.class, - org.hl7.fhir.dstu2016may.model.InstantType.class, org.hl7.fhir.dstu2016may.model.Type.class, - org.hl7.fhir.r5.model.InstantType.class, org.hl7.fhir.r5.model.DataType.class, - INSTANT_PRECISION_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_30_40.class, - org.hl7.fhir.dstu3.model.InstantType.class, org.hl7.fhir.dstu3.model.Type.class, - org.hl7.fhir.r4.model.InstantType.class, org.hl7.fhir.r4.model.Type.class, - INSTANT_PRECISION_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_30_50.class, - org.hl7.fhir.dstu3.model.InstantType.class, org.hl7.fhir.dstu3.model.Type.class, - org.hl7.fhir.r5.model.InstantType.class, org.hl7.fhir.r5.model.DataType.class, - INSTANT_PRECISION_STRINGS), - getFactoryConversionParams(VersionConvertorFactory_40_50.class, - org.hl7.fhir.r4.model.InstantType.class, org.hl7.fhir.r4.model.Type.class, - org.hl7.fhir.r5.model.InstantType.class, org.hl7.fhir.r5.model.DataType.class, - INSTANT_PRECISION_STRINGS) - ).flatMap(i -> i); + //Uri + getFactoryConversionParams(VersionConvertorFactory_10_30.class, + org.hl7.fhir.dstu2.model.UriType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.dstu3.model.UriType.class, org.hl7.fhir.dstu3.model.Type.class, + URI_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_10_40.class, + org.hl7.fhir.dstu2.model.UriType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.r4.model.UriType.class, org.hl7.fhir.r4.model.Type.class, + URI_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_10_50.class, + org.hl7.fhir.dstu2.model.UriType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.r5.model.UriType.class, org.hl7.fhir.r5.model.DataType.class, + URI_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_30.class, + org.hl7.fhir.dstu2016may.model.UriType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.dstu3.model.UriType.class, org.hl7.fhir.dstu3.model.Type.class, + URI_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_40.class, + org.hl7.fhir.dstu2016may.model.UriType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.r4.model.UriType.class, org.hl7.fhir.r4.model.Type.class, + URI_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_50.class, + org.hl7.fhir.dstu2016may.model.UriType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.r5.model.UriType.class, org.hl7.fhir.r5.model.DataType.class, + URI_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_30_40.class, + org.hl7.fhir.dstu3.model.UriType.class, org.hl7.fhir.dstu3.model.Type.class, + org.hl7.fhir.r4.model.UriType.class, org.hl7.fhir.r4.model.Type.class, + URI_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_30_50.class, + org.hl7.fhir.dstu3.model.UriType.class, org.hl7.fhir.dstu3.model.Type.class, + org.hl7.fhir.r5.model.UriType.class, org.hl7.fhir.r5.model.DataType.class, + URI_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_40_50.class, + org.hl7.fhir.r4.model.UriType.class, org.hl7.fhir.r4.model.Type.class, + org.hl7.fhir.r5.model.UriType.class, org.hl7.fhir.r5.model.DataType.class, + URI_STRINGS), + + //Canonical + getFactoryConversionParams(VersionConvertorFactory_40_50.class, + org.hl7.fhir.r4.model.CanonicalType.class, org.hl7.fhir.r4.model.Type.class, + org.hl7.fhir.r5.model.CanonicalType.class, org.hl7.fhir.r5.model.DataType.class, + URI_STRINGS), + + //Url + getFactoryConversionParams(VersionConvertorFactory_40_50.class, + org.hl7.fhir.r4.model.UrlType.class, org.hl7.fhir.r4.model.Type.class, + org.hl7.fhir.r5.model.UrlType.class, org.hl7.fhir.r5.model.DataType.class, + URI_STRINGS), + + //Uuid + getFactoryConversionParams(VersionConvertorFactory_10_30.class, + org.hl7.fhir.dstu2.model.UuidType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.dstu3.model.UuidType.class, org.hl7.fhir.dstu3.model.Type.class, + UUID_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_10_40.class, + org.hl7.fhir.dstu2.model.UuidType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.r4.model.UuidType.class, org.hl7.fhir.r4.model.Type.class, + UUID_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_10_50.class, + org.hl7.fhir.dstu2.model.UuidType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.r5.model.UuidType.class, org.hl7.fhir.r5.model.DataType.class, + UUID_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_30.class, + org.hl7.fhir.dstu2016may.model.UuidType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.dstu3.model.UuidType.class, org.hl7.fhir.dstu3.model.Type.class, + UUID_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_40.class, + org.hl7.fhir.dstu2016may.model.UuidType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.r4.model.UuidType.class, org.hl7.fhir.r4.model.Type.class, + UUID_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_50.class, + org.hl7.fhir.dstu2016may.model.UuidType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.r5.model.UuidType.class, org.hl7.fhir.r5.model.DataType.class, + UUID_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_30_40.class, + org.hl7.fhir.dstu3.model.UuidType.class, org.hl7.fhir.dstu3.model.Type.class, + org.hl7.fhir.r4.model.UuidType.class, org.hl7.fhir.r4.model.Type.class, + UUID_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_30_50.class, + org.hl7.fhir.dstu3.model.UuidType.class, org.hl7.fhir.dstu3.model.Type.class, + org.hl7.fhir.r5.model.UuidType.class, org.hl7.fhir.r5.model.DataType.class, + UUID_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_40_50.class, + org.hl7.fhir.r4.model.UuidType.class, org.hl7.fhir.r4.model.Type.class, + org.hl7.fhir.r5.model.UuidType.class, org.hl7.fhir.r5.model.DataType.class, + UUID_STRINGS), + + //Date + getFactoryConversionParams(VersionConvertorFactory_10_30.class, + org.hl7.fhir.dstu2.model.DateType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.dstu3.model.DateType.class, org.hl7.fhir.dstu3.model.Type.class, + DEFAULT_DATE_PRECISION_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_10_40.class, + org.hl7.fhir.dstu2.model.DateType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.r4.model.DateType.class, org.hl7.fhir.r4.model.Type.class, + DEFAULT_DATE_PRECISION_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_10_50.class, + org.hl7.fhir.dstu2.model.DateType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.r5.model.DateType.class, org.hl7.fhir.r5.model.DataType.class, + DEFAULT_DATE_PRECISION_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_30.class, + org.hl7.fhir.dstu2016may.model.DateType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.dstu3.model.DateType.class, org.hl7.fhir.dstu3.model.Type.class, + DEFAULT_DATE_PRECISION_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_40.class, + org.hl7.fhir.dstu2016may.model.DateType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.r4.model.DateType.class, org.hl7.fhir.r4.model.Type.class, + DEFAULT_DATE_PRECISION_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_50.class, + org.hl7.fhir.dstu2016may.model.DateType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.r5.model.DateType.class, org.hl7.fhir.r5.model.DataType.class, + DEFAULT_DATE_PRECISION_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_30_40.class, + org.hl7.fhir.dstu3.model.DateType.class, org.hl7.fhir.dstu3.model.Type.class, + org.hl7.fhir.r4.model.DateType.class, org.hl7.fhir.r4.model.Type.class, + DEFAULT_DATE_PRECISION_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_30_50.class, + org.hl7.fhir.dstu3.model.DateType.class, org.hl7.fhir.dstu3.model.Type.class, + org.hl7.fhir.r5.model.DateType.class, org.hl7.fhir.r5.model.DataType.class, + DEFAULT_DATE_PRECISION_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_40_50.class, + org.hl7.fhir.r4.model.DateType.class, org.hl7.fhir.r4.model.Type.class, + org.hl7.fhir.r5.model.DateType.class, org.hl7.fhir.r5.model.DataType.class, + DEFAULT_DATE_PRECISION_STRINGS), + + //Date DateTime + getFactoryConversionParams(VersionConvertorFactory_10_30.class, + org.hl7.fhir.dstu2.model.DateType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.dstu3.model.DateTimeType.class, org.hl7.fhir.dstu3.model.Type.class, + DEFAULT_DATE_PRECISION_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_10_40.class, + org.hl7.fhir.dstu2.model.DateType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.r4.model.DateTimeType.class, org.hl7.fhir.r4.model.Type.class, + DEFAULT_DATE_PRECISION_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_10_50.class, + org.hl7.fhir.dstu2.model.DateType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.r5.model.DateTimeType.class, org.hl7.fhir.r5.model.DataType.class, + DEFAULT_DATE_PRECISION_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_10_30.class, + org.hl7.fhir.dstu2.model.DateTimeType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.dstu3.model.DateType.class, org.hl7.fhir.dstu3.model.Type.class, + DEFAULT_DATE_PRECISION_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_10_40.class, + org.hl7.fhir.dstu2.model.DateTimeType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.r4.model.DateType.class, org.hl7.fhir.r4.model.Type.class, + DEFAULT_DATE_PRECISION_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_10_50.class, + org.hl7.fhir.dstu2.model.DateTimeType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.r5.model.DateType.class, org.hl7.fhir.r5.model.DataType.class, + DEFAULT_DATE_PRECISION_STRINGS), + + //DateTime + getFactoryConversionParams(VersionConvertorFactory_10_30.class, + org.hl7.fhir.dstu2.model.DateTimeType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.dstu3.model.DateTimeType.class, org.hl7.fhir.dstu3.model.Type.class, + MILLISECOND_DATE_PRECISION_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_10_40.class, + org.hl7.fhir.dstu2.model.DateTimeType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.r4.model.DateTimeType.class, org.hl7.fhir.r4.model.Type.class, + MILLISECOND_DATE_PRECISION_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_10_50.class, + org.hl7.fhir.dstu2.model.DateTimeType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.r5.model.DateTimeType.class, org.hl7.fhir.r5.model.DataType.class, + MILLISECOND_DATE_PRECISION_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_30.class, + org.hl7.fhir.dstu2016may.model.DateTimeType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.dstu3.model.DateTimeType.class, org.hl7.fhir.dstu3.model.Type.class, + MILLISECOND_DATE_PRECISION_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_40.class, + org.hl7.fhir.dstu2016may.model.DateTimeType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.r4.model.DateTimeType.class, org.hl7.fhir.r4.model.Type.class, + MILLISECOND_DATE_PRECISION_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_50.class, + org.hl7.fhir.dstu2016may.model.DateTimeType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.r5.model.DateTimeType.class, org.hl7.fhir.r5.model.DataType.class, + MILLISECOND_DATE_PRECISION_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_30_40.class, + org.hl7.fhir.dstu3.model.DateTimeType.class, org.hl7.fhir.dstu3.model.Type.class, + org.hl7.fhir.r4.model.DateTimeType.class, org.hl7.fhir.r4.model.Type.class, + MILLISECOND_DATE_PRECISION_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_30_50.class, + org.hl7.fhir.dstu3.model.DateTimeType.class, org.hl7.fhir.dstu3.model.Type.class, + org.hl7.fhir.r5.model.DateTimeType.class, org.hl7.fhir.r5.model.DataType.class, + MILLISECOND_DATE_PRECISION_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_40_50.class, + org.hl7.fhir.r4.model.DateTimeType.class, org.hl7.fhir.r4.model.Type.class, + org.hl7.fhir.r5.model.DateTimeType.class, org.hl7.fhir.r5.model.DataType.class, + MILLISECOND_DATE_PRECISION_STRINGS), + + //Instant + getFactoryConversionParams(VersionConvertorFactory_10_30.class, + org.hl7.fhir.dstu2.model.InstantType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.dstu3.model.InstantType.class, org.hl7.fhir.dstu3.model.Type.class, + INSTANT_PRECISION_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_10_40.class, + org.hl7.fhir.dstu2.model.InstantType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.r4.model.InstantType.class, org.hl7.fhir.r4.model.Type.class, + INSTANT_PRECISION_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_10_50.class, + org.hl7.fhir.dstu2.model.InstantType.class, org.hl7.fhir.dstu2.model.Type.class, + org.hl7.fhir.r5.model.InstantType.class, org.hl7.fhir.r5.model.DataType.class, + INSTANT_PRECISION_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_30.class, + org.hl7.fhir.dstu2016may.model.InstantType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.dstu3.model.InstantType.class, org.hl7.fhir.dstu3.model.Type.class, + INSTANT_PRECISION_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_40.class, + org.hl7.fhir.dstu2016may.model.InstantType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.r4.model.InstantType.class, org.hl7.fhir.r4.model.Type.class, + INSTANT_PRECISION_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_14_50.class, + org.hl7.fhir.dstu2016may.model.InstantType.class, org.hl7.fhir.dstu2016may.model.Type.class, + org.hl7.fhir.r5.model.InstantType.class, org.hl7.fhir.r5.model.DataType.class, + INSTANT_PRECISION_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_30_40.class, + org.hl7.fhir.dstu3.model.InstantType.class, org.hl7.fhir.dstu3.model.Type.class, + org.hl7.fhir.r4.model.InstantType.class, org.hl7.fhir.r4.model.Type.class, + INSTANT_PRECISION_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_30_50.class, + org.hl7.fhir.dstu3.model.InstantType.class, org.hl7.fhir.dstu3.model.Type.class, + org.hl7.fhir.r5.model.InstantType.class, org.hl7.fhir.r5.model.DataType.class, + INSTANT_PRECISION_STRINGS), + getFactoryConversionParams(VersionConvertorFactory_40_50.class, + org.hl7.fhir.r4.model.InstantType.class, org.hl7.fhir.r4.model.Type.class, + org.hl7.fhir.r5.model.InstantType.class, org.hl7.fhir.r5.model.DataType.class, + INSTANT_PRECISION_STRINGS) + ).flatMap(i -> i); } @ParameterizedTest(name = "Test index: {index} ConvertorFactory={0} First Class={1} First Value={3} Second Class={4} Second Value={6}") @@ -811,8 +822,8 @@ public class VersionConvertorPrimitiveTypeTests { K srcInstance = srcTypeClazz.getDeclaredConstructor().newInstance(); Method srcSetValueAsStringMethod = srcTypeClazz.getMethod("setValueAsString", String.class); - Method srcGetValueAsString = srcTypeClazz.getMethod("getValueAsString"); - Method srcHasValue = srcTypeClazz.getMethod("hasValue"); + Method srcGetValueAsString = srcTypeClazz.getMethod("getValueAsString"); + Method srcHasValue = srcTypeClazz.getMethod("hasValue"); Method convertTypeMethod = versionConverterFactoryClazz.getMethod("convertType", srcTypeMethodClazz); @@ -834,29 +845,61 @@ public class VersionConvertorPrimitiveTypeTests { } } - private static Stream getDirectConversionParams() { - return Stream.of( - Arguments.of(org.hl7.fhir.r4.model.CanonicalType.class, org.hl7.fhir.dstu2.model.Reference.class, - (Function) Canonical10_40::convertCanonicalToReference, - "/test", "/test") - ); + return Stream.of( + Arguments.of( + org.hl7.fhir.r5.model.UriType.class, org.hl7.fhir.dstu2.model.CodeType.class, + (Function) org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Code10_50::convertUriToCode, + "dummyCode", "dummyCode" + ), + Arguments.of( + org.hl7.fhir.dstu2.model.CodeType.class, org.hl7.fhir.r5.model.UriType.class, + (Function) org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Code10_50::convertCodeToUri, + "dummyCode", "dummyCode" + ), + Arguments.of( + org.hl7.fhir.r5.model.MarkdownType.class, org.hl7.fhir.dstu2.model.StringType.class, + (Function) org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.MarkDown10_50::convertMarkdownToString, + "blah blah blah", "blah blah blah" + ), + Arguments.of( + org.hl7.fhir.dstu2.model.StringType.class, org.hl7.fhir.r5.model.MarkdownType.class, + (Function) org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.MarkDown10_50::convertStringToMarkdown, + "blah blah blah", "blah blah blah" + ) + //org.hl7.fhir.dstu3.model.UriType convertCodeToUri(org.hl7.fhir.dstu2.model.CodeType src + ); } + private static String CONTEXT_PATH = VersionConvertorPrimitiveTypeTests.class.getName(); + - @Disabled @ParameterizedTest(name = "Test index: {index} Source Class={1} First Value={3} Second Class={4} Second Value={6}") @MethodSource("getDirectConversionParams") - public void testDirectConversion(Class srcTypeClazz, Class targetTypeClazz, Function convertFunction, String srcString, String tgtString) throws NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException { + public void testDirectConversion(Class srcTypeClazz, Class tgtTypeClazz, Function convertFunction, String srcString, String tgtString) throws NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException { + + ConversionContext10_30.INSTANCE.init(mock(VersionConvertor_10_30.class), CONTEXT_PATH); + ConversionContext10_50.INSTANCE.init(mock(VersionConvertor_10_50.class), CONTEXT_PATH); + K srcInstance = srcTypeClazz.getDeclaredConstructor().newInstance(); Method srcSetValueAsStringMethod = srcTypeClazz.getMethod("setValueAsString", String.class); - Method srcGetValueAsString = srcTypeClazz.getMethod("getValueAsString"); - Method srcHasValue = srcTypeClazz.getMethod("hasValue"); + Method srcGetValueAsString = srcTypeClazz.getMethod("getValueAsString"); - srcSetValueAsStringMethod.invoke(srcInstance, srcString); + srcSetValueAsStringMethod.invoke(srcInstance, srcString); - L tgtInstance = convertFunction.apply(srcInstance); + String srcValueAsString = (String) srcGetValueAsString.invoke(srcInstance); + + Assertions.assertEquals(srcString, srcValueAsString); + + L tgtInstance = convertFunction.apply(srcInstance); + + Method tgtGetValueAsString = tgtTypeClazz.getMethod("getValueAsString"); + + String tgtValueAsString = (String) tgtGetValueAsString.invoke(tgtInstance); + Assertions.assertEquals(tgtString, tgtValueAsString); + + ConversionContext10_30.INSTANCE.close(CONTEXT_PATH); + ConversionContext10_50.INSTANCE.close(CONTEXT_PATH); } - }