Hoping someone can assist me, we are attempting to pull in the last 3 lab results for a patient.
This is what I have so far but provider would like more results than just the last one.
{IF LASTOBSVALUE("POTASSIUM")"", "Potassium - " + LASTOBSVALUEDATE("POTASSIUM")+ "", ""}
{IF LASTOBSVALUE("CREATININE")"", "Creatinine - " + LASTOBSVALUEDATE("CREATININE")+ "", ""}
Thanks in advance.
Below is a quick text I use that is .crea
See if this gets you what you are looking for. Thanks.
Last 3 creatinine values:
{crealist = getfield(list_obs("creatinine","signed","delimited","value"),"|","")
creasize = size(crealist)
count
getcrea
returncrea = ""
for count = 1, count <= creasize and count < 4, count = count + 1 DO
getcrea = getfield(crealist[count],"^","")
getdia = getfield(bplist2[count],"^","")
returncrea = returncrea + " "
+ getcrea[1] + "" + " " + getcrea[2] + HRET
endfor
returncrea
}
Thank you so much.