Is anyone using MEL_CHANGE_PROBLEM or MEL_REMOVE_PROBLEM and have function examples of how your using it? I've tried and it doesn't recognize the PRID, says its invalid.
Thanks!
Can you supply an example of your code?
Here's the code that creates the listbox. I'm displaying the Code desc, ICD-9 code, and both PRID's (for testing). There's probably a simpler way to do this, but I was working from a listbox that only display problems entered prior to a specific date, but we'll want to change any problem in the patients active list.
{!fn fnChangeProbList(strList)
{
local lCounter
local lProbArray
local lStart
local lBuffer
local lFormattedList = ""
/* Create array of problems */
lProbArray = getfield(strList, "|", "")
for lCounter = 1, lCounter 0 then*/
if (DURATIONDAYS(lProbArray[lCounter][10],"06/25/2015")>0) or (DURATIONDAYS(lProbArray[lCounter][10],"06/25/2015")= 1) then
lFormattedList = remove(lFormattedList, size(lFormattedList))
endif
/* Return comma separated list */
return (lFormattedList)
}}
And here's the button to remove the selected problem. I've tried both PRID's. When I just display the selected PRID, its fine, and I can hardcode that PRID in the button and it removes it, otherwise won't.
{MEL_REMOVE_PROBLEM(process_delim_list_b(DOCUMENT.PROBLEMS,4))}
Thanks for any help!!!