mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-03-03 09:59:10 +00:00
Return null for conversions where isEmpty() == true
This commit is contained in:
parent
b4f94c385d
commit
2d1254fcac
org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors
conv30_40/datatypes30_40
conv30_50/datatypes30_50
conv40_50/datatypes40_50
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user