diff options
author | bertho <bertho> | 2009-02-04 11:26:58 +0000 |
---|---|---|
committer | bertho <bertho> | 2009-02-04 11:26:58 +0000 |
commit | 1bce9e4ebb9521c26fdbc586d4eadd6f2a52b618 (patch) | |
tree | 497e277a15390025db1158c7a39776cdbd1645f4 /server/xml/macros/B.2.2.5.xml | |
parent | 4497bea2b68a883d1bed72797f27275c833843ea (diff) |
Add macros and templates to repository
Diffstat (limited to 'server/xml/macros/B.2.2.5.xml')
-rw-r--r-- | server/xml/macros/B.2.2.5.xml | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/server/xml/macros/B.2.2.5.xml b/server/xml/macros/B.2.2.5.xml new file mode 100644 index 0000000..9199a1c --- /dev/null +++ b/server/xml/macros/B.2.2.5.xml @@ -0,0 +1,72 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!-- + 20081203: Bent Bisballe Nyeng + Feltnavnene ændret så de giver mening. + --> +<!-- + 20090108: Bent Bisballe Nyeng + Højre/venstre byttet om. + --> +<macro name="B.2.2.5" version="1.0"> + <resume>Øjentryk: +Højre øje: ${tonometer.pressure.right} mmHg +Venstre øje: ${tonometer.pressure.right} mmHg +${tonometer.device}.</resume> + <queries> + </queries> + <maps> + </maps> + <scripts> + <script language="lua" name="lt80gt0"> + if(value == '') + then + return false + end + + value = string.gsub(value, ',', '.') + if(tonumber(value) >= 0 and tonumber(value) <= 80) + then + return true + else + return false + end + </script> + </scripts> + <window caption="Øjentryk (B.2.2.5)" + layout="vbox"> + + <frame layout="hbox"> + + <!-- Højre øje --> + <frame caption="Højre øje" layout="hbox"> + <label caption="Tryk:"/> + <spacer/> + <lineedit name="tonometer.pressure.right" regexp="\d{1,2}" script="lt80gt0" value=""/> + <label caption="mmHg"/> + <spacer/> + </frame> + + <!-- Venstre øje --> + <frame caption="Venstre øje" layout="hbox"> + <label caption="Tryk:"/> + <spacer/> + <lineedit name="tonometer.pressure.left" regexp="\d{1,2}" script="lt80gt0" value=""/> + <label caption="mmHg"/> + <spacer/> + </frame> + + </frame> + + <label caption="Tonometer måling foretaget med:"/> + <combobox name="tonometer.device" value=""> + <item caption="Applanationstonometer" value="Appl"/> + <item caption="Lufttonometer" value="Luft"/> + </combobox> + + <!-- Knapper --> + <frame layout="hbox"> + <spacer /> + <button caption="Gem" action="commit"/> + </frame> + </window> +</macro> |