From 1185b5c6cd8374f06c8d0d1070a17a180200dcef Mon Sep 17 00:00:00 2001 From: senator Date: Wed, 9 Sep 2009 06:04:25 +0000 Subject: *** empty log message *** --- server/xml/macros/visus-optimal_korr-1.0.xml | 535 +++++++++++++++++++++++++++ 1 file changed, 535 insertions(+) create mode 100644 server/xml/macros/visus-optimal_korr-1.0.xml (limited to 'server') diff --git a/server/xml/macros/visus-optimal_korr-1.0.xml b/server/xml/macros/visus-optimal_korr-1.0.xml new file mode 100644 index 0000000..dcf25fa --- /dev/null +++ b/server/xml/macros/visus-optimal_korr-1.0.xml @@ -0,0 +1,535 @@ + + + + out = '' + if ( getValue('visus.optimal_korr.snellen.right.missing') == '' or getValue('visus.optimal_korr.snellen.left.missing') == '' ) + then + out = out .. 'Objektivt:\n' + + if ( getValue('visus.optimal_korr.snellen.right.missing') == '' ) + then + out = out .. 'Visus o.dxt. ' .. getValue('visus.optimal_korr.snellen.right') .. '\n' + out = out .. 'ETDRS o.dxt. ' .. getValue('visus.optimal_korre.etdrs.right') .. '\n' + out = out .. 'Korr.: ' .. getValue('visus.optimal_korr.snellen.right.korr.basis') .. ' add ' + .. getValue('visus.optimal_korr.snellen.right.korr.sf') .. ' sf, ' + .. getValue('visus.optimal_korr.snellen.right.korr.cyl') .. ' sph ' + .. getValue('visus.optimal_korr.snellen.right.korr.grader') .. ' grader.\n' + end + + if ( getValue('visus.optimal_korr.snellen.left.missing') == '' ) + then + out = out .. 'Visus o.sin. ' .. getValue('visus.optimal_korr.snellen.left') .. '\n' + out = out .. 'ETDRS o.sin. ' .. getValue('visus.optimal_korre.etdrs.left') .. '\n' + out = out .. 'Korr.: ' .. getValue('visus.optimal_korr.snellen.left.korr.basis') .. ' add ' + .. getValue('visus.optimal_korr.snellen.left.korr.sf') .. ' sf, ' + .. getValue('visus.optimal_korr.snellen.left.korr.cyl') .. ' sph ' + .. getValue('visus.optimal_korr.snellen.left.korr.grader') .. ' grader.\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 + + + + + + + + + + + + + + + + + + + + + +