Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
INB
eTRANSAFE
pretox-sr-domain-identification
Commits
ff95fc36
Commit
ff95fc36
authored
Nov 18, 2021
by
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
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/main/java/es/bsc/inb/ades/export/json/main/App.java
View file @
ff95fc36
...
...
@@ -219,7 +219,7 @@ public class App {
//document.addProperty("textWithAnnotations", new String(Files.readAllBytes(inputFile.getAbsoluteFile().toPath()), StandardCharsets.UTF_8));
annotated_document
.
addProperty
(
"id"
,
id_document
);
annotated_document
.
addProperty
(
"name"
,
name
);
annotated_document
.
addProperty
(
"name"
,
fileNameWithOutExt
);
JsonObject
section
=
new
JsonObject
();
section
.
addProperty
(
"name"
,
"document"
);
...
...
@@ -246,7 +246,7 @@ public class App {
Date
date
=
new
Date
();
JsonObject
text_document
=
new
JsonObject
();
text_document
.
addProperty
(
"id"
,
id_document
);
text_document
.
addProperty
(
"name"
,
name
);
text_document
.
addProperty
(
"name"
,
fileNameWithOutExt
);
text_document
.
addProperty
(
"fileName"
,
name
);
text_document
.
addProperty
(
"processDate"
,
dateFormat
.
format
(
date
));
text_document
.
addProperty
(
"text"
,
plainText
);
...
...
@@ -717,6 +717,14 @@ public class App {
}
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"
);
if
(
dose_
!=
null
)
{
Annotation
dose
=
dose_
.
get
(
0
);
...
...
@@ -815,6 +823,10 @@ public class App {
}
}
}
return
srDomainFindingList
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment