I'm curious if there is a way to load a prior HPI that is not just the last HPI that was entered for the patient. As an example, I'm in cardiology, and often when I go to load prior, if the patient had seen someone outside our group in the meantime, it loads their HPI. Can I make a quicktext where I can load the HPI from the most recent cardiology office visit?
If you sign into a different location of care (LOC), then you could try this:
{LASTOBSVALUEBYLOC("HPI")}
Just make sure that the last time you saw the patient the correct LOC was chosen.
Laurie
This is the one we use. Works perfect. It gives the last HPI used by the user for that patient.
{LASTOBSVALUEBYUSER("HPI")}
Brian
When using quick texts like these, how do you educate your providers on their use?
We created a Global Quicktext in administration called .myhpi, and informed the provider's.
Brian
I created a function for this. We are multi-specialty with shared obsterms and some of our divisions have multiple LOC, so the LASTOBSVALUEBYLOC is limiting, and a patient may see another provider within the same Division, and we don't want to exclude those from the previous view either.
{fn fnLastObsPerLOC(strList,strDivision,strDate)
{!
local ICounter
local IObsArray
local IStart
local IFormattedList = ""
IObsArray = getfield(strList,"|","")
for ICounter = 1, ICounter <= size(IObsArray), ICounter = ICounter + 1 do
IObsArray[ICounter] = getfield(IObsArray[ICounter],"^","")
if (match(IObsArray[ICounter][9],strDivision)>0 and strDate=="Date") then
IFormattedList = IFormattedList + IObsArray[ICounter][2] + "^"
else if match(IObsArray[ICounter][9],strDivision)>0 then
IFormattedList = IFormattedList + IObsArray[ICounter][1] + "^"
else ""
endif
endif
endfor
if (ICounter > 1) then
IFormattedList = remove(IFormattedList, size(IFormattedList))
endif
return (IFormattedList)
}}
{get(getfield(fnLastObsPerLOC(LIST_OBS("HPI","signed","delimited","value"),"Cardio",""),"^",""),1)}
Kelly, what are you passing as parameters to that function?
"HPI" is the Obsterm, and "Cardio" is part of the LOC name.
{get(getfield(fnLastObsPerLOC(LIST_OBS("HPI","signed","delimited","value"),"Cardio",""),"^",""),1)}