From 5ae1cb6e50f42a812fb16a52f271cc63e2c80fc2 Mon Sep 17 00:00:00 2001
From: fde <franck.desaize@kereval.com>
Date: Mon, 6 Sep 2021 13:59:43 +0200
Subject: [PATCH] Update POM

---
 pom.xml                                                    | 7 ++++---
 .../ihe/gazelle/application/PatientRegistryFeedClient.java | 1 +
 .../business/provider/ChPatientResourceProvider.java       | 2 +-
 3 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/pom.xml b/pom.xml
index 882f4e3..ae84a00 100644
--- a/pom.xml
+++ b/pom.xml
@@ -22,7 +22,7 @@
 		<git.project.url>
 			https://${git.user.name}:${git.user.token}@gitlab.inria.fr/gazelle/applications/test-execution/simulator/pixm-connector.git
 		</git.project.url>
-		<hapifhir_version>5.4.0</hapifhir_version>
+		<hapifhir_version>5.5.1</hapifhir_version>
 		<maven.release.plugin.version>2.5.3</maven.release.plugin.version>
 		<nexus.staging.maven.plugin.version>1.6.8</nexus.staging.maven.plugin.version>
 		<sonar.maven.plugin>3.9.0.2155</sonar.maven.plugin>
@@ -336,7 +336,7 @@
 		<dependency>
 			<groupId>info.debatty</groupId>
 			<artifactId>java-string-similarity</artifactId>
-			<version>RELEASE</version>
+			<version>2.0.0</version>
 		</dependency>
 
 		<!-- Needed for JEE/Servlet support -->
@@ -356,7 +356,7 @@
 		<dependency>
 			<groupId>org.thymeleaf</groupId>
 			<artifactId>thymeleaf</artifactId>
-			<version>3.0.2.RELEASE</version>
+			<version>3.0.12.RELEASE</version>
 		</dependency>
 
 		<dependency>
@@ -418,6 +418,7 @@
 			<groupId>io.qameta.allure</groupId>
 			<artifactId>allure-junit5</artifactId>
 			<version>2.14.0</version>
+			<scope>test</scope>
 		</dependency>
 		<dependency>
 			<groupId>com.googlecode.json-simple</groupId>
diff --git a/src/main/java/net/ihe/gazelle/application/PatientRegistryFeedClient.java b/src/main/java/net/ihe/gazelle/application/PatientRegistryFeedClient.java
index 29890d3..565b42f 100644
--- a/src/main/java/net/ihe/gazelle/application/PatientRegistryFeedClient.java
+++ b/src/main/java/net/ihe/gazelle/application/PatientRegistryFeedClient.java
@@ -114,6 +114,7 @@ public class PatientRegistryFeedClient {
 		String uuid = "";
 		try {
 			patient.setUuid("PatientPIXmFeed");
+			patient.setActive(true);
 			uuid = client.createPatient(patient);
 
 			if (uuid == null || uuid.isBlank()) {
diff --git a/src/main/java/net/ihe/gazelle/business/provider/ChPatientResourceProvider.java b/src/main/java/net/ihe/gazelle/business/provider/ChPatientResourceProvider.java
index f6e50f0..0b21ac1 100644
--- a/src/main/java/net/ihe/gazelle/business/provider/ChPatientResourceProvider.java
+++ b/src/main/java/net/ihe/gazelle/business/provider/ChPatientResourceProvider.java
@@ -188,7 +188,7 @@ public class ChPatientResourceProvider implements IResourceProvider {
             throw new InvalidRequestException(NO_ID_PROVIDED);
         }
 
-        String uuid = theId.getValue();
+        String uuid = theId.getIdPart();
         try {
             MethodOutcome methodOutcome = new MethodOutcome();
             methodOutcome.setResource(patientRegistryFeedClient.delete(uuid));
-- 
GitLab