summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsenator <senator>2009-09-03 13:56:44 +0000
committersenator <senator>2009-09-03 13:56:44 +0000
commit56432f50ea127a746c288acd9bff4aa5074cda5e (patch)
tree79d65d06657b8ce4297bf4233d85e7c6874b3d16
parent0d454373c8cd4e7caa255085f7d2892788ba8910 (diff)
Initial release of tremaaneders macros. Almost done, but MANY things need adjustment
-rw-r--r--server/xml/macros/ref_90D_linse-1.0.xml291
-rw-r--r--server/xml/macros/ref_aktuelle_tremaaneder-1.0.xml90
-rw-r--r--server/xml/macros/ref_tremaaneder_spaltelampe-1.0.xml583
-rw-r--r--server/xml/macros/ref_tremaanederskontrol_overskrift-1.0.xml26
4 files changed, 990 insertions, 0 deletions
diff --git a/server/xml/macros/ref_90D_linse-1.0.xml b/server/xml/macros/ref_90D_linse-1.0.xml
new file mode 100644
index 0000000..1b01a1b
--- /dev/null
+++ b/server/xml/macros/ref_90D_linse-1.0.xml
@@ -0,0 +1,291 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<macro name="ref_90d_linse" version="1.0">
+ <resume language="lua">
+ out = ''
+ if ( getValue('90d_linse.right.missing') == '' )
+ then
+ out = out .. 'Oftalmoskopi, højre øje:\n'
+ out = out .. getValue('90d_linse.right.indblik') .. ' indblik.\n'
+ out = out .. 'Papil: ' .. getValue('90d_linse.right.papil') .. '\n'
+ out = out .. 'Makula: ' .. getValue('90d_linse.right.makula') .. '\n'
+ out = out .. 'Periferi: ' .. getValue('90d_linse.right.periferi') .. '\n'
+ if ( getValue('90d_linse.right.supplerende') ~= '' )
+ then
+ out = out .. getValue('90d_linse.right.supplerende') .. '\n'
+ end
+ end
+ if ( getValue('90d_linse.left.missing') == '' )
+ then
+ if ( getValue('90d_linse.right.missing') == '' )
+ then
+ out = out .. '\n'
+ end
+ out = out .. 'Oftalmoskopi, højre øje:\n'
+ out = out .. getValue('90d_linse.left.indblik') .. ' indblik.\n'
+ out = out .. 'Papil: ' .. getValue('90d_linse.left.papil') .. '\n'
+ out = out .. 'Makula: ' .. getValue('90d_linse.left.makula') .. '\n'
+ out = out .. 'Periferi: ' .. getValue('90d_linse.left.periferi') .. '\n'
+ if ( getValue('90d_linse.left.supplerende') ~= '' )
+ then
+ out = out .. getValue('90d_linse.left.supplerende') .. '\n'
+ end
+ end
+ return out
+ </resume>
+ <queries>
+ <query service="pracro" class="missing_eye_right" ttl="1000000"/>
+ <query service="pracro" class="missing_eye_left" ttl="1000000"/>
+ </queries>
+ <maps>
+ <map name="missing_eye_right_map">
+ value = 0
+ timestamp = 0
+ source = ''
+
+ if( missing_eye_right )
+ then
+ if( missing_eye_right.value and missing_eye_right.value == '' )
+ then
+ value = ''
+ timestamp = missing_eye_right.timestamp
+ source = missing_eye_right.source
+ else
+ value = 'mangler'
+ timestamp = missing_eye_right.timestamp
+ source = missing_eye_right.source
+ end
+ end
+ return value, timestamp, source
+ </map>
+ <map name="missing_eye_left_map">
+ value = 0
+ timestamp = 0
+ source = ''
+
+ if( missing_eye_left )
+ then
+ if( missing_eye_left.value and missing_eye_left.value == '' )
+ then
+ value = ''
+ timestamp = missing_eye_left.timestamp
+ source = missing_eye_left.source
+ else
+ value = 'mangler'
+ timestamp = missing_eye_left.timestamp
+ source = missing_eye_left.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="90D-linse"
+ layout="vbox">
+
+ <frame layout="hbox">
+
+ <!-- Højre øje -->
+ <frame layout="vbox">
+ <checkbox caption="Der er ikke målt på højre øje"
+ name="90d_linse.right.missing" script="right_eye"
+ map="missing_eye_right_map"
+ truevalue="mangler" falsevalue="" value=""/>
+ <frame name="right_eye_frame" caption="Højre øje" layout="vbox">
+
+ <frame layout="hbox">
+ <frame layout="vbox">
+ <label caption="Indblik: "/>
+ <label/>
+ </frame>
+ <frame layout="vbox">
+ <altcombobox name="90d_linse.right.indblik" layout="vbox" value="Klart">
+ <item caption="Klart" value="Klart"/>
+ <item caption="Let sløret" value="Let sløret"/>
+ <item caption="Meget sløret" value="Meget sløret"/>
+ <altitem caption="Andet" value="andet" layout="hbox" innerwidget="90d_linse.right.indblik.andet">
+ <label caption="Andet:"/>
+ <lineedit name="90d_linse.right.indblik.andet"/>
+ </altitem>
+ </altcombobox>
+ </frame>
+ </frame>
+
+ <frame layout="hbox">
+ <frame layout="vbox">
+ <label caption="Papil: "/>
+ <label/>
+ </frame>
+ <frame layout="vbox">
+ <altcombobox name="90d_linse.right.papil" layout="vbox" value="Normal, ikke ekskaveret">
+ <item caption="Myop" value="Myop"/>
+ <item caption="Normal, ikke ekskaveret" value="Normal, ikke ekskaveret"/>
+ <item caption="Koncentrisk ekskavation" value="Koncentrisk ekskavation"/>
+ <item caption="Glaukomsuspekt" value="Glaukomsuspekt"/>
+ <item caption="Glaukomatøs ekskavation" value="Glaukomatøs ekskavation"/>
+ <altitem caption="Andet" value="andet" layout="hbox" innerwidget="90d_linse.right.papil.andet">
+ <label caption="Andet:"/>
+ <lineedit name="90d_linse.right.papil.andet"/>
+ </altitem>
+ </altcombobox>
+ </frame>
+ </frame>
+ <frame layout="hbox">
+ <frame layout="vbox">
+ <label caption="Makula: "/>
+ <label/>
+ </frame>
+ <frame layout="vbox">
+ <altcombobox name="90d_linse.right.makula" layout="vbox" value="Normal">
+ <item caption="Normal" value="Normal"/>
+ <item caption="Atrofiske forandringer" value="Atrofiske forandringer"/>
+ <item caption="Diabetiske non-proliferative forandringer" value="Diabetiske non-proliferative forandringer"/>
+ <item caption="Diabetiske proliferative forandringer" value="Diabetiske proliferative forandringer"/>
+ <altitem caption="Andet" value="andet" layout="hbox" innerwidget="90d_linse.right.makula.andet">
+ <label caption="Andet:"/>
+ <lineedit name="90d_linse.right.makula.andet"/>
+ </altitem>
+ </altcombobox>
+ </frame>
+ </frame>
+ <frame layout="hbox">
+ <frame layout="vbox">
+ <label caption="Periferi: "/>
+ <label/>
+ </frame>
+ <frame layout="vbox">
+ <altcombobox name="90d_linse.right.periferi" layout="vbox" value="Ingen degenerative forandringer">
+ <item caption="Ingen degenerative forandringer" value="Ingen degenerative forandringer"/>
+ <item caption="Perifere degenerationer" value="Perifere degenerationer"/>
+ <item caption="Lattice" value="Lattice"/>
+ <item caption="Hul eller rift kl .......?????????" value="Hul eller rift kl .......?????????"/>
+ <altitem caption="Andet" value="andet" layout="hbox" innerwidget="90d_linse.right.periferi.andet">
+ <label caption="Andet:"/>
+ <lineedit name="90d_linse.right.periferi.andet"/>
+ </altitem>
+ </altcombobox>
+ </frame>
+ </frame>
+
+ <label caption="Supplerende:"/>
+ <lineedit name="90d_linse.right.supplerende"/>
+
+ </frame>
+ </frame>
+
+ <!-- Venstre øje -->
+ <frame layout="vbox">
+ <checkbox caption="Der er ikke målt på venstre øje"
+ name="90d_linse.left.missing" script="left_eye"
+ map="missing_eye_left_map"
+ truevalue="mangler" falsevalue="" value=""/>
+ <frame name="left_eye_frame" caption="Højre øje" layout="vbox">
+
+ <frame layout="hbox">
+ <frame layout="vbox">
+ <label caption="Indblik: "/>
+ <label/>
+ </frame>
+ <frame layout="vbox">
+ <altcombobox name="90d_linse.left.indblik" layout="vbox" value="Klart">
+ <item caption="Klart" value="Klart"/>
+ <item caption="Let sløret" value="Let sløret"/>
+ <item caption="Meget sløret" value="Meget sløret"/>
+ <altitem caption="Andet" value="andet" layout="hbox" innerwidget="90d_linse.left.indblik.andet">
+ <label caption="Andet:"/>
+ <lineedit name="90d_linse.left.indblik.andet"/>
+ </altitem>
+ </altcombobox>
+ </frame>
+ </frame>
+
+ <frame layout="hbox">
+ <frame layout="vbox">
+ <label caption="Papil: "/>
+ <label/>
+ </frame>
+ <frame layout="vbox">
+ <altcombobox name="90d_linse.left.papil" layout="vbox" value="Normal, ikke ekskaveret">
+ <item caption="Myop" value="Myop"/>
+ <item caption="Normal, ikke ekskaveret" value="Normal, ikke ekskaveret"/>
+ <item caption="Koncentrisk ekskavation" value="Koncentrisk ekskavation"/>
+ <item caption="Glaukomsuspekt" value="Glaukomsuspekt"/>
+ <item caption="Glaukomatøs ekskavation" value="Glaukomatøs ekskavation"/>
+ <altitem caption="Andet" value="andet" layout="hbox" innerwidget="90d_linse.left.papil.andet">
+ <label caption="Andet:"/>
+ <lineedit name="90d_linse.left.papil.andet"/>
+ </altitem>
+ </altcombobox>
+ </frame>
+ </frame>
+ <frame layout="hbox">
+ <frame layout="vbox">
+ <label caption="Makula: "/>
+ <label/>
+ </frame>
+ <frame layout="vbox">
+ <altcombobox name="90d_linse.left.makula" layout="vbox" value="Normal">
+ <item caption="Normal" value="Normal"/>
+ <item caption="Atrofiske forandringer" value="Atrofiske forandringer"/>
+ <item caption="Diabetiske non-proliferative forandringer" value="Diabetiske non-proliferative forandringer"/>
+ <item caption="Diabetiske proliferative forandringer" value="Diabetiske proliferative forandringer"/>
+ <altitem caption="Andet" value="andet" layout="hbox" innerwidget="90d_linse.left.makula.andet">
+ <label caption="Andet:"/>
+ <lineedit name="90d_linse.left.makula.andet"/>
+ </altitem>
+ </altcombobox>
+ </frame>
+ </frame>
+ <frame layout="hbox">
+ <frame layout="vbox">
+ <label caption="Periferi: "/>
+ <label/>
+ </frame>
+ <frame layout="vbox">
+ <altcombobox name="90d_linse.left.periferi" layout="vbox" value="Ingen degenerative forandringer">
+ <item caption="Ingen degenerative forandringer" value="Ingen degenerative forandringer"/>
+ <item caption="Perifere degenerationer" value="Perifere degenerationer"/>
+ <item caption="Lattice" value="Lattice"/>
+ <item caption="Hul eller rift kl .......?????????" value="Hul eller rift kl .......?????????"/>
+ <altitem caption="Andet" value="andet" layout="hbox" innerwidget="90d_linse.left.periferi.andet">
+ <label caption="Andet:"/>
+ <lineedit name="90d_linse.left.periferi.andet"/>
+ </altitem>
+ </altcombobox>
+ </frame>
+ </frame>
+
+ <label caption="Supplerende:"/>
+ <lineedit name="90d_linse.left.supplerende"/>
+
+ </frame>
+ </frame>
+
+ </frame>
+
+
+ <!-- Knapper -->
+ <frame layout="hbox">
+ <spacer/>
+ <button caption="Gem" action="commit"/>
+ </frame>
+ </widgets>
+</macro>
diff --git a/server/xml/macros/ref_aktuelle_tremaaneder-1.0.xml b/server/xml/macros/ref_aktuelle_tremaaneder-1.0.xml
new file mode 100644
index 0000000..33cf1dc
--- /dev/null
+++ b/server/xml/macros/ref_aktuelle_tremaaneder-1.0.xml
@@ -0,0 +1,90 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<macro name="ref_aktuelle_tremaaneder" version="1.0">
+ <resume language="lua">
+ out = ''
+ out = out .. 'Aktuelle:\n'
+ if ( getValue('ref_aktuelle_tremaaneder.afstandssyn') ~= '' )
+ then
+ out = out .. 'Afstandssyn: ' .. getValue('ref_aktuelle_tremaaneder.afstandssyn') .. '\n'
+ end
+ if ( getValue('ref_aktuelle_tremaaneder.nattesyn') ~= '' )
+ then
+ out = out .. 'Nattesyn: ' .. getValue('ref_aktuelle_tremaaneder.nattesyn') .. '\n'
+ end
+ if ( getValue('ref_aktuelle_tremaaneder.oejengener') ~= '' )
+ then
+ out = out .. 'Øjengener: ' .. getValue('ref_aktuelle_tremaaneder.oejengener') .. '\n'
+ end
+ if ( getValue('ref_aktuelle_tremaaneder.tilfredshed') ~= '' )
+ then
+ out = out .. 'Tilfredshed: ' .. getValue('ref_aktuelle_tremaaneder.tilfredshed') .. '\n'
+ end
+ if ( getValue('ref_aktuelle_tremaaneder.other_comments') ~= '' )
+ then
+ out = out .. getValue('ref_aktuelle_tremaaneder.other_comments')
+ end
+ return out
+ </resume>
+ <queries>
+ </queries>
+ <maps>
+ </maps>
+ <scripts>
+ </scripts>
+ <widgets caption="Aktuelle" layout="vbox">
+ <frame layout="vbox">
+ <label caption="Afstandssyn:"/>
+ <combobox name="ref_aktuelle_tremaaneder.afstandssyn" value="">
+ <item caption="Ikke udfyldt" value=""/>
+ <item caption="Anvender briller" value="Anvender briller"/>
+ <item caption="Intermitterende brillebrug" value="Intermitterende brillebrug"/>
+ <item caption="Anvender ikke briller" value="Anvender ikke briller"/>
+ </combobox>
+ <label caption="Nattesyn:"/>
+ <altcombobox name="ref_aktuelle_tremaaneder.nattesyn" value="" layout="vbox">
+ <item caption="Ikke udfyldt" value=""/>
+ <item caption="Ingen gener" value="Ingen gener"/>
+ <item caption="Lette gener" value="Lette gener"/>
+ <item caption="Nogen gener" value="Nogen gener"/>
+ <item caption="Mange gener" value="Mange gener"/>
+ <altitem caption="Andet" value="andet" innerwidget="ref_aktuelle_tremaaneder.nattesyn.andet">
+ <frame layout="hbox">
+ <label caption="Andet:"/>
+ <lineedit name="ref_aktuelle_tremaaneder.nattesyn.andet"/>
+ </frame>
+ </altitem>
+ </altcombobox>
+ <label caption="Øjengener:"/>
+ <altcombobox name="ref_aktuelle_tremaaneder.oejengener" value="" layout="vbox">
+ <item caption="Ikke udfyldt" value=""/>
+ <item caption="Ingen gener" value="Ingen gener"/>
+ <item caption="Lette tørhedsgener" value="Lette tørhedsgener"/>
+ <item caption="Nogen tørhedsgener" value="Nogen tørhedsgener"/>
+ <item caption="Mange tørhedsgener" value="Mange tørhedsgener"/>
+ <altitem caption="Andet" value="andet" innerwidget="ref_aktuelle_tremaaneder.oejengener.andet">
+ <frame layout="hbox">
+ <label caption="Andet:"/>
+ <lineedit name="ref_aktuelle_tremaaneder.oejengener.andet"/>
+ </frame>
+ </altitem>
+ </altcombobox>
+ <label caption="Tilfredshed:"/>
+ <combobox name="ref_aktuelle_tremaaneder.tilfredshed" value="">
+ <item caption="Ikke udfyldt" value=""/>
+ <item caption="Ikke tilfreds" value="Ikke tilfreds"/>
+ <item caption="Nogenlunde tilfreds" value="Nogenlunde tilfreds"/>
+ <item caption="Godt tilfreds" value="Godt tilfreds"/>
+ <item caption="Meget tilfreds" value="Meget tilfreds"/>
+ </combobox>
+ <label caption="Øvrige kommentarer:"/>
+ <textedit name="ref_aktuelle_tremaaneder.other_comments"/>
+ </frame>
+
+ <!-- Knapper -->
+ <frame layout="hbox">
+ <spacer/>
+ <button caption="Gem" action="commit"/>
+ </frame>
+ </widgets>
+</macro>
+
diff --git a/server/xml/macros/ref_tremaaneder_spaltelampe-1.0.xml b/server/xml/macros/ref_tremaaneder_spaltelampe-1.0.xml
new file mode 100644
index 0000000..8d32107
--- /dev/null
+++ b/server/xml/macros/ref_tremaaneder_spaltelampe-1.0.xml
@@ -0,0 +1,583 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<macro name="ref_tremaaneder_spaltelampe" version="1.0">
+ <resume language="lua">
+ out = ''
+ if ( getValue('spaltelampe.right.missing') == '' )
+ then
+ out = out .. 'Spaltelampe, højre øje:\n'
+
+ if ( getValue('spaltelampe.right.konjuktiva') ~= '' )
+ then
+ out = out .. 'Konjuktiva: ' .. getValue('spaltelampe.right.konjuktiva') .. '\n'
+ end
+
+ out = out .. 'Cornea:\n'
+ if ( getValue('spaltelampe.right.epithel') ~= '' )
+ then
+ out = out .. ' Epithel: ' .. getValue('spaltelampe.right.epithel') .. '\n'
+ end
+ if ( getValue('spaltelampe.right.stroma') ~= '' )
+ then
+ out = out .. ' Stroma: ' .. getValue('spaltelampe.right.stroma') .. '\n'
+ end
+ if ( getValue('spaltelampe.right.flap') ~= '' )
+ then
+ out = out .. ' Flap: ' .. getValue('spaltelampe.right.flap') .. '\n'
+ end
+ if ( getValue('spaltelampe.right.folder') ~= '' )
+ then
+ out = out .. ' Folder: ' .. getValue('spaltelampe.right.folder') .. '\n'
+ end
+ if ( getValue('spaltelampe.right.interface.partikler') ~= '' or getValue('spaltelampe.right.interface.epithelindvaekst') ~= '' )
+ then
+ out = out .. ' Interface: '
+ if ( getValue('spaltelampe.right.interface.partikler') ~= '' )
+ then
+ out = out .. getValue('spaltelampe.right.interface.partikler')
+ if ( getValue('spaltelampe.right.interface.epithelindvaekst') ~= '' )
+ then
+ out = out .. ', '
+ end
+ end
+ if ( getValue('spaltelampe.right.interface.epithelindvaekst') ~= '' )
+ then
+ out = out .. getValue('spaltelampe.right.interface.epithelindvaekst') .. '\n'
+ else
+ out = out .. '\n'
+ end
+ end
+ if ( getValue('spaltelampe.right.endothel') ~= '' )
+ then
+ out = out .. ' Endothel: ' .. getValue('spaltelampe.right.endothel') .. '\n'
+ end
+ if ( getValue('spaltelampe.right.lens') ~= '' )
+ then
+ out = out .. 'Lens: ' .. getValue('spaltelampe.right.lens') .. '\n'
+ end
+ if ( getValue('spaltelampe.right.supplerende') ~= '' )
+ then
+ out = out .. getValue('spaltelampe.right.supplerende') .. '\n'
+ end
+ end
+
+ if ( getValue('spaltelampe.left.missing') == '' )
+ then
+ if ( getValue('spaltelampe.right.missing') == '' )
+ then
+ out = out .. '\n'
+ end
+ out = out .. 'Spaltelampe, venstre øje:\n'
+
+ if ( getValue('spaltelampe.left.konjuktiva') ~= '' )
+ then
+ out = out .. 'Konjuktiva: ' .. getValue('spaltelampe.left.konjuktiva') .. '\n'
+ end
+
+ out = out .. 'Cornea:\n'
+ if ( getValue('spaltelampe.left.epithel') ~= '' )
+ then
+ out = out .. ' Epithel: ' .. getValue('spaltelampe.left.epithel') .. '\n'
+ end
+ if ( getValue('spaltelampe.left.stroma') ~= '' )
+ then
+ out = out .. ' Stroma: ' .. getValue('spaltelampe.left.stroma') .. '\n'
+ end
+ if ( getValue('spaltelampe.left.flap') ~= '' )
+ then
+ out = out .. ' Flap: ' .. getValue('spaltelampe.left.flap') .. '\n'
+ end
+ if ( getValue('spaltelampe.left.folder') ~= '' )
+ then
+ out = out .. ' Folder: ' .. getValue('spaltelampe.left.folder') .. '\n'
+ end
+ if ( getValue('spaltelampe.left.interface.partikler') ~= '' or getValue('spaltelampe.left.interface.epithelindvaekst') ~= '' )
+ then
+ out = out .. ' Interface: '
+ if ( getValue('spaltelampe.left.interface.partikler') ~= '' )
+ then
+ out = out .. getValue('spaltelampe.left.interface.partikler')
+ if ( getValue('spaltelampe.left.interface.epithelindvaekst') ~= '' )
+ then
+ out = out .. ', '
+ end
+ end
+ if ( getValue('spaltelampe.left.interface.epithelindvaekst') ~= '' )
+ then
+ out = out .. getValue('spaltelampe.left.interface.epithelindvaekst') .. '\n'
+ else
+ out = out .. '\n'
+ end
+ end
+ if ( getValue('spaltelampe.left.endothel') ~= '' )
+ then
+ out = out .. ' Endothel: ' .. getValue('spaltelampe.left.endothel') .. '\n'
+ end
+ if ( getValue('spaltelampe.left.lens') ~= '' )
+ then
+ out = out .. 'Lens: ' .. getValue('spaltelampe.left.lens') .. '\n'
+ end
+ if ( getValue('spaltelampe.left.supplerende') ~= '' )
+ then
+ out = out .. getValue('spaltelampe.left.supplerende') .. '\n'
+ end
+ end
+
+ return out
+ </resume>
+ <queries>
+ <query service="pracro" class="missing_eye_right" ttl="1000000"/>
+ <query service="pracro" class="missing_eye_left" ttl="1000000"/>
+ </queries>
+ <maps>
+ <map name="missing_eye_right_map">
+ value = 0
+ timestamp = 0
+ source = ''
+
+ if( missing_eye_right )
+ then
+ if( missing_eye_right.value and missing_eye_right.value == '' )
+ then
+ value = ''
+ timestamp = missing_eye_right.timestamp
+ source = missing_eye_right.source
+ else
+ value = 'mangler'
+ timestamp = missing_eye_right.timestamp
+ source = missing_eye_right.source
+ end
+ end
+ return value, timestamp, source
+ </map>
+ <map name="missing_eye_left_map">
+ value = 0
+ timestamp = 0
+ source = ''
+
+ if( missing_eye_left )
+ then
+ if( missing_eye_left.value and missing_eye_left.value == '' )
+ then
+ value = ''
+ timestamp = missing_eye_left.timestamp
+ source = missing_eye_left.source
+ else
+ value = 'mangler'
+ timestamp = missing_eye_left.timestamp
+ source = missing_eye_left.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="Spaltelampe"
+ layout="vbox">
+
+ <frame layout="hbox">
+
+ <!-- Højre øje -->
+ <frame layout="vbox">
+ <checkbox caption="Der er ikke målt på højre øje"
+ name="spaltelampe.right.missing" script="right_eye"
+ map="missing_eye_right_map"
+ truevalue="mangler" falsevalue="" value=""/>
+ <frame name="right_eye_frame" caption="Højre øje" layout="vbox">
+
+ <frame layout="hbox">
+ <frame layout="vbox">
+ <label caption="Konjuktiva:"/>
+ <label/>
+ </frame>
+ <frame layout="vbox">
+ <altcombobox name="spaltelampe.right.konjuktiva" layout="vbox" value="">
+ <item caption="Ikke udfyldt" value=""/>
+ <item caption="Bleg" value="Bleg"/>
+ <item caption="Injiceret" value="Injiceret"/>
+ <altitem caption="Andet" value="andet" layout="hbox" innerwidget="spaltelampe.right.konjuktiva.andet">
+ <label caption="Andet:"/>
+ <lineedit name="spaltelampe.right.konjuktiva.andet"/>
+ </altitem>
+ </altcombobox>
+ </frame>
+ </frame>
+
+ <frame layout="vbox" caption="Cornea:">
+
+ <frame layout="hbox">
+ <frame layout="vbox">
+ <label caption="Epithel:"/>
+ <label/>
+ </frame>
+ <frame layout="vbox">
+ <altcombobox name="spaltelampe.right.epithel" layout="vbox" value="Upåfaldende">
+ <item caption="Upåfaldende" value="Upåfaldende"/>
+ <item caption="Tørhedsforandringer" value="Tørhedsforandringer"/>
+ <item caption="Mikrocyster" value="Mikrocyster"/>
+ <item caption="Refraktile linier" value="Refraktile linier"/>
+ <altitem caption="Andet" value="andet" layout="hbox" innerwidget="spaltelampe.right.epithel.andet">
+ <label caption="Andet:"/>
+ <lineedit name="spaltelampe.right.epithel.andet"/>
+ </altitem>
+ </altcombobox>
+ </frame>
+ </frame>
+
+ <frame layout="hbox">
+ <frame layout="vbox">
+ <label caption="Stroma:"/>
+ <label/>
+ </frame>
+ <frame layout="vbox">
+ <altcombobox name="spaltelampe.right.stroma" layout="vbox" value="">
+ <item caption="Ikke udfyldt" value=""/>
+ <item caption="Ingen" value="Ingen"/>
+ <item caption="Spor af haze - grad 0,5" value="Spor af haze - grad 0,5"/>
+ <item caption="Let haze - grad 1" value="Let haze - grad 1"/>
+ <item caption="Nogen haze - grad 2" value="Nogen haze - grad 2"/>
+ <item caption="Udtalt haze - grad 3" value="Udtalt haze - grad 3"/>
+ <item caption="Massiv haze - grad 4" value="Massiv haze - grad 4"/>
+ <altitem caption="Andet" value="andet" layout="hbox" innerwidget="spaltelampe.right.stroma.andet">
+ <label caption="Andet:"/>
+ <lineedit name="spaltelampe.right.stroma.andet"/>
+ </altitem>
+ </altcombobox>
+ </frame>
+ </frame>
+
+ <frame layout="hbox">
+ <frame layout="vbox">
+ <label caption="Flap:"/>
+ <label/>
+ </frame>
+ <frame layout="vbox">
+ <altcombobox name="spaltelampe.right.flap" layout="vbox" value="">
+ <item caption="Ej relevant" value=""/>
+ <item caption="Velplaceret" value="Velplaceret"/>
+ <item caption="Dislokeret" value="Dislokeret"/>
+ <altitem caption="Andet" value="andet" layout="hbox" innerwidget="spaltelampe.right.flap.andet">
+ <label caption="Andet:"/>
+ <lineedit name="spaltelampe.right.flap.andet"/>
+ </altitem>
+ </altcombobox>
+ </frame>
+ </frame>
+
+ <frame layout="hbox">
+ <frame layout="vbox">
+ <label caption="Folder:"/>
+ <label/>
+ </frame>
+ <frame layout="vbox">
+ <altcombobox name="spaltelampe.right.folder" layout="vbox" value="">
+ <item caption="Ej relevant" value=""/>
+ <item caption="Ingen" value="Ingen"/>
+ <item caption="Mikrofolder" value="Mikrofolder"/>
+ <item caption="Lette folder" value="Lette folder"/>
+ <item caption="Udtalte folder" value="Udtalte folder"/>
+ <altitem caption="Andet" value="andet" layout="hbox" innerwidget="spaltelampe.right.folder.andet">
+ <label caption="Andet:"/>
+ <lineedit name="spaltelampe.right.folder.andet"/>
+ </altitem>
+ </altcombobox>
+ </frame>
+ </frame>
+
+ <frame layout="hbox" caption="Interface:">
+ <frame layout="vbox">
+ <label caption="Partikler:"/>
+ <label/>
+ <label caption="Epithelindvækst:"/>
+ <label/>
+ </frame>
+ <frame layout="vbox">
+ <altcombobox name="spaltelampe.right.interface.partikler" layout="vbox" value="">
+ <item caption="Ej relevant" value=""/>
+ <item caption="Ingen partikler eller debris" value="Ingen partikler eller debris"/>
+ <item caption="Enkelte partikler" value="Enkelte partikler"/>
+ <item caption="Nogen partikler" value="Nogen partikler"/>
+ <item caption="Udtalte partikler" value="Udtalte partikler"/>
+ <altitem caption="Andet" value="andet" layout="hbox" innerwidget="spaltelampe.right.interface.partikler.andet">
+ <label caption="Andet:"/>
+ <lineedit name="spaltelampe.right.interface.partikler.andet"/>
+ </altitem>
+ </altcombobox>
+ <altcombobox name="spaltelampe.right.interface.epithelindvaekst" layout="vbox" value="">
+ <item caption="Ej relevant" value=""/>
+ <item caption="Ingen epithelindvækst" value="Ingen epithelindvækst"/>
+ <item caption="Diskret epithelindvækst" value="Diskret epithelindvækst"/>
+ <item caption="Let epithelindvækst" value="Let epithelindvækst"/>
+ <item caption="Betydende epithelindvækst" value="Betydende epithelindvækst"/>
+ <altitem caption="Andet" value="andet" layout="hbox" innerwidget="spaltelampe.right.interface.epithelindvaekst.andet">
+ <label caption="Andet:"/>
+ <lineedit name="spaltelampe.right.interface.epithelindvaekst.andet"/>
+ </altitem>
+ </altcombobox>
+ </frame>
+ </frame>
+
+ <frame layout="hbox">
+ <frame layout="vbox">
+ <label caption="Endothel:"/>
+ <label/>
+ </frame>
+ <frame layout="vbox">
+ <altcombobox name="spaltelampe.right.endothel" layout="vbox" value="Upåfaldende">
+ <item caption="Upåfaldende" value="Upåfaldende"/>
+ <item caption="Guttatae" value="Guttatae"/>
+ <altitem caption="Andet" value="andet" layout="hbox" innerwidget="spaltelampe.right.endothel.andet">
+ <label caption="Andet:"/>
+ <lineedit name="spaltelampe.right.endothel.andet"/>
+ </altitem>
+ </altcombobox>
+ </frame>
+ </frame>
+
+ </frame>
+
+ <frame layout="hbox">
+ <frame layout="vbox">
+ <label caption="Lens:"/>
+ <label/>
+ </frame>
+ <frame layout="vbox">
+ <altcombobox name="spaltelampe.right.lens" layout="vbox" value="Klar">
+ <item caption="Klar" value="Klar"/>
+ <item caption="Katarakt-1" value="Katarakt-1"/>
+ <item caption="Katarakt-2" value="Katarakt-2"/>
+ <item caption="Katarakt-3" value="Katarakt-3"/>
+ <item caption="Katarakt-4" value="Katarakt-4"/>
+ <item caption="Pseudofak" value="Pseudofak"/>
+ <altitem caption="Andet" value="andet" layout="hbox" innerwidget="spaltelampe.right.lens.andet">
+ <label caption="Andet:"/>
+ <lineedit name="spaltelampe.right.lens.andet"/>
+ </altitem>
+ </altcombobox>
+ </frame>
+ </frame>
+
+ <frame layout="vbox">
+ <label caption="Supplerende:"/>
+ <lineedit name="spaltelampe.right.supplerende"/>
+ </frame>
+
+ </frame>
+ </frame>
+
+ <!-- Venstre øje -->
+ <frame layout="vbox">
+ <checkbox caption="Der er ikke målt på venstre øje"
+ name="spaltelampe.left.missing" script="left_eye"
+ map="missing_eye_left_map"
+ truevalue="mangler" falsevalue="" value=""/>
+ <frame name="left_eye_frame" caption="Højre øje" layout="vbox">
+
+ <frame layout="hbox">
+ <frame layout="vbox">
+ <label caption="Konjuktiva:"/>
+ <label/>
+ </frame>
+ <frame layout="vbox">
+ <altcombobox name="spaltelampe.left.konjuktiva" layout="vbox" value="">
+ <item caption="Ikke udfyldt" value=""/>
+ <item caption="Bleg" value="Bleg"/>
+ <item caption="Injiceret" value="Injiceret"/>
+ <altitem caption="Andet" value="andet" layout="hbox" innerwidget="spaltelampe.left.konjuktiva.andet">
+ <label caption="Andet:"/>
+ <lineedit name="spaltelampe.left.konjuktiva.andet"/>
+ </altitem>
+ </altcombobox>
+ </frame>
+ </frame>
+
+ <frame layout="vbox" caption="Cornea:">
+
+ <frame layout="hbox">
+ <frame layout="vbox">
+ <label caption="Epithel:"/>
+ <label/>
+ </frame>
+ <frame layout="vbox">
+ <altcombobox name="spaltelampe.left.epithel" layout="vbox" value="Upåfaldende">
+ <item caption="Upåfaldende" value="Upåfaldende"/>
+ <item caption="Tørhedsforandringer" value="Tørhedsforandringer"/>
+ <item caption="Mikrocyster" value="Mikrocyster"/>
+ <item caption="Refraktile linier" value="Refraktile linier"/>
+ <altitem caption="Andet" value="andet" layout="hbox" innerwidget="spaltelampe.left.epithel.andet">
+ <label caption="Andet:"/>
+ <lineedit name="spaltelampe.left.epithel.andet"/>
+ </altitem>
+ </altcombobox>
+ </frame>
+ </frame>
+
+ <frame layout="hbox">
+ <frame layout="vbox">
+ <label caption="Stroma:"/>
+ <label/>
+ </frame>
+ <frame layout="vbox">
+ <altcombobox name="spaltelampe.left.stroma" layout="vbox" value="">
+ <item caption="Ikke udfyldt" value=""/>
+ <item caption="Ingen" value="Ingen"/>
+ <item caption="Spor af haze - grad 0,5" value="Spor af haze - grad 0,5"/>
+ <item caption="Let haze - grad 1" value="Let haze - grad 1"/>
+ <item caption="Nogen haze - grad 2" value="Nogen haze - grad 2"/>
+ <item caption="Udtalt haze - grad 3" value="Udtalt haze - grad 3"/>
+ <item caption="Massiv haze - grad 4" value="Massiv haze - grad 4"/>
+ <altitem caption="Andet" value="andet" layout="hbox" innerwidget="spaltelampe.left.stroma.andet">
+ <label caption="Andet:"/>
+ <lineedit name="spaltelampe.left.stroma.andet"/>
+ </altitem>
+ </altcombobox>
+ </frame>
+ </frame>
+
+ <frame layout="hbox">
+ <frame layout="vbox">
+ <label caption="Flap:"/>
+ <label/>
+ </frame>
+ <frame layout="vbox">
+ <altcombobox name="spaltelampe.left.flap" layout="vbox" value="">
+ <item caption="Ej relevant" value=""/>
+ <item caption="Velplaceret" value="Velplaceret"/>
+ <item caption="Dislokeret" value="Dislokeret"/>
+ <altitem caption="Andet" value="andet" layout="hbox" innerwidget="spaltelampe.left.flap.andet">
+ <label caption="Andet:"/>
+ <lineedit name="spaltelampe.left.flap.andet"/>
+ </altitem>
+ </altcombobox>
+ </frame>
+ </frame>
+
+ <frame layout="hbox">
+ <frame layout="vbox">
+ <label caption="Folder:"/>
+ <label/>
+ </frame>
+ <frame layout="vbox">
+ <altcombobox name="spaltelampe.left.folder" layout="vbox" value="">
+ <item caption="Ej relevant" value=""/>
+ <item caption="Ingen" value="Ingen"/>
+ <item caption="Mikrofolder" value="Mikrofolder"/>
+ <item caption="Lette folder" value="Lette folder"/>
+ <item caption="Udtalte folder" value="Udtalte folder"/>
+ <altitem caption="Andet" value="andet" layout="hbox" innerwidget="spaltelampe.left.folder.andet">
+ <label caption="Andet:"/>
+ <lineedit name="spaltelampe.left.folder.andet"/>
+ </altitem>
+ </altcombobox>
+ </frame>
+ </frame>
+
+ <frame layout="hbox" caption="Interface:">
+ <frame layout="vbox">
+ <label caption="Partikler:"/>
+ <label/>
+ <label caption="Epithelindvækst:"/>
+ <label/>
+ </frame>
+ <frame layout="vbox">
+ <altcombobox name="spaltelampe.left.partikler" layout="vbox" value="">
+ <item caption="Ej relevant" value=""/>
+ <item caption="Ingen partikler eller debris" value="Ingen partikler eller debris"/>
+ <item caption="Enkelte partikler" value="Enkelte partikler"/>
+ <item caption="Nogen partikler" value="Nogen partikler"/>
+ <item caption="Udtalte partikler" value="Udtalte partikler"/>
+ <altitem caption="Andet" value="andet" layout="hbox" innerwidget="spaltelampe.left.partikler.andet">
+ <label caption="Andet:"/>
+ <lineedit name="spaltelampe.left.partikler.andet"/>
+ </altitem>
+ </altcombobox>
+ <altcombobox name="spaltelampe.left.epithelindvaekst" layout="vbox" value="">
+ <item caption="Ej relevant" value=""/>
+ <item caption="Ingen epithelindvækst" value="Ingen epithelindvækst"/>
+ <item caption="Diskret epithelindvækst" value="Diskret epithelindvækst"/>
+ <item caption="Let epithelindvækst" value="Let epithelindvækst"/>
+ <item caption="Betydende epithelindvækst" value="Betydende epithelindvækst"/>
+ <altitem caption="Andet" value="andet" layout="hbox" innerwidget="spaltelampe.left.epithelindvaekst.andet">
+ <label caption="Andet:"/>
+ <lineedit name="spaltelampe.left.epithelindvaekst.andet"/>
+ </altitem>
+ </altcombobox>
+ </frame>
+ </frame>
+
+ <frame layout="hbox">
+ <frame layout="vbox">
+ <label caption="Endothel:"/>
+ <label/>
+ </frame>
+ <frame layout="vbox">
+ <altcombobox name="spaltelampe.left.endothel" layout="vbox" value="Upåfaldende">
+ <item caption="Upåfaldende" value="Upåfaldende"/>
+ <item caption="Guttatae" value="Guttatae"/>
+ <altitem caption="Andet" value="andet" layout="hbox" innerwidget="spaltelampe.left.endothel.andet">
+ <label caption="Andet:"/>
+ <lineedit name="spaltelampe.left.endothel.andet"/>
+ </altitem>
+ </altcombobox>
+ </frame>
+ </frame>
+
+ </frame>
+
+ <frame layout="hbox">
+ <frame layout="vbox">
+ <label caption="Lens:"/>
+ <label/>
+ </frame>
+ <frame layout="vbox">
+ <altcombobox name="spaltelampe.left.lens" layout="vbox" value="Klar">
+ <item caption="Klar" value="Klar"/>
+ <item caption="Katarakt-1" value="Katarakt-1"/>
+ <item caption="Katarakt-2" value="Katarakt-2"/>
+ <item caption="Katarakt-3" value="Katarakt-3"/>
+ <item caption="Katarakt-4" value="Katarakt-4"/>
+ <item caption="Pseudofak" value="Pseudofak"/>
+ <altitem caption="Andet" value="andet" layout="hbox" innerwidget="spaltelampe.left.lens.andet">
+ <label caption="Andet:"/>
+ <lineedit name="spaltelampe.left.lens.andet"/>
+ </altitem>
+ </altcombobox>
+ </frame>
+ </frame>
+
+ <frame layout="vbox">
+ <label caption="Supplerende:"/>
+ <lineedit name="spaltelampe.left.supplerende"/>
+ </frame>
+
+ </frame>
+ </frame>
+
+ </frame>
+
+
+ <!-- Knapper -->
+ <frame layout="hbox">
+ <spacer/>
+ <button caption="Gem" action="commit"/>
+ </frame>
+ </widgets>
+</macro>
diff --git a/server/xml/macros/ref_tremaanederskontrol_overskrift-1.0.xml b/server/xml/macros/ref_tremaanederskontrol_overskrift-1.0.xml
new file mode 100644
index 0000000..a4871f0
--- /dev/null
+++ b/server/xml/macros/ref_tremaanederskontrol_overskrift-1.0.xml
@@ -0,0 +1,26 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<macro name="ref_tremaanederskontrol_overskrift" version="1.0">
+ <resume>Tremånederskontrol i refraktiv kirurgi</resume>
+ <queries>
+ </queries>
+ <maps>
+ </maps>
+ <scripts>
+ </scripts>
+ <widgets caption="Påbegyndelse af kontrolforløb"
+ layout="vbox">
+
+ <checkbox name="begynd"
+ caption="Kontrol påbegyndes"
+ truevalue="begynd"
+ falsevalue=""
+ regexp="begynd"/>
+
+ <!-- Knapper -->
+ <frame layout="hbox">
+ <spacer />
+ <button caption="Gem" action="commit"/>
+ </frame>
+
+ </widgets>
+</macro>