From b326f168c5322429f8ead9a779ceaa8c733a2ed6 Mon Sep 17 00:00:00 2001 From: senator Date: Thu, 13 Aug 2009 13:21:55 +0000 Subject: Initial ref_forunders macro configurtaion. Some lua scripts might not work and resumees need to be corrected. --- server/xml/macros/keratometri-1.0.xml | 185 ++++++++++++++++++++++++++++++++++ 1 file changed, 185 insertions(+) create mode 100644 server/xml/macros/keratometri-1.0.xml (limited to 'server/xml/macros/keratometri-1.0.xml') diff --git a/server/xml/macros/keratometri-1.0.xml b/server/xml/macros/keratometri-1.0.xml new file mode 100644 index 0000000..2b54164 --- /dev/null +++ b/server/xml/macros/keratometri-1.0.xml @@ -0,0 +1,185 @@ + + + + + + + out = '' + if ( getValue('keratometri.right.missing') == '' ) + then + out = out .. 'Keratometri, højre øje:\n' .. + 'Radius 1: ' .. getValue('keratometri.right.r1') .. + 'Radius 2: ' .. getValue('keratometri.right.r2') .. + 'Cylinder: ' .. getValue('keratometri.right.x1') + end + + if ( getValue('keratometri.left.missing') == '' ) + then + out = out .. 'Keratometri, venstre øje:\n' .. + 'Radius 1: ' .. getValue('keratometri.left.r1') .. + 'Radius 2: ' .. getValue('keratometri.left.r2') .. + 'Cylinder: ' .. getValue('keratometri.left.x1') + 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 + + + + + + + + + + + + + + + + + + +