From 484d5c2b4dcf59f88093614903c6da5bec54ebda Mon Sep 17 00:00:00 2001 From: senator Date: Wed, 11 Nov 2009 13:05:18 +0000 Subject: moved 90D_linse to 90d_linse --- server/xml/macros/90d_linse-1.0.xml | 270 ++++++++++++++++++++++++++++++++++++ 1 file changed, 270 insertions(+) create mode 100644 server/xml/macros/90d_linse-1.0.xml (limited to 'server/xml/macros/90d_linse-1.0.xml') diff --git a/server/xml/macros/90d_linse-1.0.xml b/server/xml/macros/90d_linse-1.0.xml new file mode 100644 index 0000000..e6b6eb3 --- /dev/null +++ b/server/xml/macros/90d_linse-1.0.xml @@ -0,0 +1,270 @@ + + + + + out = '90D linse:' + + if ( getValue('90d_linse.right.missing') == '' and getValue('90d_linse.left.missing') == '' ) + then + out = 'Inblikket til fundusbaggrunden er ' .. getValue('90d_linse.right.fundus_visibility') + .. ' på højre øje og ' .. getValue('90d_linse.left.fundus_visibility')..' på venstre.\n' + else + if ( getValue('90d_linse.right.missing') == '' ) + then + out = 'Inblikket til fundusbaggrunden er ' .. getValue('90d_linse.right.fundus_visibility') + .. ' på højre øje.\n' + end + if ( getValue('90d_linse.left.missing') == '' ) + then + out = 'Inblikket til fundusbaggrunden er ' .. getValue('90d_linse.left.fundus_visibility') + ..' på venstre øje.\n' + end + end + + if ( getValue('90d_linse.right.missing') == '' ) + then + if ( getValue('90d_linse.right.implikation') == 'retinal hævelse' ) + then + out = out .. 'På højre øje findes der retinal hævelse' + if ( getValue('90d_linse.right.randbl') ~= '' and getValue('90d_linse.right.exsudater') ~= '') + then + out = out .. ' med randblødning og exhudater.\n' + end + + if ( getValue('90d_linse.right.randbl') == '' and getValue('90d_linse.right.exsudater') ~= '') + then + out = out .. ' med exhudater.\n' + end + + if ( getValue('90d_linse.right.randbl') ~= '' and getValue('90d_linse.right.exsudater') == '') + then + out = out .. ' med randblødning.\n' + end + + if ( getValue('90d_linse.right.randbl') == '' and getValue('90d_linse.right.exsudater') == '') + then + out = out .. '.\n' + end + end + + if ( getValue('90d_linse.right.implikation') == 'atrofi' ) + then + out = out .. 'På højre øje findes der atrofi.\n' + end + end + + if ( getValue('90d_linse.left.missing') == '' ) + then + if ( getValue('90d_linse.left.implikation') == 'retinal hævelse' ) + then + out = out .. 'På venstre øje findes der retinal hævelse' + if ( getValue('90d_linse.left.randbl') ~= '' and getValue('90d_linse.left.exsudater') ~= '') + then + out = out .. ' med randblødning og exhudater.\n' + end + + if ( getValue('90d_linse.left.randbl') == '' and getValue('90d_linse.left.exsudater') ~= '') + then + out = out .. ' med exhudater.\n' + end + + if ( getValue('90d_linse.left.randbl') ~= '' and getValue('90d_linse.left.exsudater') == '') + then + out = out .. ' med randblødning.\n' + end + + if ( getValue('90d_linse.left.randbl') == '' and getValue('90d_linse.left.exsudater') == '') + then + out = out .. '.\n' + end + end + + if ( getValue('90d_linse.left.implikation') == 'atrofi' ) + then + out = out .. 'På venstre øje findes der atrofi.\n' + end + end + + if ( getValue('90d_linse.additional') ~= '' ) + then + out = out .. getValue('90d_linse.additional') .. '\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 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +