From ce08ba4689b54f8e27a5418f490d9c87fe71cc78 Mon Sep 17 00:00:00 2001 From: senator Date: Tue, 17 Nov 2009 10:43:45 +0000 Subject: moved all .osin. instances from any instance containing it to the end of the instance. I have checked to find errors but NOT very thoroughly. The XML files might contain errors, but i will correct these, if any, when i encounter them later on --- server/xml/macros/spaltelampe-template-1.0.xml | 294 ++++++++++++------------- 1 file changed, 147 insertions(+), 147 deletions(-) (limited to 'server/xml/macros/spaltelampe-template-1.0.xml') diff --git a/server/xml/macros/spaltelampe-template-1.0.xml b/server/xml/macros/spaltelampe-template-1.0.xml index 26a72db..a983226 100644 --- a/server/xml/macros/spaltelampe-template-1.0.xml +++ b/server/xml/macros/spaltelampe-template-1.0.xml @@ -2,245 +2,245 @@ out = '' - if ( getValue('spaltelampe.odxt.missing') == '' ) + if ( getValue('spaltelampe.mangler.odxt') == '' ) then out = out .. 'Spaltelampe, o.dxt:\n' - if ( getValue('spaltelampe.odxt.konjuktiva') ~= '' ) + if ( getValue('spaltelampe.konjuktiva.odxt') ~= '' ) then - out = out .. 'Konjuktiva: ' .. getValue('spaltelampe.odxt.konjuktiva') .. '\n' + out = out .. 'Konjuktiva: ' .. getValue('spaltelampe.konjuktiva.odxt') .. '\n' end out = out .. 'Cornea:\n' - if ( getValue('spaltelampe.odxt.epitel.intakt') ~= '' or getValue('spaltelampe.odxt.epitel.central_epiteldefekt') ~= '' or getValue('spaltelampe.odxt.epitel.toerhedsforandringer') ~= '' or getValue('spaltelampe.odxt.epitel.andet') ~= '') + if ( getValue('spaltelampe.epitel.intakt.odxt') ~= '' or getValue('spaltelampe.epitel.central_epiteldefekt.odxt') ~= '' or getValue('spaltelampe.epitel.toerhedsforandringer.odxt') ~= '' or getValue('spaltelampe.epitel.andet.odxt') ~= '') then out = out .. ' Epitel: ' end - if ( getValue('spaltelampe.odxt.epitel.intakt') ~= '' ) + if ( getValue('spaltelampe.epitel.intakt.odxt') ~= '' ) then - out = out .. getValue('spaltelampe.odxt.epitel.intakt') - if ( getValue('spaltelampe.odxt.epitel.central_epiteldefekt') ~= '' or getValue('spaltelampe.odxt.epitel.toerhedsforandringer') ~= '' or getValue('spaltelampe.odxt.epitel.andet') ~= '') + out = out .. getValue('spaltelampe.epitel.intakt.odxt') + if ( getValue('spaltelampe.epitel.central_epiteldefekt.odxt') ~= '' or getValue('spaltelampe.epitel.toerhedsforandringer.odxt') ~= '' or getValue('spaltelampe.epitel.andet.odxt') ~= '') then out = out .. ', ' else out = out .. '\n' end end - if ( getValue('spaltelampe.odxt.epitel.central_epiteldefekt') ~= '' ) + if ( getValue('spaltelampe.epitel.central_epiteldefekt.odxt') ~= '' ) then - out = out .. getValue('spaltelampe.odxt.epitel.central_epiteldefekt') - if (getValue('spaltelampe.odxt.epitel.toerhedsforandringer') ~= '' or getValue('spaltelampe.odxt.epitel.andet') ~= '') + out = out .. getValue('spaltelampe.epitel.central_epiteldefekt.odxt') + if (getValue('spaltelampe.epitel.toerhedsforandringer.odxt') ~= '' or getValue('spaltelampe.epitel.andet.odxt') ~= '') then out = out .. ', ' else out = out .. '\n' end end - if ( getValue('spaltelampe.odxt.epitel.toerhedsforandringer') ~= '' ) + if ( getValue('spaltelampe.epitel.toerhedsforandringer.odxt') ~= '' ) then - out = out .. getValue('spaltelampe.odxt.epitel.toerhedsforandringer') - if (getValue('spaltelampe.odxt.epitel.andet') ~= '') + out = out .. getValue('spaltelampe.epitel.toerhedsforandringer.odxt') + if (getValue('spaltelampe.epitel.andet.odxt') ~= '') then out = out .. ', ' else out = out .. '\n' end end - if ( getValue('spaltelampe.odxt.epitel.andet') ~= '' ) + if ( getValue('spaltelampe.epitel.andet.odxt') ~= '' ) then - out = out .. getValue('spaltelampe.odxt.epitel.andet') .. '\n' + out = out .. getValue('spaltelampe.epitel.andet.odxt') .. '\n' end - if ( getValue('spaltelampe.odxt.stroma') ~= '' ) + if ( getValue('spaltelampe.stroma.odxt') ~= '' ) then - out = out .. ' Stroma: ' .. getValue('spaltelampe.odxt.stroma') .. '\n' + out = out .. ' Stroma: ' .. getValue('spaltelampe.stroma.odxt') .. '\n' end - if ( getValue('spaltelampe.odxt.flap') ~= '' ) + if ( getValue('spaltelampe.flap.odxt') ~= '' ) then - out = out .. ' Flap: ' .. getValue('spaltelampe.odxt.flap') .. '\n' + out = out .. ' Flap: ' .. getValue('spaltelampe.flap.odxt') .. '\n' end - if ( getValue('spaltelampe.odxt.folder') ~= '' ) + if ( getValue('spaltelampe.folder.odxt') ~= '' ) then - out = out .. ' Folder: ' .. getValue('spaltelampe.odxt.folder') .. '\n' + out = out .. ' Folder: ' .. getValue('spaltelampe.folder.odxt') .. '\n' end - if ( getValue('spaltelampe.odxt.interface.partikler') ~= '' or getValue('spaltelampe.odxt.interface.epitelindvaekst') ~= '' ) + if ( getValue('spaltelampe.interface.partikler.odxt') ~= '' or getValue('spaltelampe.interface.epitelindvaekst.odxt') ~= '' ) then out = out .. ' Interface: ' - if ( getValue('spaltelampe.odxt.interface.partikler') ~= '' ) + if ( getValue('spaltelampe.interface.partikler.odxt') ~= '' ) then - out = out .. getValue('spaltelampe.odxt.interface.partikler') - if ( getValue('spaltelampe.odxt.interface.epitelindvaekst') ~= '' ) + out = out .. getValue('spaltelampe.interface.partikler.odxt') + if ( getValue('spaltelampe.interface.epitelindvaekst.odxt') ~= '' ) then out = out .. ', ' end end - if ( getValue('spaltelampe.odxt.interface.epitelindvaekst') ~= '' ) + if ( getValue('spaltelampe.interface.epitelindvaekst.odxt') ~= '' ) then - out = out .. getValue('spaltelampe.odxt.interface.epitelindvaekst') .. '\n' + out = out .. getValue('spaltelampe.interface.epitelindvaekst.odxt') .. '\n' else out = out .. '\n' end end - if ( getValue('spaltelampe.odxt.endothel') ~= '' ) + if ( getValue('spaltelampe.endothel.odxt') ~= '' ) then - out = out .. ' Endothel: ' .. getValue('spaltelampe.odxt.endothel') .. '\n' + out = out .. ' Endothel: ' .. getValue('spaltelampe.endothel.odxt') .. '\n' end - if ( getValue('spaltelampe.odxt.lens') ~= '' ) + if ( getValue('spaltelampe.lens.odxt') ~= '' ) then - out = out .. 'Lens: ' .. getValue('spaltelampe.odxt.lens') .. '\n' + out = out .. 'Lens: ' .. getValue('spaltelampe.lens.odxt') .. '\n' end - if ( getValue('spaltelampe.odxt.supplerende') ~= '' ) + if ( getValue('spaltelampe.supplerende.odxt') ~= '' ) then - out = out .. getValue('spaltelampe.odxt.supplerende') .. '\n' + out = out .. getValue('spaltelampe.supplerende.odxt') .. '\n' end end - if ( getValue('spaltelampe.osin.missing') == '' ) + if ( getValue('spaltelampe.mangler.osin') == '' ) then - if ( getValue('spaltelampe.odxt.missing') == '' ) + if ( getValue('spaltelampe.mangler.odxt') == '' ) then out = out .. '\n' end out = out .. 'Spaltelampe, o.sin:\n' - if ( getValue('spaltelampe.osin.konjuktiva') ~= '' ) + if ( getValue('spaltelampe.konjuktiva.osin') ~= '' ) then - out = out .. 'Konjuktiva: ' .. getValue('spaltelampe.osin.konjuktiva') .. '\n' + out = out .. 'Konjuktiva: ' .. getValue('spaltelampe.konjuktiva.osin') .. '\n' end out = out .. 'Cornea:\n' - if ( getValue('spaltelampe.osin.epitel.intakt') ~= '' or getValue('spaltelampe.osin.epitel.central_epiteldefekt') ~= '' or getValue('spaltelampe.osin.epitel.toerhedsforandringer') ~= '' or getValue('spaltelampe.osin.epitel.andet') ~= '') + if ( getValue('spaltelampe.epitel.intakt.osin') ~= '' or getValue('spaltelampe.epitel.central_epiteldefekt.osin') ~= '' or getValue('spaltelampe.epitel.toerhedsforandringer.osin') ~= '' or getValue('spaltelampe.epitel.andet.osin') ~= '') then out = out .. ' Epitel: ' end - if ( getValue('spaltelampe.osin.epitel.intakt') ~= '' ) + if ( getValue('spaltelampe.epitel.intakt.osin') ~= '' ) then - out = out .. getValue('spaltelampe.osin.epitel.intakt') - if ( getValue('spaltelampe.osin.epitel.central_epiteldefekt') ~= '' or getValue('spaltelampe.osin.epitel.toerhedsforandringer') ~= '' or getValue('spaltelampe.osin.epitel.andet') ~= '') + out = out .. getValue('spaltelampe.epitel.intakt.osin') + if ( getValue('spaltelampe.epitel.central_epiteldefekt.osin') ~= '' or getValue('spaltelampe.epitel.toerhedsforandringer.osin') ~= '' or getValue('spaltelampe.epitel.andet.osin') ~= '') then out = out .. ', ' else out = out .. '\n' end end - if ( getValue('spaltelampe.osin.epitel.central_epiteldefekt') ~= '' ) + if ( getValue('spaltelampe.epitel.central_epiteldefekt.osin') ~= '' ) then - out = out .. getValue('spaltelampe.osin.epitel.central_epiteldefekt') - if (getValue('spaltelampe.osin.epitel.toerhedsforandringer') ~= '' or getValue('spaltelampe.osin.epitel.andet') ~= '') + out = out .. getValue('spaltelampe.epitel.central_epiteldefekt.osin') + if (getValue('spaltelampe.epitel.toerhedsforandringer.osin') ~= '' or getValue('spaltelampe.epitel.andet.osin') ~= '') then out = out .. ', ' else out = out .. '\n' end end - if ( getValue('spaltelampe.osin.epitel.toerhedsforandringer') ~= '' ) + if ( getValue('spaltelampe.epitel.toerhedsforandringer.osin') ~= '' ) then - out = out .. getValue('spaltelampe.osin.epitel.toerhedsforandringer') - if (getValue('spaltelampe.osin.epitel.andet') ~= '') + out = out .. getValue('spaltelampe.epitel.toerhedsforandringer.osin') + if (getValue('spaltelampe.epitel.andet.osin') ~= '') then out = out .. ', ' else out = out .. '\n' end end - if ( getValue('spaltelampe.osin.epitel.andet') ~= '' ) + if ( getValue('spaltelampe.epitel.andet.osin') ~= '' ) then - out = out .. getValue('spaltelampe.osin.epitel.andet') .. '\n' + out = out .. getValue('spaltelampe.epitel.andet.osin') .. '\n' end - if ( getValue('spaltelampe.osin.epitel') ~= '' ) + if ( getValue('spaltelampe.epitel.osin') ~= '' ) then - out = out .. ' Epitel: ' .. getValue('spaltelampe.osin.epitel') .. '\n' + out = out .. ' Epitel: ' .. getValue('spaltelampe.epitel.osin') .. '\n' end - if ( getValue('spaltelampe.osin.stroma') ~= '' ) + if ( getValue('spaltelampe.stroma.osin') ~= '' ) then - out = out .. ' Stroma: ' .. getValue('spaltelampe.osin.stroma') .. '\n' + out = out .. ' Stroma: ' .. getValue('spaltelampe.stroma.osin') .. '\n' end - if ( getValue('spaltelampe.osin.flap') ~= '' ) + if ( getValue('spaltelampe.flap.osin') ~= '' ) then - out = out .. ' Flap: ' .. getValue('spaltelampe.osin.flap') .. '\n' + out = out .. ' Flap: ' .. getValue('spaltelampe.flap.osin') .. '\n' end - if ( getValue('spaltelampe.osin.folder') ~= '' ) + if ( getValue('spaltelampe.folder.osin') ~= '' ) then - out = out .. ' Folder: ' .. getValue('spaltelampe.osin.folder') .. '\n' + out = out .. ' Folder: ' .. getValue('spaltelampe.folder.osin') .. '\n' end - if ( getValue('spaltelampe.osin.interface.partikler') ~= '' or getValue('spaltelampe.osin.interface.epitelindvaekst') ~= '' ) + if ( getValue('spaltelampe.interface.partikler.osin') ~= '' or getValue('spaltelampe.interface.epitelindvaekst.osin') ~= '' ) then out = out .. ' Interface: ' - if ( getValue('spaltelampe.osin.interface.partikler') ~= '' ) + if ( getValue('spaltelampe.interface.partikler.osin') ~= '' ) then - out = out .. getValue('spaltelampe.osin.interface.partikler') - if ( getValue('spaltelampe.osin.interface.epitelindvaekst') ~= '' ) + out = out .. getValue('spaltelampe.interface.partikler.osin') + if ( getValue('spaltelampe.interface.epitelindvaekst.osin') ~= '' ) then out = out .. ', ' end end - if ( getValue('spaltelampe.osin.interface.epitelindvaekst') ~= '' ) + if ( getValue('spaltelampe.interface.epitelindvaekst.osin') ~= '' ) then - out = out .. getValue('spaltelampe.osin.interface.epitelindvaekst') .. '\n' + out = out .. getValue('spaltelampe.interface.epitelindvaekst.osin') .. '\n' else out = out .. '\n' end end - if ( getValue('spaltelampe.osin.endothel') ~= '' ) + if ( getValue('spaltelampe.endothel.osin') ~= '' ) then - out = out .. ' Endothel: ' .. getValue('spaltelampe.osin.endothel') .. '\n' + out = out .. ' Endothel: ' .. getValue('spaltelampe.endothel.osin') .. '\n' end - if ( getValue('spaltelampe.osin.lens') ~= '' ) + if ( getValue('spaltelampe.lens.osin') ~= '' ) then - out = out .. 'Lens: ' .. getValue('spaltelampe.osin.lens') .. '\n' + out = out .. 'Lens: ' .. getValue('spaltelampe.lens.osin') .. '\n' end - if ( getValue('spaltelampe.osin.supplerende') ~= '' ) + if ( getValue('spaltelampe.supplerende.osin') ~= '' ) then - out = out .. getValue('spaltelampe.osin.supplerende') .. '\n' + out = out .. getValue('spaltelampe.supplerende.osin') .. '\n' end end return out - - + + - + value = 0 timestamp = 0 source = '' - if( missing_eye_right ) + if( missing_eye_odxt ) then - if( missing_eye_right.value and missing_eye_right.value == '' ) + if( missing_eye_odxt.value and missing_eye_odxt.value == '' ) then value = '' - timestamp = missing_eye_right.timestamp - source = missing_eye_right.source + timestamp = missing_eye_odxt.timestamp + source = missing_eye_odxt.source else value = 'mangler' - timestamp = missing_eye_right.timestamp - source = missing_eye_right.source + timestamp = missing_eye_odxt.timestamp + source = missing_eye_odxt.source end end return value, timestamp, source - + value = 0 timestamp = 0 source = '' - if( missing_eye_left ) + if( missing_eye_osin ) then - if( missing_eye_left.value and missing_eye_left.value == '' ) + if( missing_eye_osin.value and missing_eye_osin.value == '' ) then value = '' - timestamp = missing_eye_left.timestamp - source = missing_eye_left.source + timestamp = missing_eye_osin.timestamp + source = missing_eye_osin.source else value = 'mangler' - timestamp = missing_eye_left.timestamp - source = missing_eye_left.source + timestamp = missing_eye_osin.timestamp + source = missing_eye_osin.source end end return value, timestamp, source @@ -274,8 +274,8 @@ @@ -285,13 +285,13 @@