Hi, is it possible to write a MEL statement to do something like this? I'd like to put it in a text file or in a document template to automatically do the following when the update is started:
if a patient's email contains @ then populate OBSNOW "METHCONTACT" with "secmsg" , or if email does not contain @ then populate OBSNOW "METHCONTACT" with "offered but declined" and OBSNOW "PATPORTALPIN" with "offered but declined"
I tried a few variations, but I'm not really sure how to do this, if someone could help that would be great! thank you!
Laryssa,
I could help you with this. If you would like to do a webex, you may contact me via email and we could schedule time to look at it over a lunch hour. Just let me know your availability.
I haven't tested this but it might be something to get you started. Try putting this into a text file and having it load in your office encounter. Also, do you want this to write at every single visit? You could modify it so that if there is a previous value in 'METHCONTACT' and 'PATPORTALPIN' you skip the logic entirely.
{
if match(PATIENT.EMAIL,1,"@")>0 then
OBSNOW("METHCONTACT","secmsg")
else
OBSNOW("METHCONTACT","offered but declined")
OBSNOW("PATPORTALPIN","offered but declined")
endif
""
}
thank you so much - this works great!
Want to send out a HUGE THANK YOU to you for the additional assistance and time you volunteered to make the code and all my extra workflow wish list requests AMAZING!!
Thank you Thank you!!
You are more than welcome. Feel free to reach out if you need further assistance. That's what makes this community so great!