From 56432f50ea127a746c288acd9bff4aa5074cda5e Mon Sep 17 00:00:00 2001 From: senator Date: Thu, 3 Sep 2009 13:56:44 +0000 Subject: Initial release of tremaaneders macros. Almost done, but MANY things need adjustment --- server/xml/macros/ref_90D_linse-1.0.xml | 291 ++++++++++ server/xml/macros/ref_aktuelle_tremaaneder-1.0.xml | 90 ++++ .../xml/macros/ref_tremaaneder_spaltelampe-1.0.xml | 583 +++++++++++++++++++++ .../ref_tremaanederskontrol_overskrift-1.0.xml | 26 + 4 files changed, 990 insertions(+) create mode 100644 server/xml/macros/ref_90D_linse-1.0.xml create mode 100644 server/xml/macros/ref_aktuelle_tremaaneder-1.0.xml create mode 100644 server/xml/macros/ref_tremaaneder_spaltelampe-1.0.xml create mode 100644 server/xml/macros/ref_tremaanederskontrol_overskrift-1.0.xml 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 @@ + + + + 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 + + + + + + + + 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 + + + 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 + + + + + + + + + + + + + + + + + +