We send out a preventive letter each year to meet MU. Now that the immunizations no longer
populate the flowsheet, we can't figure out how to bring in the date of the last vaccine into
the custom letter. I know GE provided a standard letter that displays vaccines given but
we need to create a custom letter using prevnar and pneumovax. Thanks
[email protected]
864-512-2197
Place this in your letter you may need to copy this and paste it into notepad first then into the letter template:
{fnTextTransImmunHx()}
{!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] + /*if temp[24] <> "" then " - " else "" endif + temp[24] +*/ " - " + 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")
}}
Here it is in a notepad file (easier to format): PullLastImmun
You'll have to play with the temp pieces to pull the fields you want. I use {IMMUN_GETLIST()} in a quicktext to look at the raw data.