From 1bce9e4ebb9521c26fdbc586d4eadd6f2a52b618 Mon Sep 17 00:00:00 2001 From: bertho Date: Wed, 4 Feb 2009 11:26:58 +0000 Subject: Add macros and templates to repository --- server/xml/macros/B.2.2.1.xml | 423 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 423 insertions(+) create mode 100644 server/xml/macros/B.2.2.1.xml (limited to 'server/xml/macros/B.2.2.1.xml') diff --git a/server/xml/macros/B.2.2.1.xml b/server/xml/macros/B.2.2.1.xml new file mode 100644 index 0000000..f0445d7 --- /dev/null +++ b/server/xml/macros/B.2.2.1.xml @@ -0,0 +1,423 @@ + + + + + + + out = '' + if ( getValue('snellen.right.missing') == '' or getValue('snellen.left.missing') == '' ) + then + out = out ..' Snellen ETDRS\n' + if ( getValue('snellen.right.missing') == '' ) + then + out = out..'Syn højre øje: '..getValue('snellen.right')..' '..getValue('etdrs.right')..'\n' + end + if ( getValue('snellen.left.missing') == '' ) + then + out = out..'Syn venstre øje: '..getValue('snellen.left')..' '..getValue('etdrs.left')..'\n' + end + 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 + + + + + + + + + + + + + + + + + +