summaryrefslogtreecommitdiff
path: root/server/xml
diff options
context:
space:
mode:
Diffstat (limited to 'server/xml')
-rw-r--r--server/xml/macros/externa-1.0.xml232
-rw-r--r--server/xml/macros/orbita-1.0.xml376
-rw-r--r--server/xml/macros/pupillen-1.0.xml158
3 files changed, 766 insertions, 0 deletions
diff --git a/server/xml/macros/externa-1.0.xml b/server/xml/macros/externa-1.0.xml
new file mode 100644
index 0000000..695f36e
--- /dev/null
+++ b/server/xml/macros/externa-1.0.xml
@@ -0,0 +1,232 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<macro name="externa" version="1.0">
+ <resume language="lua">
+ out = ''
+
+ if ( getValue('externa.odxt.mangler') == '' )
+ then
+ out = out .. 'Externa o.dxt:\n'
+ out = out .. 'Placering af øvre øjenlågsrand i forhold til den øvre corneosklerale limbus ' .. getValue('externa.odxt.placering') .. '.\n'
+ out = out .. 'Øjenlågsretraktion: ' .. getValue('externa.odxt.oejenslaagsretraktion') .. '\n'
+ out = out .. 'Øjenspaltens højde: ' .. getValue('externa.odxt.hoejde') .. '\n'
+ out = out .. 'Bløddelshævelse: ' .. getValue('externa.odxt.bloeddelshaevelse') .. '\n'
+ end
+
+ if ( getValue('externa.osin.mangler') == '' )
+ then
+ if ( getValue('externa.odxt.mangler') == '' )
+ then
+ out = out .. '\n'
+ end
+ out = out .. 'Externa o.sin:\n'
+ out = out .. 'Placering af øvre øjenlågsrand i forhold til den øvre corneosklerale limbus ' .. getValue('externa.osin.placering') .. '.\n'
+ out = out .. 'Øjenlågsretraktion: ' .. getValue('externa.osin.oejenlaagsretraktion') .. '\n'
+ out = out .. 'Øjenspaltens højde: ' .. getValue('externa.osin.hoejde') .. '\n'
+ out = out .. 'Bløddelshævelse: ' .. getValue('externa.osin.bloeddelshaevelse') .. '\n'
+ end
+
+ return out
+ </resume>
+ <queries>
+ <query service="pracro" class="missing_eye_odxt" ttl="1000000"/>
+ <query service="pracro" class="missing_eye_osin" ttl="1000000"/>
+ </queries>
+ <maps>
+ <map name="missing_eye_odxt_map">
+ value = 0
+ timestamp = 0
+ source = ''
+
+ if( missing_eye_odxt )
+ then
+ if( missing_eye_odxt.value and missing_eye_odxt.value == '' )
+ then
+ value = ''
+ timestamp = missing_eye_odxt.timestamp
+ source = missing_eye_odxt.source
+ else
+ value = 'mangler'
+ timestamp = missing_eye_odxt.timestamp
+ source = missing_eye_odxt.source
+ end
+ end
+ return value, timestamp, source
+ </map>
+ <map name="missing_eye_osin_map">
+ value = 0
+ timestamp = 0
+ source = ''
+
+ if( missing_eye_osin )
+ then
+ if( missing_eye_osin.value and missing_eye_osin.value == '' )
+ then
+ value = ''
+ timestamp = missing_eye_osin.timestamp
+ source = missing_eye_osin.source
+ else
+ value = 'mangler'
+ timestamp = missing_eye_osin.timestamp
+ source = missing_eye_osin.source
+ end
+ end
+ return value, timestamp, source
+ </map>
+ </maps>
+ <scripts>
+ <script language="lua" name="right_eye">
+ if ( value == 'mangler' )
+ then
+ disable('right_eye_frame')
+ else
+ enable('right_eye_frame')
+ end
+
+ return true
+ </script>
+ <script language="lua" name="left_eye">
+ if ( value == 'mangler' )
+ then
+ disable('left_eye_frame')
+ else
+ enable('left_eye_frame')
+ end
+
+ return true
+ </script>
+ </scripts>
+ <widgets caption="Externa" layout="vbox">
+
+ <frame layout="hbox">
+
+ <!-- o.dxt -->
+ <frame layout="vbox">
+ <checkbox caption="Der er ikke målt på o.dxt"
+ name="externa.odxt.mangler" script="right_eye"
+ map="missing_eye_odxt_map"
+ truevalue="mangler" falsevalue="" value=""/>
+ <frame name="right_eye_frame" caption="o.dxt" layout="vbox">
+ <frame layout="vbox">
+ <label caption="Placering af øvre øjenlågsrand i forhold til den øvre corneosklerale limbus:"/>
+ <combobox name="externa.odxt.placering" value="">
+ <item caption="Går lige til limbus" value="går lige til limbus"/>
+ <item caption="Ligger lidt over limbus" value="ligger lidt over limbus"/>
+ <item caption="Ligger meget over limbus" value="ligger meget over limbus"/>
+ <item caption="Er ikke beskrevet" value="er ikke beskrevet"/>
+ </combobox>
+ </frame>
+ <frame layout="vbox">
+ <label caption="Øjenlågsretraktion:"/>
+ <combobox name="externa.odxt.oejenslaagsretraktion" value="">
+ <item caption="Ingen" value="ingen"/>
+ <item caption="Let" value="let"/>
+ <item caption="Moderat" value="moderat"/>
+ <item caption="Kraftig" value="kraftig"/>
+ </combobox>
+ </frame>
+ <frame layout="vbox">
+ <label caption="Øjenspaltens højde:"/>
+ <frame layout="hbox">
+ <combobox name="externa.odxt.hoejde" value="">
+ <item caption="0" value="0"/>
+ <item caption="1" value="1"/>
+ <item caption="2" value="2"/>
+ <item caption="3" value="3"/>
+ <item caption="4" value="4"/>
+ <item caption="5" value="5"/>
+ <item caption="6" value="6"/>
+ <item caption="7" value="7"/>
+ <item caption="8" value="8"/>
+ <item caption="9" value="9"/>
+ <item caption="10" value="10"/>
+ <item caption="11" value="11"/>
+ <item caption="12" value="12"/>
+ <item caption="13" value="13"/>
+ <item caption="14" value="14"/>
+ <item caption="15" value="15"/>
+ </combobox>
+ <label caption="mm"/>
+ </frame>
+ </frame>
+ <frame layout="vbox">
+ <label caption="Bløddelshævelse:"/>
+ <combobox name="externa.odxt.bloeddelshaevelse" value="">
+ <item caption="Ingen" value="ingen"/>
+ <item caption="Let" value="let"/>
+ <item caption="Moderat" value="moderat"/>
+ <item caption="Kraftig" value="kraftig"/>
+ </combobox>
+ </frame>
+ </frame>
+ </frame>
+
+ <!-- o.sin -->
+ <frame layout="vbox">
+ <checkbox caption="Der er ikke målt på o.sin"
+ name="externa.osin.mangler" script="left_eye"
+ map="missing_eye_osin_map"
+ truevalue="mangler" falsevalue="" value=""/>
+ <frame name="left_eye_frame" caption="o.sin" layout="vbox">
+ <frame layout="vbox">
+ <label caption="Placering af øvre øjenlågsrand i forhold til den øvre corneosklerale limbus:"/>
+ <combobox name="externa.osin.placering" value="">
+ <item caption="Går lige til limbus" value="går lige til limbus"/>
+ <item caption="Ligger lidt over limbus" value="ligger lidt over limbus"/>
+ <item caption="Ligger meget over limbus" value="ligger meget over limbus"/>
+ <item caption="Er ikke beskrevet" value="er ikke beskrevet"/>
+ </combobox>
+ </frame>
+ <frame layout="vbox">
+ <label caption="Øjenlågsretraktion:"/>
+ <combobox name="externa.osin.oejenlaagsretraktion" value="">
+ <item caption="Ingen" value="ingen"/>
+ <item caption="Let" value="let"/>
+ <item caption="Moderat" value="moderat"/>
+ <item caption="Kraftig" value="kraftig"/>
+ </combobox>
+ </frame>
+ <frame layout="vbox">
+ <label caption="Øjenspaltens højde:"/>
+ <frame layout="hbox">
+ <combobox name="externa.osin.hoejde" value="">
+ <item caption="0" value="0"/>
+ <item caption="1" value="1"/>
+ <item caption="2" value="2"/>
+ <item caption="3" value="3"/>
+ <item caption="4" value="4"/>
+ <item caption="5" value="5"/>
+ <item caption="6" value="6"/>
+ <item caption="7" value="7"/>
+ <item caption="8" value="8"/>
+ <item caption="9" value="9"/>
+ <item caption="10" value="10"/>
+ <item caption="11" value="11"/>
+ <item caption="12" value="12"/>
+ <item caption="13" value="13"/>
+ <item caption="14" value="14"/>
+ <item caption="15" value="15"/>
+ </combobox>
+ <label caption="mm"/>
+ </frame>
+ </frame>
+ <frame layout="vbox">
+ <label caption="Bløddelshævelse:"/>
+ <combobox name="externa.osin.bloeddelshaevelse" value="">
+ <item caption="Ingen" value="ingen"/>
+ <item caption="Let" value="let"/>
+ <item caption="Moderat" value="moderat"/>
+ <item caption="Kraftig" value="kraftig"/>
+ </combobox>
+ </frame>
+ </frame>
+ </frame>
+
+ </frame>
+
+ <!-- Knapper -->
+ <frame layout="hbox">
+ <spacer />
+ <button caption="Gem" action="commit"/>
+ </frame>
+ </widgets>
+</macro>
diff --git a/server/xml/macros/orbita-1.0.xml b/server/xml/macros/orbita-1.0.xml
new file mode 100644
index 0000000..a052696
--- /dev/null
+++ b/server/xml/macros/orbita-1.0.xml
@@ -0,0 +1,376 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<macro name="orbita" version="1.0">
+ <resume language="lua">
+ out = ''
+
+ if ( getValue('orbita.odxt.mangler') == '' )
+ then
+ out = out .. 'Orbita o.dxt:\n'
+ out = out .. 'Den retrobulbære resistance er ' .. getValue('orbita.odxt.resistance') .. '.\n'
+ out = out .. 'Hertelmål: ' .. getValue('orbita.odxt.hertelmaalx') .. '-' .. getValue('orbita.odxt.hertelmaaly') .. '/' .. getValue('orbita.odxt.hertelmaalz') .. '\n'
+ end
+
+ if ( getValue('orbita.osin.mangler') == '' )
+ then
+ if ( getValue('orbita.odxt.mangler') == '' )
+ then
+ out = out .. '\n'
+ end
+ out = out .. 'Orbita o.sin:\n'
+ out = out .. 'Den retrobulbære resistance er ' .. getValue('orbita.osin.resistance') .. '.\n'
+ out = out .. 'Hertelmål: ' .. getValue('orbita.osin.hertelmaalx') .. '-' .. getValue('orbita.osin.hertelmaaly') .. '/' .. getValue('orbita.osin.hertelmaalz') .. '\n'
+ end
+
+ return out
+ </resume>
+ <queries>
+ <query service="pracro" class="missing_eye_odxt" ttl="1000000"/>
+ <query service="pracro" class="missing_eye_osin" ttl="1000000"/>
+ </queries>
+ <maps>
+ <map name="missing_eye_odxt_map">
+ value = 0
+ timestamp = 0
+ source = ''
+
+ if( missing_eye_odxt )
+ then
+ if( missing_eye_odxt.value and missing_eye_odxt.value == '' )
+ then
+ value = ''
+ timestamp = missing_eye_odxt.timestamp
+ source = missing_eye_odxt.source
+ else
+ value = 'mangler'
+ timestamp = missing_eye_odxt.timestamp
+ source = missing_eye_odxt.source
+ end
+ end
+ return value, timestamp, source
+ </map>
+ <map name="missing_eye_osin_map">
+ value = 0
+ timestamp = 0
+ source = ''
+
+ if( missing_eye_osin )
+ then
+ if( missing_eye_osin.value and missing_eye_osin.value == '' )
+ then
+ value = ''
+ timestamp = missing_eye_osin.timestamp
+ source = missing_eye_osin.source
+ else
+ value = 'mangler'
+ timestamp = missing_eye_osin.timestamp
+ source = missing_eye_osin.source
+ end
+ end
+ return value, timestamp, source
+ </map>
+ </maps>
+ <scripts>
+ <script language="lua" name="right_eye">
+ if ( value == 'mangler' )
+ then
+ disable('right_eye_frame')
+ else
+ enable('right_eye_frame')
+ end
+
+ return true
+ </script>
+ <script language="lua" name="left_eye">
+ if ( value == 'mangler' )
+ then
+ disable('left_eye_frame')
+ else
+ enable('left_eye_frame')
+ end
+
+ return true
+ </script>
+ </scripts>
+ <widgets caption="Orbita" layout="vbox">
+
+ <frame layout="hbox">
+
+ <!-- o.dxt -->
+ <frame layout="vbox">
+ <checkbox caption="Der er ikke målt på o.dxt"
+ name="orbita.odxt.mangler" script="right_eye"
+ map="missing_eye_odxt_map"
+ truevalue="mangler" falsevalue="" value=""/>
+ <frame name="right_eye_frame" caption="o.dxt" layout="vbox">
+ <frame layout="vbox">
+ <label caption="Den retrobulbære resistance er:"/>
+ <combobox name="orbita.odxt.resistance" value="">
+ <item caption="Normal" value="normal"/>
+ <item caption="Øget" value="øget"/>
+ <item caption="Hård" value="hård"/>
+ </combobox>
+ </frame>
+ <frame layout="hbox">
+ <label caption="Hertelmål:"/>
+ <combobox name="orbita.odxt.hertelmaalx" value="">
+ <item caption="5" value="5"/>
+ <item caption="6" value="6"/>
+ <item caption="7" value="7"/>
+ <item caption="8" value="8"/>
+ <item caption="9" value="9"/>
+ <item caption="10" value="10"/>
+ <item caption="11" value="11"/>
+ <item caption="12" value="12"/>
+ <item caption="13" value="13"/>
+ <item caption="14" value="14"/>
+ <item caption="15" value="15"/>
+ <item caption="16" value="16"/>
+ <item caption="17" value="17"/>
+ <item caption="18" value="18"/>
+ <item caption="19" value="19"/>
+ <item caption="20" value="20"/>
+ <item caption="21" value="21"/>
+ <item caption="22" value="22"/>
+ <item caption="23" value="23"/>
+ <item caption="24" value="24"/>
+ <item caption="25" value="25"/>
+ <item caption="26" value="26"/>
+ <item caption="27" value="27"/>
+ <item caption="28" value="28"/>
+ <item caption="29" value="29"/>
+ <item caption="30" value="30"/>
+ </combobox>
+ <label caption=" - "/>
+ <combobox name="orbita.odxt.hertelmaaly" value="">
+ <item caption="5" value="5"/>
+ <item caption="6" value="6"/>
+ <item caption="7" value="7"/>
+ <item caption="8" value="8"/>
+ <item caption="9" value="9"/>
+ <item caption="10" value="10"/>
+ <item caption="11" value="11"/>
+ <item caption="12" value="12"/>
+ <item caption="13" value="13"/>
+ <item caption="14" value="14"/>
+ <item caption="15" value="15"/>
+ <item caption="16" value="16"/>
+ <item caption="17" value="17"/>
+ <item caption="18" value="18"/>
+ <item caption="19" value="19"/>
+ <item caption="20" value="20"/>
+ <item caption="21" value="21"/>
+ <item caption="22" value="22"/>
+ <item caption="23" value="23"/>
+ <item caption="24" value="24"/>
+ <item caption="25" value="25"/>
+ <item caption="26" value="26"/>
+ <item caption="27" value="27"/>
+ <item caption="28" value="28"/>
+ <item caption="29" value="29"/>
+ <item caption="30" value="30"/>
+ </combobox>
+ <label caption=" / "/>
+ <combobox name="orbita.odxt.hertelmaalz" value="">
+ <item caption="80" value="80"/>
+ <item caption="81" value="81"/>
+ <item caption="82" value="82"/>
+ <item caption="83" value="83"/>
+ <item caption="84" value="84"/>
+ <item caption="85" value="85"/>
+ <item caption="86" value="86"/>
+ <item caption="87" value="87"/>
+ <item caption="88" value="88"/>
+ <item caption="89" value="89"/>
+ <item caption="90" value="90"/>
+ <item caption="91" value="91"/>
+ <item caption="92" value="92"/>
+ <item caption="93" value="93"/>
+ <item caption="94" value="94"/>
+ <item caption="95" value="95"/>
+ <item caption="96" value="96"/>
+ <item caption="97" value="97"/>
+ <item caption="98" value="98"/>
+ <item caption="99" value="99"/>
+ <item caption="100" value="100"/>
+ <item caption="100" value="100"/>
+ <item caption="101" value="101"/>
+ <item caption="102" value="102"/>
+ <item caption="103" value="103"/>
+ <item caption="104" value="104"/>
+ <item caption="105" value="105"/>
+ <item caption="106" value="106"/>
+ <item caption="107" value="107"/>
+ <item caption="108" value="108"/>
+ <item caption="109" value="109"/>
+ <item caption="110" value="110"/>
+ <item caption="111" value="111"/>
+ <item caption="112" value="112"/>
+ <item caption="113" value="113"/>
+ <item caption="114" value="114"/>
+ <item caption="115" value="115"/>
+ <item caption="116" value="116"/>
+ <item caption="117" value="117"/>
+ <item caption="118" value="118"/>
+ <item caption="119" value="119"/>
+ <item caption="120" value="120"/>
+ <item caption="120" value="120"/>
+ <item caption="121" value="121"/>
+ <item caption="122" value="122"/>
+ <item caption="123" value="123"/>
+ <item caption="124" value="124"/>
+ <item caption="125" value="125"/>
+ <item caption="126" value="126"/>
+ <item caption="127" value="127"/>
+ <item caption="128" value="128"/>
+ <item caption="129" value="129"/>
+ <item caption="130" value="130"/>
+ </combobox>
+ <spacer/>
+ </frame>
+ </frame>
+ </frame>
+
+ <!-- o.sin -->
+ <frame layout="vbox">
+ <checkbox caption="Der er ikke målt på o.sin"
+ name="orbita.osin.mangler" script="left_eye"
+ map="missing_eye_osin_map"
+ truevalue="mangler" falsevalue="" value=""/>
+ <frame name="left_eye_frame" caption="o.sin" layout="vbox">
+ <frame layout="vbox">
+ <label caption="Den retrobulbære resistance er:"/>
+ <combobox name="orbita.osin.resistance" value="">
+ <item caption="Normal" value="normal"/>
+ <item caption="Øget" value="øget"/>
+ <item caption="Hård" value="hård"/>
+ </combobox>
+ </frame>
+ <frame layout="hbox">
+ <label caption="Hertelmål:"/>
+ <combobox name="orbita.osin.hertelmaalx" value="">
+ <item caption="5" value="5"/>
+ <item caption="6" value="6"/>
+ <item caption="7" value="7"/>
+ <item caption="8" value="8"/>
+ <item caption="9" value="9"/>
+ <item caption="10" value="10"/>
+ <item caption="11" value="11"/>
+ <item caption="12" value="12"/>
+ <item caption="13" value="13"/>
+ <item caption="14" value="14"/>
+ <item caption="15" value="15"/>
+ <item caption="16" value="16"/>
+ <item caption="17" value="17"/>
+ <item caption="18" value="18"/>
+ <item caption="19" value="19"/>
+ <item caption="20" value="20"/>
+ <item caption="21" value="21"/>
+ <item caption="22" value="22"/>
+ <item caption="23" value="23"/>
+ <item caption="24" value="24"/>
+ <item caption="25" value="25"/>
+ <item caption="26" value="26"/>
+ <item caption="27" value="27"/>
+ <item caption="28" value="28"/>
+ <item caption="29" value="29"/>
+ <item caption="30" value="30"/>
+ </combobox>
+ <label caption=" - "/>
+ <combobox name="orbita.osin.hertelmaaly" value="">
+ <item caption="5" value="5"/>
+ <item caption="6" value="6"/>
+ <item caption="7" value="7"/>
+ <item caption="8" value="8"/>
+ <item caption="9" value="9"/>
+ <item caption="10" value="10"/>
+ <item caption="11" value="11"/>
+ <item caption="12" value="12"/>
+ <item caption="13" value="13"/>
+ <item caption="14" value="14"/>
+ <item caption="15" value="15"/>
+ <item caption="16" value="16"/>
+ <item caption="17" value="17"/>
+ <item caption="18" value="18"/>
+ <item caption="19" value="19"/>
+ <item caption="20" value="20"/>
+ <item caption="21" value="21"/>
+ <item caption="22" value="22"/>
+ <item caption="23" value="23"/>
+ <item caption="24" value="24"/>
+ <item caption="25" value="25"/>
+ <item caption="26" value="26"/>
+ <item caption="27" value="27"/>
+ <item caption="28" value="28"/>
+ <item caption="29" value="29"/>
+ <item caption="30" value="30"/>
+ </combobox>
+ <label caption=" / "/>
+ <combobox name="orbita.osin.hertelmaalz" value="">
+ <item caption="80" value="80"/>
+ <item caption="81" value="81"/>
+ <item caption="82" value="82"/>
+ <item caption="83" value="83"/>
+ <item caption="84" value="84"/>
+ <item caption="85" value="85"/>
+ <item caption="86" value="86"/>
+ <item caption="87" value="87"/>
+ <item caption="88" value="88"/>
+ <item caption="89" value="89"/>
+ <item caption="90" value="90"/>
+ <item caption="91" value="91"/>
+ <item caption="92" value="92"/>
+ <item caption="93" value="93"/>
+ <item caption="94" value="94"/>
+ <item caption="95" value="95"/>
+ <item caption="96" value="96"/>
+ <item caption="97" value="97"/>
+ <item caption="98" value="98"/>
+ <item caption="99" value="99"/>
+ <item caption="100" value="100"/>
+ <item caption="100" value="100"/>
+ <item caption="101" value="101"/>
+ <item caption="102" value="102"/>
+ <item caption="103" value="103"/>
+ <item caption="104" value="104"/>
+ <item caption="105" value="105"/>
+ <item caption="106" value="106"/>
+ <item caption="107" value="107"/>
+ <item caption="108" value="108"/>
+ <item caption="109" value="109"/>
+ <item caption="110" value="110"/>
+ <item caption="111" value="111"/>
+ <item caption="112" value="112"/>
+ <item caption="113" value="113"/>
+ <item caption="114" value="114"/>
+ <item caption="115" value="115"/>
+ <item caption="116" value="116"/>
+ <item caption="117" value="117"/>
+ <item caption="118" value="118"/>
+ <item caption="119" value="119"/>
+ <item caption="120" value="120"/>
+ <item caption="120" value="120"/>
+ <item caption="121" value="121"/>
+ <item caption="122" value="122"/>
+ <item caption="123" value="123"/>
+ <item caption="124" value="124"/>
+ <item caption="125" value="125"/>
+ <item caption="126" value="126"/>
+ <item caption="127" value="127"/>
+ <item caption="128" value="128"/>
+ <item caption="129" value="129"/>
+ <item caption="130" value="130"/>
+ </combobox>
+ <spacer/>
+ </frame>
+ </frame>
+ </frame>
+
+ </frame>
+
+ <!-- Knapper -->
+ <frame layout="hbox">
+ <spacer />
+ <button caption="Gem" action="commit"/>
+ </frame>
+ </widgets>
+</macro>
diff --git a/server/xml/macros/pupillen-1.0.xml b/server/xml/macros/pupillen-1.0.xml
new file mode 100644
index 0000000..3489990
--- /dev/null
+++ b/server/xml/macros/pupillen-1.0.xml
@@ -0,0 +1,158 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<macro name="pupillen" version="1.0">
+ <resume language="lua">
+ out = ''
+
+ if ( getValue('pupillen.odxt.mangler') == '' )
+ then
+ out = out .. 'Pupillen, o.dxt: ' .. getValue('pupillen.odxt') .. '\n'
+ end
+
+ if ( getValue('pupillen.osin.mangler') == '' )
+ then
+ out = out .. 'Pupillen, o.sin: ' .. getValue('pupillen.osin') .. '\n'
+ end
+
+ if ( getValue('pupillen.supplerende') ~= '' )
+ then
+ out = out .. '\n'
+ out = out .. getValue('pupillen.supplerende')
+ end
+
+ return out
+ </resume>
+ <queries>
+ <query service="pracro" class="missing_eye_odxt" ttl="1000000"/>
+ <query service="pracro" class="missing_eye_osin" ttl="1000000"/>
+ </queries>
+ <maps>
+ <map name="missing_eye_odxt_map">
+ value = 0
+ timestamp = 0
+ source = ''
+
+ if( missing_eye_odxt )
+ then
+ if( missing_eye_odxt.value and missing_eye_odxt.value == '' )
+ then
+ value = ''
+ timestamp = missing_eye_odxt.timestamp
+ source = missing_eye_odxt.source
+ else
+ value = 'mangler'
+ timestamp = missing_eye_odxt.timestamp
+ source = missing_eye_odxt.source
+ end
+ end
+ return value, timestamp, source
+ </map>
+ <map name="missing_eye_osin_map">
+ value = 0
+ timestamp = 0
+ source = ''
+
+ if( missing_eye_osin )
+ then
+ if( missing_eye_osin.value and missing_eye_osin.value == '' )
+ then
+ value = ''
+ timestamp = missing_eye_osin.timestamp
+ source = missing_eye_osin.source
+ else
+ value = 'mangler'
+ timestamp = missing_eye_osin.timestamp
+ source = missing_eye_osin.source
+ end
+ end
+ return value, timestamp, source
+ </map>
+ </maps>
+ <scripts>
+ <script language="lua" name="right_eye">
+ if ( value == 'mangler' )
+ then
+ disable('right_eye_frame')
+ else
+ enable('right_eye_frame')
+ end
+
+ return true
+ </script>
+ <script language="lua" name="left_eye">
+ if ( value == 'mangler' )
+ then
+ disable('left_eye_frame')
+ else
+ enable('left_eye_frame')
+ end
+
+ return true
+ </script>
+ </scripts>
+ <widgets caption="Pupillen" layout="vbox">
+
+ <frame layout="hbox">
+
+ <!-- o.dxt -->
+ <frame layout="vbox">
+ <checkbox caption="Der er ikke målt på o.dxt"
+ name="pupillen.odxt.mangler" script="right_eye"
+ map="missing_eye_odxt_map"
+ truevalue="mangler" falsevalue="" value=""/>
+ <frame name="right_eye_frame" caption="o.dxt" layout="hbox">
+ <frame layout="vbox">
+ <label caption="Pupillen:"/>
+ <label caption=""/>
+ </frame>
+ <altcombobox name="pupillen.odxt" value="" layout="vbox">
+ <item caption="Normal isokori og lysreaktion" value="Normal isokori og lysreaktion"/>
+ <item caption="Miosis" value="Miosis"/>
+ <item caption="Mydriasis" value="Mydriasis"/>
+ <item caption="Amblyop reaktion" value="Amblyop reaktion"/>
+ <altitem caption="Andet" value="andet" layout="hbox" innerwidget="pupillen.odxt.andet">
+ <label caption="Andet:"/>
+ <lineedit name="pupillen.odxt.andet"/>
+ </altitem>
+ </altcombobox>
+ </frame>
+ </frame>
+
+ <!-- o.sin -->
+ <frame layout="vbox">
+ <checkbox caption="Der er ikke målt på o.sin"
+ name="pupillen.osin.mangler" script="left_eye"
+ map="missing_eye_osin_map"
+ truevalue="mangler" falsevalue="" value=""/>
+ <frame name="left_eye_frame" caption="o.sin" layout="hbox">
+ <frame layout="vbox">
+ <label caption="Pupillen:"/>
+ <label caption=""/>
+ </frame>
+ <altcombobox name="pupillen.osin" value="" layout="vbox">
+ <item caption="Normal isokori og lysreaktion" value="Normal isokori og lysreaktion"/>
+ <item caption="Miosis" value="Miosis"/>
+ <item caption="Mydriasis" value="Mydriasis"/>
+ <item caption="Amblyop reaktion" value="Amblyop reaktion"/>
+ <altitem caption="Andet" value="andet" layout="hbox" innerwidget="pupillen.osin.andet">
+ <label caption="Andet:"/>
+ <lineedit name="pupillen.osin.andet"/>
+ </altitem>
+ </altcombobox>
+ </frame>
+ </frame>
+
+ </frame>
+
+ <!-- Supplerende tekstfelt -->
+ <frame name="supplerende_frame" layout="hbox">
+ <label caption="Supplerende:"/>
+ <lineedit name="pupillen.supplerende"/>
+ </frame>
+
+ <!-- Knapper -->
+ <frame layout="hbox">
+ <spacer />
+ <button caption="Gem" action="commit"/>
+ </frame>
+ </widgets>
+</macro>