From 930ab929298948513e927ef3369e9dd3681b79dc Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Mon, 16 Dec 2019 23:34:28 +1100 Subject: [PATCH] try fixing issue with ContactPoint.rank --- .../org/hl7/fhir/convertors/VersionConvertor_10_50.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_10_50.java index db791c6fa..bcef6719b 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_10_50.java @@ -924,8 +924,9 @@ public class VersionConvertor_10_50 { tgt.setSystem(convertContactPointSystem(src.getSystem())); tgt.setValue(src.getValue()); tgt.setUse(convertContactPointUse(src.getUse())); - if (src.hasRank()) + if (src.hasRank()) { tgt.setRank(src.getRank()); + } tgt.setPeriod(convertPeriod(src.getPeriod())); return tgt; } @@ -939,7 +940,9 @@ public class VersionConvertor_10_50 { tgt.setSystem(convertContactPointSystem(src.getSystem())); tgt.setValue(src.getValue()); tgt.setUse(convertContactPointUse(src.getUse())); - tgt.setRank(src.getRank()); + if (src.hasRank()) { + tgt.setRank(src.getRank()); + } if (src.hasPeriod()) tgt.setPeriod(convertPeriod(src.getPeriod())); return tgt;