We just upgraded to CPS12 SP10GAGA, but the week prior I started noticing forms with data displays based on a DURATIONDAYS function stopped displaying correctly. But the same function displays correctly in the patient banner. Has anyone else seen this in SP9 or SP10?
Below is an example of a function I modified to display a problem list based on the modified date of the problem. This is for ICD10 go-live, and we want our users to be aware of problems added after 10/1/15 that may not be ICD10 compliant. If I designate a date and there are no problems modified after that date I get <Bad Index. If there are modified problems it populates the list correctly.
{fn fnICD10ProbList(strList,strStartDate)
{
local ICounter
local IProbArray
local IStart
local IBuffer
local IFormattedList = ""
IProbArray = getfield(strList,"|","")
for ICounter = 1, ICounter <= size(IProbArray), ICounter = ICounter + 1 do
IProbArray[ICounter] = getfield(IProbArray[ICounter],"^","")
if (DURATIONDAYS(strStartDate,IProbArray[ICounter][10]) > 0) then
IBuffer = ReplaceStr(IProbArray[ICounter][2],",",";")
IFormattedList = IFormattedList + IBuffer + " (" + IProbArray[ICounter][8] + ") (" + IProbArray[ICounter][3] + ") " + IProbArray[ICounter][10] + ","
else ""
endif
endfor
if (Icounter > 1) then
IFormattedList = remove(IFormattedList, size(IFormattedList))
endif
return (IFormattedList)
}}
{fnICD10ProbList(PROB_AFTER("delimited"),"09/25/2015")}
testing