From 66c843fa88260fd311792ddd551d980a68f719ea Mon Sep 17 00:00:00 2001 From: Quentin Ligier Date: Mon, 25 Aug 2025 11:03:32 +0200 Subject: [PATCH] Fix datatype of mothersMaidenName in PdqmMatchInputPatient --- .../ihe/fhir/iti119/PdqmMatchInputPatient.java | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/commons/ihe/fhir/r4/pixpdq/src/main/java/org/openehealth/ipf/commons/ihe/fhir/iti119/PdqmMatchInputPatient.java b/commons/ihe/fhir/r4/pixpdq/src/main/java/org/openehealth/ipf/commons/ihe/fhir/iti119/PdqmMatchInputPatient.java index a45540455c..e9b9035565 100644 --- a/commons/ihe/fhir/r4/pixpdq/src/main/java/org/openehealth/ipf/commons/ihe/fhir/iti119/PdqmMatchInputPatient.java +++ b/commons/ihe/fhir/r4/pixpdq/src/main/java/org/openehealth/ipf/commons/ihe/fhir/iti119/PdqmMatchInputPatient.java @@ -18,15 +18,9 @@ import ca.uhn.fhir.model.api.annotation.Extension; import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.DateClientParam; -import ca.uhn.fhir.rest.gclient.StringClientParam; -import ca.uhn.fhir.rest.gclient.TokenClientParam; import ca.uhn.fhir.util.ElementUtil; -import org.hl7.fhir.instance.model.api.IAnyResource; -import org.hl7.fhir.r4.model.*; -import java.util.ArrayList; -import java.util.List; +import org.hl7.fhir.r4.model.*; /** * Patient as defined by the PDQm specification @@ -41,21 +35,21 @@ public class PdqmMatchInputPatient extends Patient { @Child(name = "mothersMaidenName") @Extension(url = "http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName", definedLocally = false) @Description(shortDefinition = "Mother's maiden name of a patient") - private HumanName mothersMaidenName; + private StringType mothersMaidenName; @Override public boolean isEmpty() { return super.isEmpty() && ElementUtil.isEmpty(mothersMaidenName); } - public HumanName getMothersMaidenName() { + public StringType getMothersMaidenName() { if (mothersMaidenName == null) { - mothersMaidenName = new HumanName(); + mothersMaidenName = new StringType(); } return mothersMaidenName; } - public void setMothersMaidenName(HumanName mothersMaidenName) { + public void setMothersMaidenName(StringType mothersMaidenName) { this.mothersMaidenName = mothersMaidenName; }