Does anyone have a form created with patient's medication start and stop date and reason for discontinuation? We just hired an infectious disease provider and she needs a flowsheet view or form for antiretroviral therapy history.
Here is a function we did for Nephrology for Anemia meds - this might get you started. The fields you want are 8,9, and 10 I believe. You would use those field numbers on the line with DOCUMENT.ANEMIAMEDS in it.
{!fn MEDListObs()
{
MEDLIST = getfield(MEDS_AFTER("delimited"),"|","")
MEDSIZE = SIZE(MEDLIST)
DOCUMENT.ANEMIAMEDS = ""
for COUNT = 1,COUNT <= MEDSIZE, COUNT = COUNT+1 do GETMED = getfield(MEDLIST[COUNT],"^","") cond case /*Procrit*/ match(GETMED[4],"82401020002060") > 0 or
match(GETMED[4],"82401020002040") > 0 or
match(GETMED[4],"82401020002010") > 0 or
match(GETMED[4],"82401020002015") > 0 or
match(GETMED[4],"82401020002020") > 0 or
match(GETMED[4],"82401020002050") > 0 or
match(GETMED[4],"8240102000") > 0 or
/*Aranesp (Albumin Free)*/
match(GETMED[4],"82401015112050") > 0 or
match(GETMED[4],"82401015112075") > 0 or
match(GETMED[4],"82401015112040") > 0 or
match(GETMED[4],"82401015112030") > 0 or
match(GETMED[4],"82401015112020") > 0 or
match(GETMED[4],"82401015112010") > 0 or
match(GETMED[4],"82401015112060") > 0 or
match(GETMED[4],"8240101511") > 0
DOCUMENT.ANEMIAMEDS = DOCUMENT.ANEMIAMEDS + GETMED[1] + " (" + GETMED[7] + ")
"
endcond
endfor
}}
Thanks for the information