Commit 83bfe25e authored by Javi Corvi's avatar Javi Corvi
Browse files

no more sex spliting

parent b214a1db
Pipeline #26274 passed with stage
in 4 seconds
......@@ -805,23 +805,27 @@ public class App {
List<Annotation> sex_ = annotations_findings_by_type.get("SEX");
if(sex_!=null) {
Annotation sex = sex_.get(0);
String sex_sendcode = sex.getFeatures().get("ETOX_SEND_CODE")==null?"BOTH":sex.getFeatures().get("ETOX_SEND_CODE").toString();
if(sex_sendcode.equals("BOTH")) {
List<SRDomainFinding> to_iterate = new ArrayList<SRDomainFinding>(srDomainFindingList);
for (SRDomainFinding srDomainFinding1 : to_iterate) {
srDomainFinding1.setSRSEX("F");
SRDomainFinding srDomainFinding2 = srDomainFinding.clone();
srDomainFinding2.setSRSEX("M");
id_sr_finding = id_sr_finding + 1;
srDomainFinding2.setSRSEQ(id_sr_finding.toString());
srDomainFinding2.setSrDomainId(id_sr_finding);
srDomainFindingList.add(srDomainFinding2);
}
}else {
for (SRDomainFinding sRDomainFinding : srDomainFindingList) {
sRDomainFinding.setSRSEX(sex_sendcode);
}
String sex_sendcode = sex.getFeatures().get("CDISC_SEND_CODE")==null?"B":sex.getFeatures().get("CDISC_SEND_CODE").toString();
//just set B as both, no more split.
for (SRDomainFinding sRDomainFinding : srDomainFindingList) {
sRDomainFinding.setSRSEX(sex_sendcode);
}
// if(sex_sendcode.equals("BOTH")) {
// List<SRDomainFinding> to_iterate = new ArrayList<SRDomainFinding>(srDomainFindingList);
// for (SRDomainFinding srDomainFinding1 : to_iterate) {
// srDomainFinding1.setSRSEX("F");
// SRDomainFinding srDomainFinding2 = srDomainFinding.clone();
// srDomainFinding2.setSRSEX("M");
// id_sr_finding = id_sr_finding + 1;
// srDomainFinding2.setSRSEQ(id_sr_finding.toString());
// srDomainFinding2.setSrDomainId(id_sr_finding);
// srDomainFindingList.add(srDomainFinding2);
// }
// }else {
// for (SRDomainFinding sRDomainFinding : srDomainFindingList) {
// sRDomainFinding.setSRSEX(sex_sendcode);
// }
// }
}
......
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