Return null for conversions where isEmpty() == true

This commit is contained in:
dotasek 2022-03-16 17:09:54 -04:00
parent b4f94c385d
commit 2d1254fcac
3 changed files with 6 additions and 6 deletions

View File

@ -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 {
if (src == null) return null;
if (src == null || src.isEmpty()) return null;
if (src instanceof org.hl7.fhir.dstu3.model.Base64BinaryType)
return Base64Binary30_40.convertBase64Binary((org.hl7.fhir.dstu3.model.Base64BinaryType) src);
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 {
if (src == null) return null;
if (src == null || src.isEmpty()) return null;
if (src instanceof org.hl7.fhir.r4.model.Base64BinaryType)
return Base64Binary30_40.convertBase64Binary((org.hl7.fhir.r4.model.Base64BinaryType) src);
if (src instanceof org.hl7.fhir.r4.model.BooleanType)

View File

@ -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 {
if (src == null) return null;
if (src == null || src.isEmpty()) return null;
if (src instanceof org.hl7.fhir.dstu3.model.Base64BinaryType)
return Base64Binary30_50.convertBase64Binary((org.hl7.fhir.dstu3.model.Base64BinaryType) src);
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 {
if (src == null) return null;
if (src == null || src.isEmpty()) return null;
if (src instanceof org.hl7.fhir.r5.model.Base64BinaryType)
return Base64Binary30_50.convertBase64Binary((org.hl7.fhir.r5.model.Base64BinaryType) src);
if (src instanceof org.hl7.fhir.r5.model.BooleanType)

View File

@ -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 {
if (src == null) return null;
if (src == null || src.isEmpty()) return null;
if (src instanceof org.hl7.fhir.r4.model.Base64BinaryType)
return Base64Binary40_50.convertBase64Binary((org.hl7.fhir.r4.model.Base64BinaryType) src);
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 {
if (src == null) return null;
if (src == null || src.isEmpty()) return null;
if (src instanceof org.hl7.fhir.r5.model.Base64BinaryType)
return Base64Binary40_50.convertBase64Binary((org.hl7.fhir.r5.model.Base64BinaryType) src);
if (src instanceof org.hl7.fhir.r5.model.BooleanType)