Skip to content
Snippets Groups Projects

old import code

Merged Piotr Gawron requested to merge duplicates-removal into master
1 file
+ 25
28
Compare changes
  • Side-by-side
  • Inline
@@ -47,35 +47,32 @@ public class RedcapParser {
@@ -47,35 +47,32 @@ public class RedcapParser {
subject.setBirthDate(tmp[2]);
subject.setBirthDate(tmp[2]);
}
}
// for now only PRC and flying team subjects
List<AppointmentEntry> subjectAppointments = new ArrayList<>();
if (subject.getToBeSeenAt() == null || subject.getToBeSeenAt().startsWith("P") || subject.getToBeSeenAt().startsWith("F")) {
if (!tmp[9].isEmpty()) {
List<AppointmentEntry> subjectAppointments = new ArrayList<>();
subjectAppointments.add(createEntryLevelA(tmp[9], tmp[10], subject));
if (!tmp[9].isEmpty()) {
subjectAppointments.add(createEntryLevelA(tmp[9], tmp[10], subject));
}
if (!tmp[13].isEmpty()) {
subjectAppointments.add(createEntryLevelB(tmp[13], tmp[14], subject));
}
if (!tmp[17].isEmpty()) {
subjectAppointments.add(createEntryLevelBG(tmp[17], tmp[18], subject));
}
if (!tmp[21].isEmpty()) {
subjectAppointments.add(createEntryLevelBV(tmp[21], tmp[22], subject));
}
if (!tmp[41].isEmpty()) {
subjectAppointments.add(createEntryLevelSB(tmp[41], subject));
}
if (!tmp[45].isEmpty()) {
subjectAppointments.add(createEntryLevelMPower(tmp[45], subject));
}
result.addAll(subjectAppointments);
}
}
 
 
if (!tmp[13].isEmpty()) {
 
subjectAppointments.add(createEntryLevelB(tmp[13], tmp[14], subject));
 
}
 
 
if (!tmp[17].isEmpty()) {
 
subjectAppointments.add(createEntryLevelBG(tmp[17], tmp[18], subject));
 
}
 
 
if (!tmp[21].isEmpty()) {
 
subjectAppointments.add(createEntryLevelBV(tmp[21], tmp[22], subject));
 
}
 
 
if (!tmp[41].isEmpty()) {
 
subjectAppointments.add(createEntryLevelSB(tmp[41], subject));
 
}
 
 
if (!tmp[45].isEmpty()) {
 
subjectAppointments.add(createEntryLevelMPower(tmp[45], subject));
 
}
 
 
result.addAll(subjectAppointments);
}
}
}
}
Loading