-
Notifications
You must be signed in to change notification settings - Fork 0
/
list.pug
63 lines (57 loc) · 2.16 KB
/
list.pug
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
.container
div#perfModal.modal(tabindex='-1' role='dialog' aria-labelledby='#finaliseModalLabel' aria-hidden='true')
div.modal-dialog(role='document')
div.modal-content
div.modal-body
h3#perfModalLabel.modal-title Performance
h4 Overall
p TP: #{perf.overall.tp}, FP: #{perf.overall.fp}, FN: #{perf.overall.fn}
p Precision: #{perf.overall.precision}
p Recall: #{perf.overall.recall}
h4 Affirmed
p TP: #{perf.affirmed.tp}, FP: #{perf.affirmed.fp}, FN: #{perf.affirmed.fn}
p Precision: #{perf.affirmed.precision}
p Recall: #{perf.affirmed.recall}
h4 Uncertain
p TP: #{perf.uncertain.tp}, FP: #{perf.uncertain.fp}, FN: #{perf.uncertain.fn}
p Precision: #{perf.uncertain.precision}
p Recall: #{perf.uncertain.recall}
h4 Negated
p TP: #{perf.negated.tp}, FP: #{perf.negated.fp}, FN: #{perf.negated.fn}
p Precision: #{perf.negated.precision}
p Recall: #{perf.negated.recall}
- var c = 0;
h1 Medotate
button#save.submit(value='Submit' style='font-size:20px') Save Results
button#performance(value='View' style='font-size:20px') View Performance
h3 Patients
table#plist.stripe
thead
tr
th(style='width:18%') Number
th(style='width:18%') UID
th(style='width:18%') Factors
tfoot
tr
th(style='width:18%') Number
th(style='width:18%') UID
th(style='width:18%') Factors
tbody
each entries, uid in diagnoses
- c++
- var factors = []
each iri in entries
if iri.self
if groupMode
- factors.push(iri.self.iri)
else
- factors.push(iri.self.label)
tr
td(style='text-align:left') #{c}
-if(results[uid])
td(style='text-align:left;background-color:green;')
a(href='javascript:f.loadView("'+uid+'")' style='color: white') #{uid}
-else
td(style='text-align:left')
a(href='javascript:f.loadView("'+uid+'")') #{uid}
td(style='text-align:left') #{factors.join(', ')}