From 43c99fb4bc925d70e256ba320e7d94cdd162e56e Mon Sep 17 00:00:00 2001 From: senator Date: Wed, 14 Oct 2009 10:28:01 +0000 Subject: added combo to define 'hul eller rift kl'. Also moved from 90D to 90d --- server/xml/macros/ref_90d_linse-1.0.xml | 359 ++++++++++++++++++++++++++++++++ 1 file changed, 359 insertions(+) create mode 100644 server/xml/macros/ref_90d_linse-1.0.xml (limited to 'server/xml/macros/ref_90d_linse-1.0.xml') diff --git a/server/xml/macros/ref_90d_linse-1.0.xml b/server/xml/macros/ref_90d_linse-1.0.xml new file mode 100644 index 0000000..6f94213 --- /dev/null +++ b/server/xml/macros/ref_90d_linse-1.0.xml @@ -0,0 +1,359 @@ + + + + out = '' + if ( getValue('90d_linse.right.missing') == '' ) + then + out = out .. 'Oftalmoskopi, højre øje:\n' + out = out .. getValue('90d_linse.right.indblik') .. ' indblik.\n' + out = out .. 'Papil: ' .. getValue('90d_linse.right.papil') .. '\n' + out = out .. 'Makula: ' .. getValue('90d_linse.right.makula') .. '\n' + out = out .. 'Periferi: ' .. getValue('90d_linse.right.periferi') + if ( getValue('90d_linse.right.periferi') == 'Hul eller rift kl' ) + then + out = out .. ' ' .. getValue('90dlinse.right.hul_eller_rift_kl') .. '\n' + else + out = out .. '\n' + end + if ( getValue('90d_linse.right.supplerende') ~= '' ) + then + out = out .. getValue('90d_linse.right.supplerende') .. '\n' + end + end + if ( getValue('90d_linse.left.missing') == '' ) + then + if ( getValue('90d_linse.right.missing') == '' ) + then + out = out .. '\n' + end + out = out .. 'Oftalmoskopi, højre øje:\n' + out = out .. getValue('90d_linse.left.indblik') .. ' indblik.\n' + out = out .. 'Papil: ' .. getValue('90d_linse.left.papil') .. '\n' + out = out .. 'Makula: ' .. getValue('90d_linse.left.makula') .. '\n' + out = out .. 'Periferi: ' .. getValue('90d_linse.left.periferi') + if ( getValue('90d_linse.left.periferi') == 'Hul eller rift kl' ) + then + out = out .. ' ' .. getValue('90dlinse.left.hul_eller_rift_kl') .. '\n' + else + out = out .. '\n' + end + if ( getValue('90d_linse.left.supplerende') ~= '' ) + then + out = out .. getValue('90d_linse.left.supplerende') .. '\n' + end + 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 + + + + + + + + + + + + + + + + + + + +