summaryrefslogtreecommitdiff
path: root/server/xml/macros/vurdering_af_fundus-1.0.xml
blob: e76a81c3290f184d0642511e276fcf68aa9842cd (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
<?xml version='1.0' encoding='UTF-8'?>
<!--
    20090420: Bent Bisballe Nyeng
    Resume opdateret så det altid inkluderer både randhæmorrhagier og
    exsudater, både hvis de er observerede og hvis de ikke er det.
  -->
<macro name="vurdering_af_fundus" version="1.0">
  <resume language="lua">
    out = '90-D undersøgelse:\nDer findes '
    if(getValue('fundus.randhaemorrhagier') == '' and getValue('fundus.exsudater') == '')
    then
      out = out .. 'ingen randhæmorrhagier eller exsudater'
    else
      if(getValue('fundus.randhaemorrhagier') ~= '' and getValue('fundus.exsudater') ~= '')
      then
        out = out .. 'randhæmorrhagier og exsudater'
      else
        if(getValue('fundus.randhaemorrhagier') ~= '')
        then
          out = out .. 'randhæmorrhagier, men ingen exsudater'
        end
        if(getValue('fundus.exsudater') ~= '')
        then
          out = out .. 'ingen randhæmorrhagier, men exsudater'
        end
      end
    end
    out = out .. '.\n'
    return out
  </resume>
  <queries>
  </queries>
  <maps>
  </maps>
  <scripts>
  </scripts>
  <widgets caption="Vurdering af fundus (B.2.5)"
          layout="vbox">

    <combobox name="fundus.kilde" value="">
      <item caption="Fundus foto" value="Fundus foto"/>
      <item caption="90-D linse undersøgelse" value="90-D linse undersøgelse"/>
    </combobox>

    <label caption="viser"/>

    <checkbox name="fundus.randhaemorrhagier" caption="Randhæmorrhagier"
	      truevalue="Randhæmorrhagier" falsevalue="" value=""/>
    <checkbox name="fundus.exsudater" caption="Exsudater"
	      truevalue="Exsudater" falsevalue="" value=""/>

    <!-- Knapper -->
    <frame layout="hbox">
      <spacer/>
      <button caption="Gem" action="commit"/>
    </frame>
  </widgets>
</macro>