Commit eafab500 authored by Matthieu Bonnouvrier's avatar Matthieu Bonnouvrier
Browse files

Add TUs

parent d63101f9
Pipeline #262933 canceled with stages
in 3 minutes and 33 seconds
......@@ -64,9 +64,12 @@ public class PatientCrossReferenceDAOImpl implements PatientCrossReferenceDAO {
throw new IllegalArgumentException("The uuid of patientDB shall not be null");
}
TypedQuery<CrossReferenceDB> queryForPatientAliases = entityManager.createNamedQuery("CrossReferenceDB.findByCrossRefId", CrossReferenceDB.class);
System.out.println("searchForPatientAliasesWithPatientDB");
System.out.println(patientDB.getPixReference());
System.out.println(patientDB.getPixReference().getId());
queryForPatientAliases.setParameter("pixReference", patientDB.getPixReference().getId());
List<CrossReferenceDB> crossReferenceDBS = queryForPatientAliases.getResultList();
if (crossReferenceDBS.isEmpty()) {
if (crossReferenceDBS.isEmpty() || crossReferenceDBS.get(0).getPatients().isEmpty()) {
throw new SearchCrossReferenceException("Search error : No X-ref for given Patient");
}
return crossReferenceDBS;
......
Markdown is supported
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