From 346a1fa9097b0673e690c7760e68531f6610d3a2 Mon Sep 17 00:00:00 2001 From: senator Date: Wed, 28 Apr 2010 09:20:56 +0000 Subject: Initial release of tao_aktuelle --- server/xml/macros/tao_aktuelle-1.0.xml | 156 +++++++++++++++++++++++++++++++++ 1 file changed, 156 insertions(+) create mode 100644 server/xml/macros/tao_aktuelle-1.0.xml (limited to 'server') diff --git a/server/xml/macros/tao_aktuelle-1.0.xml b/server/xml/macros/tao_aktuelle-1.0.xml new file mode 100644 index 0000000..6ecd8ce --- /dev/null +++ b/server/xml/macros/tao_aktuelle-1.0.xml @@ -0,0 +1,156 @@ + + + + out = '' + + if ( getValue('tao_aktuelle.thyreotoxicose') ~= 'ikke diagnosticeret' ) + then + out = out .. 'Thyreotoxicose siden ' .. os.date('%b %Y', tonumber(getValue('tao_aktuelle.thyreotoxicose.dato'))) .. '. ' + out = out .. 'På ' .. getValue('tao_aktuelle.thyreotoxicose.oeje') .. ' er der ' + + if ( getValue('tao_aktuelle.thyreotoxicose.roedme') ~= '' ) + then + out = out .. getValue('tao_aktuelle.thyreotoxicose.roedme') + if ( getValue('tao_aktuelle.thyreotoxicose.kloee') ~= '' or getValue('tao_aktuelle.thyreotoxicose.dobbeltsyn') ~= '' or getValue('tao_aktuelle.thyreotoxicose.smerter') ~= '' or getValue('tao_aktuelle.thyreotoxicose.symptom_andet') ~= '' ) + then + out = out .. ', ' + end + end + + if ( getValue('tao_aktuelle.thyreotoxicose.kloee') ~= '' ) + then + out = out .. getValue('tao_aktuelle.thyreotoxicose.kloee') + if ( getValue('tao_aktuelle.thyreotoxicose.dobbeltsyn') ~= '' or getValue('tao_aktuelle.thyreotoxicose.smerter') ~= '' or getValue('tao_aktuelle.thyreotoxicose.symptom_andet') ~= '' ) + then + out = out .. ', ' + end + end + + if ( getValue('tao_aktuelle.thyreotoxicose.dobbeltsyn') ~= '' ) + then + out = out .. getValue('tao_aktuelle.thyreotoxicose.dobbeltsyn') + if ( getValue('tao_aktuelle.thyreotoxicose.smerter') ~= '' or getValue('tao_aktuelle.thyreotoxicose.symptom_andet') ~= '' ) + then + out = out .. ', ' + end + end + + if ( getValue('tao_aktuelle.thyreotoxicose.smerter') ~= '' ) + then + out = out .. getValue('tao_aktuelle.thyreotoxicose.smerter') + if ( getValue('tao_aktuelle.thyreotoxicose.symptom_andet') ~= '' ) + then + out = out .. ', ' + end + end + + if ( getValue('tao_aktuelle.thyreotoxicose.symptom_andet') ~= '' ) + then + out = out .. getValue('tao_aktuelle.thyreotoxicose.symptom_andet') + end + + out = out .. '.\n' + + out = out .. 'Symptomerne er opstået ' .. getValue('tao_aktuelle.thyreotoxicose.opstaaet') .. ' og er efterfølgende ' .. getValue('tao_aktuelle.thyreotoxicose.efterfoelgende') .. '.' + + else + out = out .. 'Thyreotoxicose ikke diagnosticeret.' + end + + + return out + + + + + + -- Set date to now if no other data available within last 24 hours. + return os.time(), os.time() - 24*60*60, 'pracro' + + + + + + + + +