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/cycloplegisk_refraktion-1.0.xml | 204 ++++++++++++++++++++++ 1 file changed, 204 insertions(+) create mode 100644 server/xml/macros/cycloplegisk_refraktion-1.0.xml (limited to 'server/xml/macros/cycloplegisk_refraktion-1.0.xml') diff --git a/server/xml/macros/cycloplegisk_refraktion-1.0.xml b/server/xml/macros/cycloplegisk_refraktion-1.0.xml new file mode 100644 index 0000000..eaa333a --- /dev/null +++ b/server/xml/macros/cycloplegisk_refraktion-1.0.xml @@ -0,0 +1,204 @@ + + + + + + + out = '' + out = out .. 'Cycloplegisk refraktion:\n' + if ( getValue('cycloplegisk_refraktion.right.missing') == '' ) + then + out = out .. 'Højre øje: ' .. getValue('cycloplegisk_refraktion.right.sf') + .. ' sf, ' .. getValue('cycloplegisk_refraktion.right.cyl') .. ' x ' + .. getValue('cycloplegisk_refraktion.right.grader') .. '\n' + end + + if ( getValue('cycloplegisk_refraktion.left.missing') == '' ) + then + out = out .. 'Venstre øje: ' .. getValue('cycloplegisk_refraktion.left.sf') + .. ' sf, ' .. getValue('cycloplegisk_refraktion.left.cyl') .. ' x ' + .. getValue('cycloplegisk_refraktion.left.grader') .. '\n' + 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 + + + + + + + + + + + + + + + + + + + +