I am trying to create a form that will allow the user to add historical immunizations more easily than using the immunization record. I am using the IMMUN_ADD data symbol but I just can't get it to work.
I removed all code from the form and just put this into a runprocess button
{IMMUN_ADD("Hepatitis B^^^3^Y^^Y^^V01^^^^^^^^^^^^^^^^^^^03/19/2018 17:11^^^^^^^^^^^^^^^^")}
I added the bare minimum with absolutely no other code, but it still isn't adding the immunization. Is there anything else that needs to be prepared before this data symbol will work?
I have counted and recounted the carrots to make sure I'm putting everything in the correct place. I'm at a complete loss here.
I have no problem using the IMMUN_GETLIST() but for some reason this just won't work.
I would do a MEL trace and see what is going on. It will return an error code and would indicate why it doesn't like your code. The only thing I could see is that I don't think you can use a date/time, only a date.
I ran a MelTrace already but it just gave me the -99 error code. I did figure out that the help file is incorrect. the IMMUN_ADD data symbol I guess has been updated. The one in the help file shows 44 fields where the new one apparently only has 36 fields. Once I removed the extra fields it worked.