From 0e5020fa0ab8cf71b51bd5fbab2d7b48eaf3985e Mon Sep 17 00:00:00 2001 From: Tadgh Date: Tue, 22 Sep 2020 15:12:54 -0400 Subject: [PATCH] If statement checking wrong attribute (#2098) --- .../src/main/java/ca/uhn/fhir/empi/util/PersonHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hapi-fhir-server-empi/src/main/java/ca/uhn/fhir/empi/util/PersonHelper.java b/hapi-fhir-server-empi/src/main/java/ca/uhn/fhir/empi/util/PersonHelper.java index 7b19be826e5..675dc6c4cff 100644 --- a/hapi-fhir-server-empi/src/main/java/ca/uhn/fhir/empi/util/PersonHelper.java +++ b/hapi-fhir-server-empi/src/main/java/ca/uhn/fhir/empi/util/PersonHelper.java @@ -268,7 +268,7 @@ public class PersonHelper { if (theAllowOverwriting || person.getName().isEmpty()) { person.setName(patient.getName()); } - if (theAllowOverwriting || person.getName().isEmpty()) { + if (theAllowOverwriting || person.getAddress().isEmpty()) { person.setAddress(patient.getAddress()); } if (theAllowOverwriting || person.getTelecom().isEmpty()) {