We are using the HTML immunization forms. Within our custom VFE forms is there a way to pull the immunizations. We were pulling the observation terms previously. Thank you.
On the right side panel, where you can define functions, etc...
{!fn fnTextTransImmunHx() {
local hold = getfield(IMMUN_GETLIST("", "all"), "|", "")
local temp
global rslt = ""
for i = 1, i <= size(hold), i = i + 1 do
temp = getfield(hold[i], "^", "")
if (rslt <> "") then
rslt = rslt + rtntype
endif
rslt = rslt + temp[3] + if temp[4] <> "" then " - " else "" endif + temp[4] + " on " + temp[30] + HRET
endfor
return rslt
}}
You can then have a data display with type=MEL expression
{
fnTextTransImmunHx(IMMUN_GETLIST("", "all"))
}
Creating output like
Pneumococcal PPSV23 - PNEUMOVAX on 6/19/2014 11:25 AM
Pneumococcal PPSV23 - PNEUMOVAX on 9/29/2014 9:44 AM
Human Papillomavirus - HPV #3 on 6/19/2014 11:25 AM
Influenza - FLU VAX on 6/19/2014 1:08 PM
Influenza - FLU VAX on 8/20/2014 12:25 PM
Influenza - FLU VAX on 9/29/2014 9:44 AM
DTaP - Diphtheria-Tetanus Toxoids DT Intramuscular Suspension 25-5 LFU/0.5ML on 6/16/2015 12:14 PM
BCG - BCG Vaccine Injection Injectable on 6/9/2005 12:00 AM
Human Papillomavirus - Gardasil Intramuscular Suspension on 6/16/2015 1:45 PM
Influenza - Flu Vax on 12/25/2015 12:00 AM
Influenza - Flu Vax on 12/25/2015 12:00 AM
Influenza - Fluzone High-Dose Intramuscular Suspension on 1/26/2016 4:04 PM
DTaP on 2/9/2016 10:33 AM
MMR - Unspecified Formulation on 1/2/2014 12:00 AM
Measles - Unspecified Formulation on 1/2/2014 12:00 AM
Mumps - Unspecified Formulation on 1/2/2014 12:00 AM
Rubella - Unspecified Formulation on 1/2/2014 12:00 AM
Influenza - Unspecified Formulation on 12/31/2015 12:00 AM
Influenza - Flu Vax on 2/1/2016 12:00 AM
Thank you. That worked.
Is there a way to have each immunization on its own line. The immunizations are currently all on one line. See below.
DTaP dpt#1 on 10/14/2009 1:30-Zostavax on 6/18/2012 9:51
Near the bottom, is HRET, which should be providing the <CR> and <LF> characters to place each item on a separate line. There are other ways to do carriage returns and line feeds, also.
That HRET is not working. Could you assist in how I would get it to separate vaccines to separate lines? Thank you.
Is there a way that the immunizations can be sorted or grouped together? for instance all Influenza's grouped, All DTaP grouped together?