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'