Commit ff95fc36 authored by Javi Corvi's avatar Javi Corvi
Browse files

name of the report without extension and treatment related fingind field

parent d5420c21
Pipeline #25976 passed with stage
in 1 minute and 49 seconds
...@@ -219,7 +219,7 @@ public class App { ...@@ -219,7 +219,7 @@ public class App {
//document.addProperty("textWithAnnotations", new String(Files.readAllBytes(inputFile.getAbsoluteFile().toPath()), StandardCharsets.UTF_8)); //document.addProperty("textWithAnnotations", new String(Files.readAllBytes(inputFile.getAbsoluteFile().toPath()), StandardCharsets.UTF_8));
annotated_document.addProperty("id", id_document); annotated_document.addProperty("id", id_document);
annotated_document.addProperty("name", name); annotated_document.addProperty("name", fileNameWithOutExt);
JsonObject section = new JsonObject(); JsonObject section = new JsonObject();
section.addProperty("name", "document"); section.addProperty("name", "document");
...@@ -246,7 +246,7 @@ public class App { ...@@ -246,7 +246,7 @@ public class App {
Date date = new Date(); Date date = new Date();
JsonObject text_document = new JsonObject(); JsonObject text_document = new JsonObject();
text_document.addProperty("id", id_document); text_document.addProperty("id", id_document);
text_document.addProperty("name", name); text_document.addProperty("name", fileNameWithOutExt);
text_document.addProperty("fileName", name); text_document.addProperty("fileName", name);
text_document.addProperty("processDate", dateFormat.format(date)); text_document.addProperty("processDate", dateFormat.format(date));
text_document.addProperty("text", plainText); text_document.addProperty("text", plainText);
...@@ -717,6 +717,14 @@ public class App { ...@@ -717,6 +717,14 @@ public class App {
} }
srDomainFindingList.add(srDomainFinding); srDomainFindingList.add(srDomainFinding);
List<Annotation> is_treatment_related_ = annotations_findings_by_type.get("IS_TREATMENT_RELATED");
if(is_treatment_related_!=null) {
Annotation is_treatment_related = is_treatment_related_.get(0);
String is_treatment_related_sendcode = is_treatment_related.getFeatures().get("value").toString();
srDomainFinding.setSRTRTEF(is_treatment_related_sendcode);
}
List<Annotation> dose_ = annotations_findings_by_type.get("DOSE"); List<Annotation> dose_ = annotations_findings_by_type.get("DOSE");
if(dose_!=null) { if(dose_!=null) {
Annotation dose = dose_.get(0); Annotation dose = dose_.get(0);
...@@ -815,6 +823,10 @@ public class App { ...@@ -815,6 +823,10 @@ public class App {
} }
} }
} }
return srDomainFindingList; return srDomainFindingList;
} }
......
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