Hi. I have a form, that is linked to another system where the provider select the problem to assess. That system save into an Obs Term the assess, but not the problem. For billing purpose, we need to pull the Problem, Assessment and Documentation (like the CCC CPOE Form) into the Chart (text translation).
I'm using the MEL Expression PROB_LIST_CHANGES() and it pulls the Problem the provider is assessing, but just the description and billing needs the ICD 9 and ICD 10 Codes. I'm looking for a function that can tell me the Codes from a Problem's Description. Do you know a MEL Expression to do that?
Thank you!. In advance I really appreciate your help.
When using the PROB_LIST_CHANGES() data symbol for new problems, it shows the ICD codes but for problems that are assessed, it only shows the description and assessment. In order to accomplish with you want, you will likely need to use a delimited list and pull the information you want. Do you need any help with using a delimited lists/subarrays/looping arrays?
Yes I do. I will appreciate it!! I'm new on MEL, this will be really helpful for me.
I haven't tested this but see if this does what you need:
{fn fnProblemCode(){
local CodeArray
local CodeSubarray
local i = 0
local result = ""
CodeArray = getfield(PROB_LIST_CHANGES("delimited"),"|","")
for i = 1, i <= size(CodeArray),i = i + 1
do CodeSubarray = getfield(CodeArray[i],"^","")
if result == "" then result = "The problem of " + CodeSubarray[3] + " has been assessed as " + CodeSubarray[9] + " (" + CodeSubarray[16] + ")" + HRET
else result = result + "The problem of " + CodeSubarray[3] + " has been assessed as " + CodeSubarray[9] + " (" + CodeSubarray[16] + ")" + HRET
endif
endfor
result
}}
Thank you so much!! I'm testing it right now. I will let you know how is everything, I really appreciate all your help, thank you!!
It works perfectly!!! I really appreciate all your help!!!
No problem. Glad I could help!