We have many forms that have a drop down that pulls in the patients problem list and after one is selected it puts the ICD code in a separate field. Then both fields can be added to a multi line text field. I thought that after the ICD-10 transition it would just pull in the ICD-10 code since it was getting the information from the problem list but I was wrong. My though is that in the function it is the parameter "Code" that is the problem. Does anyone know what that parameter should be to pull in an ICD-10 code instead of an ICD-9. I have pasted the whole portion of the function that isn't working below. Any help would be greatly appreciated!!
fn fnProbSortGetProbCode(strProblemName)
{
local lNumRows
local lCounter
local lArray
local lReturn = ""
lArray = array()
lNumRows = getRowCount("_MasterProb")
for lCounter = 0, lCounter < lNumRows, lCounter = lCounter + 1 do
if (strProblemName == getrow("_MasterProb", lCounter, "Description")) then
lReturn = getrow("_MasterProb", lCounter, "Code")
return (lReturn)
endif
endfor
return ("")
}
Pull the field ,"ICD10Code" instead of "Code".
There is also a field in that object called "icd9code" if you still need that. I would guess that "code" is a legacy field that will probably always have icd9code in it and may some day go away.
That worked!!! Thank you so much. I knew it had to be something like that but I tried who knows how many variations of that. I thought I tried ICD10Code but I must have missed that one.