One of the challenges with Wellness Visits is determining whether a patient has had one before. You order an "initial wellness visit" for their first wellness visit; subsequent wellness visits are "annual wellness visits." So, when a patient comes in for their wellness visit, it'd be nice to know if they've had any previous wellness visits so that the appropriate code can be billed.
I thought a nice way to solve this would be to see if a wellness visit had previously been ordered. Billing a wellness visit generates an order, but this order is immediately completed and thus not searchable from ORDERS_ALL or ORDERS_PRIOR. It'd be great if there was a function that listed all previous orders, including those that had been completed.
Does such a function exist? If not, any thoughts on how to check if a patient has been previously billed for a wellness visit?
Dave
you don't need MEL for this. You can do it through Chart Reports. In the chart module it is right below chart on the left hand side of the screen. You can set time frames and export it to excel if need be.
I use this for some of the visibility functions in our ACO Checklist. CPT = whatever codes your looking for.
/*test for completed,unsigned,or admin hold compliance codes within a 365 day timeframe*/
{fn complianceorders(CPT) {
local a,d,e,f,j,g,h,i, results
a = ORDERS_ALL("delimited",'S')
results = ""
d = getfield(CPT,",","")
e = size(d)
g = getfield(a,"|","")
h = size(g)
for f=1, f<=e, f=f+1 do
for i=1, i<=h, i=i+1 do
j = getfield(g[i],"^","")
if match(j[3],d[f]) = 1 AND j[20] <> "X" then //the code matches and it isn't cancelled
if j[20] == "C" then j[20] = "Complete" endif
if j[20] == "S" then j[20] = "In Process" endif
if j[20] == "H" then j[20] = "Admin Hold" endif
if j[20] == "U" then j[20] = "Unsigned" endif
if DURATIONDAYS(j[4],STR(._TODAYSDATE))=<365 then j[4]= "(current)" endif
if DURATIONDAYS(j[4],STR(._TODAYSDATE))>365 then j[4]= "(prior)" endif
results = results + j[1] + " " + j[4] + " (" + j[20] + ")" + HRET
endif
endfor
endfor
return results
}}