Return null for conversions where isEmpty() == true
This commit is contained in:
parent
b4f94c385d
commit
2d1254fcac
|
@ -14,7 +14,7 @@ public class Type30_40 {
|
||||||
}
|
}
|
||||||
|
|
||||||
public org.hl7.fhir.r4.model.Type convertType(org.hl7.fhir.dstu3.model.Type src) throws FHIRException {
|
public org.hl7.fhir.r4.model.Type convertType(org.hl7.fhir.dstu3.model.Type src) throws FHIRException {
|
||||||
if (src == null) return null;
|
if (src == null || src.isEmpty()) return null;
|
||||||
if (src instanceof org.hl7.fhir.dstu3.model.Base64BinaryType)
|
if (src instanceof org.hl7.fhir.dstu3.model.Base64BinaryType)
|
||||||
return Base64Binary30_40.convertBase64Binary((org.hl7.fhir.dstu3.model.Base64BinaryType) src);
|
return Base64Binary30_40.convertBase64Binary((org.hl7.fhir.dstu3.model.Base64BinaryType) src);
|
||||||
if (src instanceof org.hl7.fhir.dstu3.model.BooleanType)
|
if (src instanceof org.hl7.fhir.dstu3.model.BooleanType)
|
||||||
|
@ -122,7 +122,7 @@ public class Type30_40 {
|
||||||
}
|
}
|
||||||
|
|
||||||
public org.hl7.fhir.dstu3.model.Type convertType(org.hl7.fhir.r4.model.Type src) throws FHIRException {
|
public org.hl7.fhir.dstu3.model.Type convertType(org.hl7.fhir.r4.model.Type src) throws FHIRException {
|
||||||
if (src == null) return null;
|
if (src == null || src.isEmpty()) return null;
|
||||||
if (src instanceof org.hl7.fhir.r4.model.Base64BinaryType)
|
if (src instanceof org.hl7.fhir.r4.model.Base64BinaryType)
|
||||||
return Base64Binary30_40.convertBase64Binary((org.hl7.fhir.r4.model.Base64BinaryType) src);
|
return Base64Binary30_40.convertBase64Binary((org.hl7.fhir.r4.model.Base64BinaryType) src);
|
||||||
if (src instanceof org.hl7.fhir.r4.model.BooleanType)
|
if (src instanceof org.hl7.fhir.r4.model.BooleanType)
|
||||||
|
|
|
@ -14,7 +14,7 @@ public class Type30_50 {
|
||||||
}
|
}
|
||||||
|
|
||||||
public org.hl7.fhir.r5.model.DataType convertType(org.hl7.fhir.dstu3.model.Type src) throws FHIRException {
|
public org.hl7.fhir.r5.model.DataType convertType(org.hl7.fhir.dstu3.model.Type src) throws FHIRException {
|
||||||
if (src == null) return null;
|
if (src == null || src.isEmpty()) return null;
|
||||||
if (src instanceof org.hl7.fhir.dstu3.model.Base64BinaryType)
|
if (src instanceof org.hl7.fhir.dstu3.model.Base64BinaryType)
|
||||||
return Base64Binary30_50.convertBase64Binary((org.hl7.fhir.dstu3.model.Base64BinaryType) src);
|
return Base64Binary30_50.convertBase64Binary((org.hl7.fhir.dstu3.model.Base64BinaryType) src);
|
||||||
if (src instanceof org.hl7.fhir.dstu3.model.BooleanType)
|
if (src instanceof org.hl7.fhir.dstu3.model.BooleanType)
|
||||||
|
@ -120,7 +120,7 @@ public class Type30_50 {
|
||||||
}
|
}
|
||||||
|
|
||||||
public org.hl7.fhir.dstu3.model.Type convertType(org.hl7.fhir.r5.model.DataType src) throws FHIRException {
|
public org.hl7.fhir.dstu3.model.Type convertType(org.hl7.fhir.r5.model.DataType src) throws FHIRException {
|
||||||
if (src == null) return null;
|
if (src == null || src.isEmpty()) return null;
|
||||||
if (src instanceof org.hl7.fhir.r5.model.Base64BinaryType)
|
if (src instanceof org.hl7.fhir.r5.model.Base64BinaryType)
|
||||||
return Base64Binary30_50.convertBase64Binary((org.hl7.fhir.r5.model.Base64BinaryType) src);
|
return Base64Binary30_50.convertBase64Binary((org.hl7.fhir.r5.model.Base64BinaryType) src);
|
||||||
if (src instanceof org.hl7.fhir.r5.model.BooleanType)
|
if (src instanceof org.hl7.fhir.r5.model.BooleanType)
|
||||||
|
|
|
@ -17,7 +17,7 @@ public class Type40_50 {
|
||||||
}
|
}
|
||||||
|
|
||||||
public org.hl7.fhir.r5.model.DataType convertType(org.hl7.fhir.r4.model.Type src) throws FHIRException {
|
public org.hl7.fhir.r5.model.DataType convertType(org.hl7.fhir.r4.model.Type src) throws FHIRException {
|
||||||
if (src == null) return null;
|
if (src == null || src.isEmpty()) return null;
|
||||||
if (src instanceof org.hl7.fhir.r4.model.Base64BinaryType)
|
if (src instanceof org.hl7.fhir.r4.model.Base64BinaryType)
|
||||||
return Base64Binary40_50.convertBase64Binary((org.hl7.fhir.r4.model.Base64BinaryType) src);
|
return Base64Binary40_50.convertBase64Binary((org.hl7.fhir.r4.model.Base64BinaryType) src);
|
||||||
if (src instanceof org.hl7.fhir.r4.model.BooleanType)
|
if (src instanceof org.hl7.fhir.r4.model.BooleanType)
|
||||||
|
@ -136,7 +136,7 @@ public class Type40_50 {
|
||||||
}
|
}
|
||||||
|
|
||||||
public org.hl7.fhir.r4.model.Type convertType(org.hl7.fhir.r5.model.DataType src) throws FHIRException {
|
public org.hl7.fhir.r4.model.Type convertType(org.hl7.fhir.r5.model.DataType src) throws FHIRException {
|
||||||
if (src == null) return null;
|
if (src == null || src.isEmpty()) return null;
|
||||||
if (src instanceof org.hl7.fhir.r5.model.Base64BinaryType)
|
if (src instanceof org.hl7.fhir.r5.model.Base64BinaryType)
|
||||||
return Base64Binary40_50.convertBase64Binary((org.hl7.fhir.r5.model.Base64BinaryType) src);
|
return Base64Binary40_50.convertBase64Binary((org.hl7.fhir.r5.model.Base64BinaryType) src);
|
||||||
if (src instanceof org.hl7.fhir.r5.model.BooleanType)
|
if (src instanceof org.hl7.fhir.r5.model.BooleanType)
|
||||||
|
|
Loading…
Reference in New Issue