summaryrefslogtreecommitdiff
path: root/server/xml/macros/amdpreopconclusion-1.0.xml
blob: 03dbff05ccee15b3701449a57a90573d979bdbf5 (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
<?xml version='1.0' encoding='UTF-8'?>
<!--
    20081204: Bent Bisballe Nyeng
    Feltnavnene ændret så de giver mening.
  -->
<macro name="amdpreopconclusion" version="1.0">
  <resume store_in_journal="true">${amd_preop.conclusion}
${amd_preop.conclusion_additional}${amd_preop.conclusion_terminated}.</resume>
  <queries>
  </queries>
  <maps>
  </maps>
  <scripts>
    <script language="lua" name="afsluttes">
      if value == 'Der findes ingen indikation for yderligere udredning.'
      then
        setValue('amd_preop.conclusion_terminated', ' - Afsluttes')
      end
      return true
    </script>
  </scripts>
  <widgets caption="Yderligere diagnostik (B.2.2.8)"
          layout="vbox">
    
    <frame layout="vbox">
      <frame layout="hbox">
	<combobox name="amd_preop.conclusion"
		  value=""
		  script="afsluttes">
	  <item caption="Ingen indikation for yderligere udredning af AMD."
		value="Der findes ingen indikation for yderligere udredning af AMD."/>
	  <item caption="Der findes indikation for fluorescens angiografi"
		value="Der findes indikation for fluorescens angiografi."/>
	</combobox>
      </frame>
      <label caption="Supplerende:"/>
      <textedit name="amd_preop.conclusion_additional" value=""/>
      <checkbox caption="Afsluttes" name="amd_preop.conclusion_terminated"
		truevalue=" - Afsluttes" falsevalue="" value=""/>
    </frame>
    
    <!-- Knapper -->
    <frame layout="hbox">
      <spacer/>
      <button caption="Gem" action="commit"/>
    </frame>
  </widgets>
</macro>