Happy New Year!
I'm trying to create a button in a VFE form that will allow a provider to add an immunization to the HTML Immunization Management form, without any specifics other than the group and name, and then put the immunization on hold. The providers want to avoid the HTML form, but the clinics had a situation where an incorrect vaccine was administered. The providers want to be able to select the vaccine group and name (group and name only) from a VFE form and have the on hold immunization appear in the HTML form. They don't want to fill out the other required items with the IMMUN_ADD data symbol.
Can this be done?
If anyone wants to help me get this to work, I will gladly share the form with everyone. I am fairly proficient with MEL, but I do not know HTML or JavaScripting yet.
Thank you,
Robin Tardif
Robin,
Yes, I would think you could modify what I created on one of my entry screen.
On an entry VFE form, I have the following to do flu:
1) drop-down for where received flu shot, with CVS, Walgreens, etc... ; stored to obs "flu vax"
2) calendar field for approximate date, stored to obs "flu vaxhx"
3) button to write to html
local immunmsg1
local immunmsg2
local immunmsg3
local immunmsg
immunmsg1 = "Influenza^Flu Vax^^1^Y^^Y^"
immunmsg2 = "^V01^^^^^^^^^^^^^^^^^^^"
immunmsg3 = "^^^^^^^^^^"
immunmsg = immunmsg1 + obsnow("FLU VAX") + immunmsg2 + str(obsnow("FLU VAXHX")) + immunmsg3
result = IMMUN_ADD(immunmsg)
if (result>0) then
USEROK("Historical Flu added")
else
USEROK(result)
endif
Hey Robin,
Immunization doesn't have a IMMUN_REQUEST() like the medication administration does, so I don't think its really going to work trying to stage a immunization in VFE and then complete it with the out-of-box form. You would be better off writing a complete form to do both in one or the other. In a VFE form you could stage the immunization request using observation terms or document symbols and then have an administration page for staff to add details and use IMMUN_ADD() to push the administration to the correct table like Joseph's example. I would send you a working sample, but I haven't gotten around to actually writing a general form like this yet... if you want to email me I can send you what I started.
Mike
Thank you, Mike and Joe.
After much discussion with my client, and searching for workarounds, we've decided to use the orders module in combination with an obsterm. It will make for easier tracking and the list of ordered vaccines can be pulled into the consent form that is to be signed by the parent/guardian.
Thank you for your help. And I'll still share the form if anyone wants it when I'm done.
Robin