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.4.1.xml | 112 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 102 insertions(+), 10 deletions(-) (limited to 'server/xml/macros/B.2.2.4.1.xml') diff --git a/server/xml/macros/B.2.2.4.1.xml b/server/xml/macros/B.2.2.4.1.xml index a92cd50..40c8e85 100644 --- a/server/xml/macros/B.2.2.4.1.xml +++ b/server/xml/macros/B.2.2.4.1.xml @@ -7,11 +7,73 @@ 20090108: Bent Bisballe Nyeng Højre/venstre byttet om. --> + - + + out = '' + if ( getValue('oct.right.missing') == '' ) + then + out = out .. 'Central nethindetykkelse, højre: ' .. getValue('oct.right.thickness') + .. ' µm\n' + end + + if ( getValue('oct.left.missing') == '' ) + then + out = out .. 'Central nethindetykkelse, venstre: ' .. getValue('oct.left.thickness') + .. ' µm\n' + end + + if ( getValue('oct.comments') ~= '' ) + then + out = out .. getValue('oct.comments') .. '\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 + + + @@ -30,19 +110,31 @@ - -