Fix Uuid conversion

Since Uuids extend UriType, it was always gettting treated as a Uri instead of a Uuid
This commit is contained in:
dotasek 2022-03-17 19:14:29 -04:00
parent d0feacaaa8
commit 33ec1f640e
7 changed files with 200 additions and 171 deletions

View File

@ -44,10 +44,10 @@ public class Type10_40 {
return UnsignedInt10_40.convertUnsignedInt((org.hl7.fhir.dstu2.model.UnsignedIntType) src);
if (src instanceof org.hl7.fhir.dstu2.model.IntegerType)
return Integer10_40.convertInteger((org.hl7.fhir.dstu2.model.IntegerType) src);
if (src instanceof org.hl7.fhir.dstu2.model.UriType)
return Uri10_40.convertUri((org.hl7.fhir.dstu2.model.UriType) src);
if (src instanceof org.hl7.fhir.dstu2.model.UuidType)
return Uuid10_40.convertUuid((org.hl7.fhir.dstu2.model.UuidType) src);
if (src instanceof org.hl7.fhir.dstu2.model.UriType)
return Uri10_40.convertUri((org.hl7.fhir.dstu2.model.UriType) src);
if (src instanceof org.hl7.fhir.dstu2.model.Extension)
return Extension10_40.convertExtension((org.hl7.fhir.dstu2.model.Extension) src);
if (src instanceof org.hl7.fhir.dstu2.model.Narrative)

View File

@ -44,10 +44,10 @@ public class Type10_50 {
return UnsignedInt10_50.convertUnsignedInt((org.hl7.fhir.dstu2.model.UnsignedIntType) src);
if (src instanceof org.hl7.fhir.dstu2.model.IntegerType)
return Integer10_50.convertInteger((org.hl7.fhir.dstu2.model.IntegerType) src);
if (src instanceof org.hl7.fhir.dstu2.model.UriType)
return Uri10_50.convertUri((org.hl7.fhir.dstu2.model.UriType) src);
if (src instanceof org.hl7.fhir.dstu2.model.UuidType)
return Uuid10_50.convertUuid((org.hl7.fhir.dstu2.model.UuidType) src);
if (src instanceof org.hl7.fhir.dstu2.model.UriType)
return Uri10_50.convertUri((org.hl7.fhir.dstu2.model.UriType) src);
if (src instanceof org.hl7.fhir.dstu2.model.Extension)
return Extension10_50.convertExtension((org.hl7.fhir.dstu2.model.Extension) src);
if (src instanceof org.hl7.fhir.dstu2.model.Narrative)

View File

@ -45,10 +45,10 @@ public class Type14_30 {
return UnsignedInt14_30.convertUnsignedInt((org.hl7.fhir.dstu2016may.model.UnsignedIntType) src);
if (src instanceof org.hl7.fhir.dstu2016may.model.IntegerType)
return Integer14_30.convertInteger((org.hl7.fhir.dstu2016may.model.IntegerType) src);
if (src instanceof org.hl7.fhir.dstu2016may.model.UriType)
return Uri14_30.convertUri((org.hl7.fhir.dstu2016may.model.UriType) src);
if (src instanceof org.hl7.fhir.dstu2016may.model.UuidType)
return Uuid14_30.convertUuid((org.hl7.fhir.dstu2016may.model.UuidType) src);
if (src instanceof org.hl7.fhir.dstu2016may.model.UriType)
return Uri14_30.convertUri((org.hl7.fhir.dstu2016may.model.UriType) src);
if (src instanceof org.hl7.fhir.dstu2016may.model.Extension)
return Extension14_30.convertExtension((org.hl7.fhir.dstu2016may.model.Extension) src);
if (src instanceof org.hl7.fhir.dstu2016may.model.Narrative)

View File

@ -45,10 +45,10 @@ public class Type14_40 {
return UnsignedInt14_40.convertUnsignedInt((org.hl7.fhir.dstu2016may.model.UnsignedIntType) src);
if (src instanceof org.hl7.fhir.dstu2016may.model.IntegerType)
return Integer14_40.convertInteger((org.hl7.fhir.dstu2016may.model.IntegerType) src);
if (src instanceof org.hl7.fhir.dstu2016may.model.UriType)
return Uri14_40.convertUri((org.hl7.fhir.dstu2016may.model.UriType) src);
if (src instanceof org.hl7.fhir.dstu2016may.model.UuidType)
return Uuid14_40.convertUuid((org.hl7.fhir.dstu2016may.model.UuidType) src);
if (src instanceof org.hl7.fhir.dstu2016may.model.UriType)
return Uri14_40.convertUri((org.hl7.fhir.dstu2016may.model.UriType) src);
if (src instanceof org.hl7.fhir.dstu2016may.model.Extension)
return Extension14_40.convertExtension((org.hl7.fhir.dstu2016may.model.Extension) src);
if (src instanceof org.hl7.fhir.dstu2016may.model.Narrative)

View File

@ -45,10 +45,10 @@ public class Type14_50 {
return UnsignedInt14_50.convertUnsignedInt((org.hl7.fhir.dstu2016may.model.UnsignedIntType) src);
if (src instanceof org.hl7.fhir.dstu2016may.model.IntegerType)
return Integer14_50.convertInteger((org.hl7.fhir.dstu2016may.model.IntegerType) src);
if (src instanceof org.hl7.fhir.dstu2016may.model.UriType)
return Uri14_50.convertUri((org.hl7.fhir.dstu2016may.model.UriType) src);
if (src instanceof org.hl7.fhir.dstu2016may.model.UuidType)
return Uuid14_50.convertUuid((org.hl7.fhir.dstu2016may.model.UuidType) src);
if (src instanceof org.hl7.fhir.dstu2016may.model.UriType)
return Uri14_50.convertUri((org.hl7.fhir.dstu2016may.model.UriType) src);
if (src instanceof org.hl7.fhir.dstu2016may.model.Extension)
return Extension14_50.convertExtension((org.hl7.fhir.dstu2016may.model.Extension) src);
if (src instanceof org.hl7.fhir.dstu2016may.model.Narrative)

View File

@ -44,10 +44,10 @@ public class Type30_50 {
return String30_50.convertString((org.hl7.fhir.dstu3.model.StringType) src);
if (src instanceof org.hl7.fhir.dstu3.model.TimeType)
return Time30_50.convertTime((org.hl7.fhir.dstu3.model.TimeType) src);
if (src instanceof org.hl7.fhir.dstu3.model.UriType)
return Uri30_50.convertUri((org.hl7.fhir.dstu3.model.UriType) src);
if (src instanceof org.hl7.fhir.dstu3.model.UuidType)
return Uuid30_50.convertUuid((org.hl7.fhir.dstu3.model.UuidType) src);
if (src instanceof org.hl7.fhir.dstu3.model.UriType)
return Uri30_50.convertUri((org.hl7.fhir.dstu3.model.UriType) src);
if (src instanceof org.hl7.fhir.dstu3.model.Extension)
return Extension30_50.convertExtension((org.hl7.fhir.dstu3.model.Extension) src);
if (src instanceof org.hl7.fhir.dstu3.model.Narrative)

View File

@ -1,7 +1,10 @@
package org.hl7.fhir.convertors;
import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Canonical10_40;
import org.hl7.fhir.convertors.factory.*;
import org.hl7.fhir.r4.model.CanonicalType;
import org.junit.jupiter.api.Assertions;
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;
@ -12,6 +15,8 @@ import java.lang.reflect.Method;
import java.math.BigDecimal;
import java.util.Arrays;
import java.util.concurrent.Callable;
import java.util.function.Function;
import java.util.stream.Stream;
public class VersionConvertorPrimitiveTypeTests {
@ -91,7 +96,7 @@ public class VersionConvertorPrimitiveTypeTests {
"1933-01-02T13:45:12", "1933-01-02T13:45:12.3", "1933-01-02T13:45:12.3456"
};
private static <K,L> Stream<Arguments> getConversionParams(Class<? extends VersionConvertorFactory> versionConverterFactoryClazz, Class<K> firstTypeClazz, Class<?> firstTypeMethodClazz, Class<L> secondTypeClazz, Class<?> secondTypeMethodClazz, String[] testStrings) {
private static <K,L> Stream<Arguments> getFactoryConversionParams(Class<? extends VersionConvertorFactory> versionConverterFactoryClazz, Class<K> firstTypeClazz, Class<?> firstTypeMethodClazz, Class<L> secondTypeClazz, Class<?> secondTypeMethodClazz, String[] testStrings) {
return Arrays.stream(testStrings).map( it -> Arguments.of(versionConverterFactoryClazz,
firstTypeClazz, firstTypeMethodClazz, it,
@ -99,639 +104,639 @@ public class VersionConvertorPrimitiveTypeTests {
));
}
private static Stream<Arguments> getParams() {
private static Stream<Arguments> getFactoryParams() {
return Stream.of(
//Base64Binary
getConversionParams(VersionConvertorFactory_10_30.class,
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),
getConversionParams(VersionConvertorFactory_10_40.class,
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),
getConversionParams(VersionConvertorFactory_10_50.class,
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),
getConversionParams(VersionConvertorFactory_14_30.class,
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),
getConversionParams(VersionConvertorFactory_14_40.class,
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),
getConversionParams(VersionConvertorFactory_14_50.class,
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),
getConversionParams(VersionConvertorFactory_30_40.class,
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),
getConversionParams(VersionConvertorFactory_30_50.class,
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),
getConversionParams(VersionConvertorFactory_40_50.class,
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
getConversionParams(VersionConvertorFactory_10_30.class,
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),
getConversionParams(VersionConvertorFactory_10_40.class,
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),
getConversionParams(VersionConvertorFactory_10_50.class,
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),
getConversionParams(VersionConvertorFactory_14_30.class,
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),
getConversionParams(VersionConvertorFactory_14_40.class,
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),
getConversionParams(VersionConvertorFactory_14_50.class,
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),
getConversionParams(VersionConvertorFactory_30_40.class,
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),
getConversionParams(VersionConvertorFactory_30_50.class,
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),
getConversionParams(VersionConvertorFactory_40_50.class,
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
getConversionParams(VersionConvertorFactory_10_30.class,
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),
getConversionParams(VersionConvertorFactory_10_40.class,
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),
getConversionParams(VersionConvertorFactory_10_50.class,
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),
getConversionParams(VersionConvertorFactory_14_30.class,
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),
getConversionParams(VersionConvertorFactory_14_40.class,
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),
getConversionParams(VersionConvertorFactory_14_50.class,
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),
getConversionParams(VersionConvertorFactory_30_40.class,
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),
getConversionParams(VersionConvertorFactory_30_50.class,
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),
getConversionParams(VersionConvertorFactory_40_50.class,
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
getConversionParams(VersionConvertorFactory_10_30.class,
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),
getConversionParams(VersionConvertorFactory_10_40.class,
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),
getConversionParams(VersionConvertorFactory_10_50.class,
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),
getConversionParams(VersionConvertorFactory_14_30.class,
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),
getConversionParams(VersionConvertorFactory_14_40.class,
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),
getConversionParams(VersionConvertorFactory_14_50.class,
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),
getConversionParams(VersionConvertorFactory_30_40.class,
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),
getConversionParams(VersionConvertorFactory_30_50.class,
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),
getConversionParams(VersionConvertorFactory_40_50.class,
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
getConversionParams(VersionConvertorFactory_10_30.class,
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),
getConversionParams(VersionConvertorFactory_10_40.class,
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),
getConversionParams(VersionConvertorFactory_10_50.class,
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),
getConversionParams(VersionConvertorFactory_14_30.class,
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),
getConversionParams(VersionConvertorFactory_14_40.class,
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),
getConversionParams(VersionConvertorFactory_14_50.class,
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),
getConversionParams(VersionConvertorFactory_30_40.class,
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),
getConversionParams(VersionConvertorFactory_30_50.class,
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),
getConversionParams(VersionConvertorFactory_40_50.class,
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
getConversionParams(VersionConvertorFactory_10_30.class,
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),
getConversionParams(VersionConvertorFactory_10_40.class,
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),
getConversionParams(VersionConvertorFactory_10_50.class,
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),
getConversionParams(VersionConvertorFactory_14_30.class,
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),
getConversionParams(VersionConvertorFactory_14_40.class,
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),
getConversionParams(VersionConvertorFactory_14_50.class,
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),
getConversionParams(VersionConvertorFactory_30_40.class,
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),
getConversionParams(VersionConvertorFactory_30_50.class,
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),
getConversionParams(VersionConvertorFactory_40_50.class,
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
getConversionParams(VersionConvertorFactory_10_30.class,
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),
getConversionParams(VersionConvertorFactory_10_40.class,
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),
getConversionParams(VersionConvertorFactory_10_50.class,
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),
getConversionParams(VersionConvertorFactory_14_30.class,
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),
getConversionParams(VersionConvertorFactory_14_40.class,
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),
getConversionParams(VersionConvertorFactory_14_50.class,
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),
getConversionParams(VersionConvertorFactory_30_40.class,
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),
getConversionParams(VersionConvertorFactory_30_50.class,
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),
getConversionParams(VersionConvertorFactory_40_50.class,
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),
//Oid
getConversionParams(VersionConvertorFactory_10_30.class,
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),
getConversionParams(VersionConvertorFactory_10_40.class,
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),
getConversionParams(VersionConvertorFactory_10_50.class,
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),
getConversionParams(VersionConvertorFactory_14_30.class,
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),
getConversionParams(VersionConvertorFactory_14_40.class,
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),
getConversionParams(VersionConvertorFactory_14_50.class,
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),
getConversionParams(VersionConvertorFactory_30_40.class,
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),
getConversionParams(VersionConvertorFactory_30_50.class,
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),
getConversionParams(VersionConvertorFactory_40_50.class,
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
getConversionParams(VersionConvertorFactory_10_30.class,
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),
getConversionParams(VersionConvertorFactory_10_40.class,
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),
getConversionParams(VersionConvertorFactory_10_50.class,
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),
getConversionParams(VersionConvertorFactory_14_30.class,
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),
getConversionParams(VersionConvertorFactory_14_40.class,
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),
getConversionParams(VersionConvertorFactory_14_50.class,
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),
getConversionParams(VersionConvertorFactory_30_40.class,
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),
getConversionParams(VersionConvertorFactory_30_50.class,
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),
getConversionParams(VersionConvertorFactory_40_50.class,
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
getConversionParams(VersionConvertorFactory_10_30.class,
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),
getConversionParams(VersionConvertorFactory_10_40.class,
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),
getConversionParams(VersionConvertorFactory_10_50.class,
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),
getConversionParams(VersionConvertorFactory_14_30.class,
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),
getConversionParams(VersionConvertorFactory_14_40.class,
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),
getConversionParams(VersionConvertorFactory_14_50.class,
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),
getConversionParams(VersionConvertorFactory_30_40.class,
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),
getConversionParams(VersionConvertorFactory_30_50.class,
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),
getConversionParams(VersionConvertorFactory_40_50.class,
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),
//UnsignedInt
getConversionParams(VersionConvertorFactory_10_30.class,
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),
getConversionParams(VersionConvertorFactory_10_40.class,
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),
getConversionParams(VersionConvertorFactory_10_50.class,
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),
getConversionParams(VersionConvertorFactory_14_30.class,
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),
getConversionParams(VersionConvertorFactory_14_40.class,
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),
getConversionParams(VersionConvertorFactory_14_50.class,
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),
getConversionParams(VersionConvertorFactory_30_40.class,
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),
getConversionParams(VersionConvertorFactory_30_50.class,
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),
getConversionParams(VersionConvertorFactory_40_50.class,
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
getConversionParams(VersionConvertorFactory_10_30.class,
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),
getConversionParams(VersionConvertorFactory_10_40.class,
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),
getConversionParams(VersionConvertorFactory_10_50.class,
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),
getConversionParams(VersionConvertorFactory_14_30.class,
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),
getConversionParams(VersionConvertorFactory_14_40.class,
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),
getConversionParams(VersionConvertorFactory_14_50.class,
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),
getConversionParams(VersionConvertorFactory_30_40.class,
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),
getConversionParams(VersionConvertorFactory_30_50.class,
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),
getConversionParams(VersionConvertorFactory_40_50.class,
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),
//Uuid
getConversionParams(VersionConvertorFactory_10_30.class,
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),
getConversionParams(VersionConvertorFactory_10_40.class,
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),
getConversionParams(VersionConvertorFactory_10_50.class,
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),
getConversionParams(VersionConvertorFactory_14_30.class,
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),
getConversionParams(VersionConvertorFactory_14_40.class,
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),
getConversionParams(VersionConvertorFactory_14_50.class,
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),
getConversionParams(VersionConvertorFactory_30_40.class,
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),
getConversionParams(VersionConvertorFactory_30_50.class,
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),
getConversionParams(VersionConvertorFactory_40_50.class,
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
getConversionParams(VersionConvertorFactory_10_30.class,
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),
getConversionParams(VersionConvertorFactory_10_40.class,
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),
getConversionParams(VersionConvertorFactory_10_50.class,
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),
getConversionParams(VersionConvertorFactory_14_30.class,
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),
getConversionParams(VersionConvertorFactory_14_40.class,
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),
getConversionParams(VersionConvertorFactory_14_50.class,
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),
getConversionParams(VersionConvertorFactory_30_40.class,
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),
getConversionParams(VersionConvertorFactory_30_50.class,
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),
getConversionParams(VersionConvertorFactory_40_50.class,
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
getConversionParams(VersionConvertorFactory_10_30.class,
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),
getConversionParams(VersionConvertorFactory_10_40.class,
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),
getConversionParams(VersionConvertorFactory_10_50.class,
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),
getConversionParams(VersionConvertorFactory_10_30.class,
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),
getConversionParams(VersionConvertorFactory_10_40.class,
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),
getConversionParams(VersionConvertorFactory_10_50.class,
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
getConversionParams(VersionConvertorFactory_10_30.class,
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),
getConversionParams(VersionConvertorFactory_10_40.class,
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),
getConversionParams(VersionConvertorFactory_10_50.class,
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),
getConversionParams(VersionConvertorFactory_14_30.class,
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),
getConversionParams(VersionConvertorFactory_14_40.class,
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),
getConversionParams(VersionConvertorFactory_14_50.class,
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),
getConversionParams(VersionConvertorFactory_30_40.class,
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),
getConversionParams(VersionConvertorFactory_30_50.class,
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),
getConversionParams(VersionConvertorFactory_40_50.class,
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
getConversionParams(VersionConvertorFactory_10_30.class,
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),
getConversionParams(VersionConvertorFactory_10_40.class,
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),
getConversionParams(VersionConvertorFactory_10_50.class,
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),
getConversionParams(VersionConvertorFactory_14_30.class,
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),
getConversionParams(VersionConvertorFactory_14_40.class,
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),
getConversionParams(VersionConvertorFactory_14_50.class,
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),
getConversionParams(VersionConvertorFactory_30_40.class,
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),
getConversionParams(VersionConvertorFactory_30_50.class,
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),
getConversionParams(VersionConvertorFactory_40_50.class,
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)
@ -739,20 +744,19 @@ public class VersionConvertorPrimitiveTypeTests {
}
@ParameterizedTest(name = "Test index: {index} ConvertorFactory={0} First Class={1} First Value={3} Second Class={4} Second Value={6}")
@MethodSource("getParams")
public <K, L> void testValidConversion(Class<VersionConvertorFactory> versionConverterFactoryClazz, Class<K> firstTypeClazz, Class<?> firstTypeMethodClazz, String firstString, Class<L> secondTypeClazz, Class<?> secondTypeMethodClazz, String secondString) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException, InstantiationException {
testValidConversion(versionConverterFactoryClazz, firstTypeClazz, firstTypeMethodClazz, firstString, secondTypeClazz, secondString);
testValidConversion(versionConverterFactoryClazz, secondTypeClazz, secondTypeMethodClazz, secondString, firstTypeClazz, firstString);
@MethodSource("getFactoryParams")
public <K, L> void testValidFactoryConversion(Class<VersionConvertorFactory> versionConverterFactoryClazz, Class<K> firstTypeClazz, Class<?> firstTypeMethodClazz, String firstString, Class<L> secondTypeClazz, Class<?> secondTypeMethodClazz, String secondString) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException, InstantiationException {
testValidFactoryConversion(versionConverterFactoryClazz, firstTypeClazz, firstTypeMethodClazz, firstString, secondTypeClazz, secondString);
testValidFactoryConversion(versionConverterFactoryClazz, secondTypeClazz, secondTypeMethodClazz, secondString, firstTypeClazz, firstString);
}
public <K, L> void testValidConversion(Class<VersionConvertorFactory> versionConverterFactoryClazz, Class<K> srcTypeClazz, Class<?> srcTypeMethodClazz, String srcString, Class<L> tgtTypeClazz, String tgtString) throws NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException {
public <K, L> void testValidFactoryConversion(Class<VersionConvertorFactory> versionConverterFactoryClazz, Class<K> srcTypeClazz, Class<?> srcTypeMethodClazz, String srcString, Class<L> tgtTypeClazz, String tgtString) throws NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException {
K srcInstance = srcTypeClazz.getDeclaredConstructor().newInstance();
Method srcSetValueAsStringMethod = srcTypeClazz.getMethod("setValueAsString", String.class);
Method srcGetValueAsString = srcTypeClazz.getMethod("getValueAsString");
Method srcHasValue = srcTypeClazz.getMethod("hasValue");
Method convertTypeMethod = versionConverterFactoryClazz.getMethod("convertType", srcTypeMethodClazz);
Method tgtGetValueAsString = tgtTypeClazz.getMethod("getValueAsString");
@ -763,7 +767,6 @@ public class VersionConvertorPrimitiveTypeTests {
boolean srcHasValueReturn = (boolean) srcHasValue.invoke(srcInstance);
L tgtInstance = (L) convertTypeMethod.invoke(null, srcInstance);
if (srcHasValueReturn) {
@ -773,4 +776,30 @@ public class VersionConvertorPrimitiveTypeTests {
Assertions.assertNull(tgtInstance);
}
}
private static Stream<Arguments> getDirectConversionParams() {
return Stream.of(
Arguments.of(org.hl7.fhir.r4.model.CanonicalType.class, org.hl7.fhir.dstu2.model.Reference.class,
(Function<org.hl7.fhir.r4.model.CanonicalType, org.hl7.fhir.dstu2.model.Reference>) Canonical10_40::convertCanonicalToReference,
"/test", "/test")
);
}
@Disabled
@ParameterizedTest(name = "Test index: {index} Source Class={1} First Value={3} Second Class={4} Second Value={6}")
@MethodSource("getDirectConversionParams")
public <K, L> void testDirectConversion(Class<K> srcTypeClazz, Class<L> targetTypeClazz, Function<K, L> convertFunction, String srcString, String tgtString) throws NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException {
K srcInstance = srcTypeClazz.getDeclaredConstructor().newInstance();
Method srcSetValueAsStringMethod = srcTypeClazz.getMethod("setValueAsString", String.class);
Method srcGetValueAsString = srcTypeClazz.getMethod("getValueAsString");
Method srcHasValue = srcTypeClazz.getMethod("hasValue");
srcSetValueAsStringMethod.invoke(srcInstance, srcString);
L tgtInstance = convertFunction.apply(srcInstance);
}
}