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.2.xml | 146 ++++++++++++++++++++++++++++++++-------- 1 file changed, 119 insertions(+), 27 deletions(-) (limited to 'server/xml/macros/B.2.2.4.2.xml') diff --git a/server/xml/macros/B.2.2.4.2.xml b/server/xml/macros/B.2.2.4.2.xml index 1de45ea..3980234 100644 --- a/server/xml/macros/B.2.2.4.2.xml +++ b/server/xml/macros/B.2.2.4.2.xml @@ -7,12 +7,73 @@ 20090108: Bent Bisballe Nyeng Højre/venstre byttet om. --> + - Central nethindetykkelse, højre: ${oct.right.thickness} µm, ${oct.right.description}. -Central nethindetykkelse, venstre: ${oct.left.thickness} µm, ${oct.left.description}. + + out = '' + if ( getValue('oct.right.missing') == '' ) + then + out = out .. 'Central nethindetykkelse, højre: ' .. getValue('oct.right.thickness') + .. ' µm, ' .. getValue('oct.right.description') .. '.\n' + end + + if ( getValue('oct.left.missing') == '' ) + then + out = out .. 'Central nethindetykkelse, venstre: ' .. getValue('oct.left.thickness') + .. ' µm, ' .. getValue('oct.left.description') .. '.\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 + + + @@ -31,35 +110,48 @@ Central nethindetykkelse, venstre: ${oct.left.thickness} µm, ${oct.left.descrip - -