From 1e82ef6c0cb1f8b03c1e096aece2d39a16905e65 Mon Sep 17 00:00:00 2001 From: senator Date: Wed, 9 Sep 2009 07:07:02 +0000 Subject: moved from visus_uden_korr til visus-uden_korr --- server/xml/macros/visus-uden_korr-1.0.xml | 467 ++++++++++++++++++++++++++++++ 1 file changed, 467 insertions(+) create mode 100644 server/xml/macros/visus-uden_korr-1.0.xml diff --git a/server/xml/macros/visus-uden_korr-1.0.xml b/server/xml/macros/visus-uden_korr-1.0.xml new file mode 100644 index 0000000..bcc812b --- /dev/null +++ b/server/xml/macros/visus-uden_korr-1.0.xml @@ -0,0 +1,467 @@ + + + + out = '' + if ( getValue('visus.uden_korr.snellen.right.missing') == '' or getValue('visus.uden_korr.snellen.left.missing') == '' ) + then + out = out .. 'Synsstyrke uden korrektion:\n' + + if ( getValue('visus.uden_korr.snellen.right.missing') == '' ) + then + out = out .. 'Snellen højre øje: ' .. getValue('visus.uden_korr.snellen.right') .. '\n' + out = out .. 'ETDRS højre øje: ' .. getValue('visus.uden_korr.etdrs.right') .. '\n' + end + + if ( getValue('visus.uden_korr.snellen.left.missing') == '' ) + then + out = out .. 'Snellen venstre øje: ' .. getValue('visus.uden_korr.snellen.left') .. '\n' + out = out .. 'ETDRS venstre øje: ' .. getValue('visus.uden_korr.etdrs.left') .. '\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 + + + + + + + + + + + + + + + + + + + + + +