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/tonometri-1.0.xml | 185 ++++++++++++++++++++++++++++++++++++ 1 file changed, 185 insertions(+) create mode 100644 server/xml/macros/tonometri-1.0.xml (limited to 'server/xml/macros/tonometri-1.0.xml') diff --git a/server/xml/macros/tonometri-1.0.xml b/server/xml/macros/tonometri-1.0.xml new file mode 100644 index 0000000..33171e8 --- /dev/null +++ b/server/xml/macros/tonometri-1.0.xml @@ -0,0 +1,185 @@ + + + + + + + out = '' + + if ( getValue('tonometri.right.missing') == '' or getValue('tonometri.left.missing') == '' ) + then + out = out .. getValue('tonometri.device') .. ':\n' + end + + if ( getValue('tonometri.right.missing') == '' ) + then + out = out .. 'Højre øje: ' .. getValue('tonometri.pressure.right') .. ' mmHg\n' + end + + if ( getValue('tonometri.left.missing') == '' ) + then + out = out .. 'Venstre øje: ' .. getValue('tonometri.pressure.left') .. ' mmHg\n' + 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 + + + + + + + + + + + + + + + +