Hello,
Does anyone know of a way to display immunization changes that occurred during an update?
As far as I can tell from the documentation, there is no equivalent of OBS_LIST_CHANGES() for immunizations. I know you could manage this from a form, but I have a situation where immunizations can be imported from a state registry using a third party application that is accessed through a form component.
Alternatively, is there a way to display the text displayed in the "View Clinical List changes" box in the progress note text?
The only thing I can think is to use IMMUN_GETLIST("", "last") but this will pull all last result including recently added ones. Here's the piece I use:
In white space:
{!fn fnTextTransImmunHx() {
local hold = getfield(IMMUN_GETLIST("", "last"), "|", "")
local temp
local rslt = ""
for i = 1, i <= size(hold), i = i + 1 do
temp = getfield(hold[i], "^", "")
if (rslt <> "") then
rslt = rslt + rtntype
endif
rslt = rslt + cfmt(temp[3] + " Vaccine", "U") + if temp[4] <> "" then " - " else "" endif + temp[4] + " - " + temp[30] + if temp[18] <> "" then " - " else "" endif + temp[18] + " " + temp [19] + " - " + if temp[7] == "Y" then "was given" else if temp[7] == "N" then "declined" else if temp[7] == "U" then "Undetermined or Pending please update in Immunization Management" else "" endif endif endif + if temp[8] <> "" then " - " else "" endif + temp[8] + "
"
endfor
return cfmt(rslt, ",1")
}}
In Item variable on the form in text translation:
{fnTextTransImmunHx()}
Unfortunately I don't think immunizations have been included in ALL_LIST_CHANGES() someone please correct me if I'm wrong.
Have you tried
IMMUN_GETLIST ()