blob: d6323307432366a5bea7d77eb976d40bf1de7252 (
plain)
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
<?xml version='1.0' encoding='UTF-8'?>
<!--
20081208: Bent Bisballe Nyeng
Feltnavnene ændret så de giver mening.
-->
<!--
200901007: Bent Bisballe Nyeng
Fluorescens info felterne skjules nu istedet for kun at blive disabled.
-->
<macro name="B.2.7.3" version="1.0">
<resume>Konklusion:
${fluorescens.conclusion}
${fluorescens.additional_info}</resume>
<queries>
</queries>
<maps>
</maps>
<scripts>
<script language="lua" name="angiografi_konklusion">
-- This script sets the value of additional according to conclusion.
if( getValue('fluorescens.conclusion') == 'Klassisk subretinal karnydannelse.'
or getValue('fluorescens.conclusion') == 'Overvejende klassisk subretinal neovaskulær membran.' )
then
setValue('fluorescens.additional_info', 'additional')
setVisible('fluorescens.additional_info', true)
return true
else
setValue('fluorescens.additional_info', '')
setVisible('fluorescens.additional_info', false)
return true
end
</script>
</scripts>
<window caption="Konklusion (B.2.7.3)"
layout="vbox">
<combobox name="fluorescens.conclusion" value="test" script="angiografi_konklusion">
<item caption="Atrofiske foranderinger. Der findes ingen behandlingsindikation"
value="Atrofiske foranderinger. Der findes ingen behandlingsindikation." />
<item caption="Pigmentepitelløsning. Der findes ingen behandlingsindikation"
value="Pigmentepitelløsning. Der findes ingen behandlingsindikation." />
<item caption="Klassisk subretinal karnydannelse"
value="Klassisk subretinal karnydannelse." />
<item caption="Overvejende klassisk subretinal neovaskulær membran"
value="Overvejende klassisk subretinal neovaskulær membran." />
<item caption="Minimalt klassisk subretinal neovaskulær membran"
value="Minimalt klassisk subretinal neovaskulær membran." />
<item caption="Occutalt subretinal neovaskulær membran."
value="Occutalt subretinal neovaskulær membran." />
</combobox>
<frame name="yderligere_info_box" layout="hbox">
<frame layout="vbox">
<label caption="Yderligere information:" width="150"/>
<spacer/>
</frame>
<altcombobox name="fluorescens.additional_info" layout="vbox"
script="angiografi_konklusion" visible="false">
<item caption="Ingen" value=""/>
<altitem caption="Udfyld" value="additional" innerwidget="additional_meta">
<metawidget name="additional_meta" layout="hbox"
format="Membranen er beliggende ${position} og membranstørrelsen er ${size} µm.">
<frame layout="vbox">
<label caption="Membran beliggenhed:" />
<label caption="Membranstørrelse:" />
</frame>
<frame layout="vbox">
<combobox name="position" value="">
<item caption="Subfovealt" value="subfovealt" />
<item caption="Juxtafovealt" value="juxtafovealt" />
<item caption="Extrafovealt" value="extrafovealt" />
</combobox>
<frame layout="hbox">
<lineedit name="size" value=""/>
<label caption="µm" />
</frame>
</frame>
</metawidget>
</altitem>
</altcombobox>
</frame>
<!-- Knapper -->
<frame layout="hbox">
<spacer/>
<button caption="Gem" action="commit"/>
</frame>
</window>
</macro>
|