I am working on a Surgery Risk calculation and it just isn't calculating... what did i miss: TIA ~ Beth
{!
local localIS_SURGERY_H2
localIS_SURGERY_H2= ""
local localHISTORY_OF_I
localHISTORY_OF_I = ""
local localHISTORY_OF_C
localHISTORY_OF_C = ""
local localHISTORY_OF_C1
localHISTORY_OF_C1 = ""
local localPRE_OPERATIV
localPRE_OPERATIV = ""
local localPRE_OPERATIV1
localPRE_OPERATIV1 = ""
local localTotal
localTotal = ""
if DOCUMENT.IS_SURGERY_H2 = "Yes" then localIS_SURGERY_H2 = "1"
else localIS_SURGERY_H2 = ""
endif
if DOCUMENT.HISTORY_OF_I = "Yes" then localHISTORY_OF_I = "1"
else localHISTORY_OF_I = ""
endif
if DOCUMENT.HISTORY_OF_C = "Yes" then localHISTORY_OF_C = "1"
else localHISTORY_OF_C = ""
endif
if DOCUMENT.HISTORY_OF_C1 = "Yes" then localHISTORY_OF_C1 = "1"
else localHISTORY_OF_C1 = ""
endif
if DOCUMENT.PRE_OPERATIV = "Yes" then localPRE_OPERATIV = "1"
else localPRE_OPERATIV = ""
endif
if DOCUMENT.PRE_OPERATIV1 = "Yes" then localPRE_OPERATIV1 = "1"
else localPRE_OPERATIV1 = ""
endif
localTotal = val(localIS_SURGERY_H2) + val(localHISTORY_OF_I) + val(localHISTORY_OF_C) + val(localHISTORY_OF_C1) + val(localPRE_OPERATIV) + val(localPRE_OPERATIV1)
RSKSCORTOTAL = localTotal
local localREVISED_CARD
localREVISED_CARD = ""
if localTotal = "0" then localREVISED_CARD = " This score belongs to Class I of risk for perioperative cardiac events with a risk percentage of 0.4%.. "
endif
if localTotal = "1" then localREVISED_CARD = " This score belongs to Class II of risk for perioperative cardiac events with a risk percentage of 0.9%."
endif
if localTotal = "2" then localREVISED_CARD = " This score belongs to Class III of risk for perioperative cardiac events with a risk percentage of 6.6%."
endif
if localTotal = "3" then localREVISED_CARD = " This score belongs to Class IV of risk for perioperative cardiac events with a risk percentage of 11%. "
endif
if localTotal = "4" then localREVISED_CARD = " This score belongs to Class IV of risk for perioperative cardiac events with a risk percentage of 11%. "
endif
if localTotal = "5" then localREVISED_CARD = " This score belongs to Class IV of risk for perioperative cardiac events with a risk percentage of 11%. "
endif
if localTotal = "6" then localREVISED_CARD = " This score belongs to Class IV of risk for perioperative cardiac events with a risk percentage of 11%"
endif
DOCUMENT.REVISED_CARD= localREVISED_CARD
}
Posted : July 17, 2019 9:27 am