Skip to content
Snippets Groups Projects
Commit 534e16ad authored by Piotr Gawron's avatar Piotr Gawron
Browse files

fix on redcap sex and date of birth update

parent af17fd9f
No related branches found
No related tags found
1 merge request!1Appointments dev
......@@ -40,8 +40,12 @@ public class RedcapParser {
subject.addLanguage(tmp[5]);
subject.addLanguage(tmp[6]);
subject.addLanguage(tmp[7]);
subject.setSex(tmp[3]);
subject.setBirthDate(tmp[2]);
if (!tmp[3].trim().isEmpty()) {
subject.setSex(tmp[3]);
}
if (!tmp[2].trim().isEmpty()) {
subject.setBirthDate(tmp[2]);
}
// for now only PRC and flying team subjects
if (subject.getToBeSeenAt() == null || subject.getToBeSeenAt().startsWith("P") || subject.getToBeSeenAt().startsWith("F")) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment