From 1a68953d6c9161a0723ab5cc68c8481e3ef6774c Mon Sep 17 00:00:00 2001 From: senator Date: Wed, 2 Sep 2009 13:52:41 +0000 Subject: ref foerstedagskontrol done --- 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 (limited to '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..41d6741 --- /dev/null +++ b/server/xml/macros/visus_uden_korr-1.0.xml @@ -0,0 +1,467 @@ + + + + out = '' + if ( getValue('snellen.right.missing') == '' or getValue('snellen.left.missing') == '' ) + then + out = out .. 'Synsstyrke uden korrektion:\n' + + if ( getValue('snellen.right.missing') == '' ) + then + out = out .. 'Snellen højre øje: ' .. getValue('snellen.right') .. '\n' + out = out .. 'ETDRS højre øje: ' .. getValue('etdrs.right') .. '\n' + end + + if ( getValue('snellen.left.missing') == '' ) + then + out = out .. 'Snellen venstre øje: ' .. getValue('snellen.left') .. '\n' + out = out .. 'ETDRS venstre øje: ' .. getValue('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 + + + + + + + + + + + + + + + + + + + + + +