From 3f1b036458bf9b348b65c36fa30ecb177800d703 Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 10 Feb 2009 13:18:01 +0000 Subject: New macros --- server/xml/macros/B.2.2.5.xml | 153 ++++++++++++++++++++++++++++++++++++------ 1 file changed, 132 insertions(+), 21 deletions(-) (limited to 'server/xml/macros/B.2.2.5.xml') diff --git a/server/xml/macros/B.2.2.5.xml b/server/xml/macros/B.2.2.5.xml index 9199a1c..feafd6d 100644 --- a/server/xml/macros/B.2.2.5.xml +++ b/server/xml/macros/B.2.2.5.xml @@ -7,14 +7,77 @@ 20090108: Bent Bisballe Nyeng Højre/venstre byttet om. --> + - Øjentryk: -Højre øje: ${tonometer.pressure.right} mmHg -Venstre øje: ${tonometer.pressure.right} mmHg -${tonometer.device}. + + out = '' + + if ( getValue('tonometer.right.missing') == '' or getValue('tonometer.left.missing') == '' ) + then + out = out .. 'Øjentryk:\n' + end + + if ( getValue('tonometer.right.missing') == '' ) + then + out = out .. 'Højre øje: ' .. getValue('tonometer.pressure.right') .. ' mmHg\n' + end + + if ( getValue('tonometer.left.missing') == '' ) + then + out = out .. 'Venstre øje: ' .. getValue('tonometer.pressure.right') .. ' mmHg\n' + end + + if ( getValue('tonometer.right.missing') == '' or getValue('tonometer.left.missing') == '' ) + then + out = out .. getValue('tonometer.device') .. '.\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 + + + @@ -38,30 +135,44 @@ ${tonometer.device}. - -