Commit 7d13fd10 authored by Franck Desaize's avatar Franck Desaize
Browse files

FIXME

parent d6cb0f34
Pipeline #280099 failed with stages
in 7 minutes and 30 seconds
......@@ -159,7 +159,7 @@ public class PatientDAOImpl implements PatientDAO {
/**
* {@inheritDoc}
*/
*/ //FIXME
@Override
public Patient updatePatient(Patient patient) throws PatientUpdateException {
try {
......@@ -175,6 +175,7 @@ public class PatientDAOImpl implements PatientDAO {
/**
* {@inheritDoc}
*/
//FIXME
@Override
public Patient updatePatient(Patient patient, int crossReferenceId) throws PatientUpdateException {
try {
......@@ -353,6 +354,7 @@ public class PatientDAOImpl implements PatientDAO {
/**
* {@inheritDoc}
*/
//FIXME
@Override
public void checkUniquenessPatientIdentifier(Patient patient) throws PatientIdentifierException {
try {
......@@ -375,6 +377,7 @@ public class PatientDAOImpl implements PatientDAO {
* @param patientDB
* @throws DeletionCrossReferenceException
*/
//FIXME
private void deleteEmptyCrossReference(PatientAliases patientAliases, PatientDB patientDB) throws
DeletionCrossReferenceException {
if (patientAliases.getMembers().size() == 1 && patientAliases.getMembers().contains(PatientConverter.toPatient(patientDB))) {
......
......@@ -14,6 +14,7 @@ import java.util.List;
import net.ihe.gazelle.app.patientregistryapi.business.GenderCode;
import net.ihe.gazelle.app.patientregistryapi.business.Patient;
import net.ihe.gazelle.app.patientregistryapi.business.PatientAliases;
import org.junit.Assert;
import org.junit.jupiter.api.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
......@@ -25,7 +26,7 @@ import io.qameta.allure.SeverityLevel;
import io.qameta.allure.Story;
import net.ihe.gazelle.app.patientregistryservice.adapter.dao.pamsimulator.model.patient.GenderCodeDB;
import net.ihe.gazelle.app.patientregistryservice.application.exceptions.CrossReferenceApplicationException;
//FIXME
@Feature("XRefAlgorithm")
public class PatientCrossReferenceAlgorithmTest {
......@@ -48,6 +49,7 @@ public class PatientCrossReferenceAlgorithmTest {
int crossReferenceId = new PatientCrossReferenceAlgorithm().getCrossReferenceIdOfMatchingPatient(patientToCompare, patientsList);
assertEquals(crossReferenceId, 1);
} catch (CrossReferenceApplicationException e) {
Assert.fail();
LOGGER.error(e.getMessage());
}
......@@ -347,6 +349,7 @@ public class PatientCrossReferenceAlgorithmTest {
private Patient createPatient(String firstName, String lastName, GenderCode gender, LocalDate birthDate) {
Patient patient = new Patient();
patient.setGender(gender);
patient.setDateOfBirth(Date.from(birthDate.atStartOfDay(ZoneId.systemDefault()).toInstant()));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment