From a81fd2a780e59ab918d172d0b4cc08be8780ec68 Mon Sep 17 00:00:00 2001 From: deva Date: Fri, 24 Jul 2009 11:28:37 +0000 Subject: Changed all names to something less magical. --- server/xml/macros/visus-1.0.xml | 547 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 547 insertions(+) create mode 100644 server/xml/macros/visus-1.0.xml (limited to 'server/xml/macros/visus-1.0.xml') diff --git a/server/xml/macros/visus-1.0.xml b/server/xml/macros/visus-1.0.xml new file mode 100644 index 0000000..6866c6c --- /dev/null +++ b/server/xml/macros/visus-1.0.xml @@ -0,0 +1,547 @@ + + + + + out = '' + if ( getValue('snellen.right.missing') == '' or getValue('snellen.left.missing') == '' ) + then + out = out .. 'Objektivt:\n' + + if ( getValue('snellen.right.missing') == '' ) + then + out = out .. 'Visus o.dxt. ' .. getValue('snellen.right') .. '\n' + out = out .. 'ETDRS o.dxt. ' .. getValue('etdrs.right') .. '\n' + out = out .. 'Korr.: ' .. getValue('snellen.right.corr.basis') .. ' add ' + .. getValue('snellen.right.corr.sph') .. ' sf, ' + .. getValue('snellen.right.corr.cyl') .. ' sph ' + .. getValue('snellen.right.corr.axis') .. ' grader.\n' + end + + if ( getValue('snellen.left.missing') == '' ) + then + out = out .. 'Visus o.sin. ' .. getValue('snellen.left') .. '\n' + out = out .. 'ETDRS o.sin. ' .. getValue('etdrs.left') .. '\n' + out = out .. 'Korr.: ' .. getValue('snellen.left.corr.basis') .. ' add ' + .. getValue('snellen.left.corr.sph') .. ' sf, ' + .. getValue('snellen.left.corr.cyl') .. ' sph ' + .. getValue('snellen.left.corr.axis') .. ' grader.\n' + end + end + return out + + + + + + + + value = 0 + timestamp = 0 + source = 'pracro' + + if( missing_eye_right ) + then + if( missing_eye_right.value and missing_eye_right.value == '' ) + then + value = '' + timestamp = missing_eye_right.timestamp + else + value = 'mangler' + timestamp = missing_eye_right.timestamp + end + end + return value, timestamp, source + + + value = 0 + timestamp = 0 + source = 'pracro' + + if( missing_eye_left ) + then + if( missing_eye_left.value and missing_eye_left.value == '' ) + then + value = '' + timestamp = missing_eye_left.timestamp + else + value = 'mangler' + timestamp = missing_eye_left.timestamp + end + end + return value, timestamp, source + + + + + + + + + + + + + + + + + + + + + +