I am using this in an action button, but I want to be able to have the flag arrive to the user on a future date, not today. How can I change/alter TODAYSDATE to send the flag say in 1 week or 2 week? We would like to use these as reminders to do a certain activity on the day it is due, not linger on a desktop for 2 weeks waiting for action. I understand I will likely need to build several buttons to accommodate all the options, but that is acceptable. (ie button for 1 week, button for 2 weeks, etc.)
MEL_SEND_FLAG("FLAG","cstewart","Urgent",str(._TODAYSDATE),"Appointment Needed","Please schedule an appointment for this patient within the next week","appointment", "")
Any help is appreciated!
Thank you!
Sonya
ADDDATES(str(._TODAYSDATE),"0","0","14")
Reads, take today's date, add 0 years, 0 months, and 14 days and return the date
also, to save some space and not have several buttons, you could have a drop down list set as a Document Variable with choices being number of weeks (1,2,3,etc..) and then replace the "14" with the document variable.
Your suggestions are working for documenting in the chart when the pt needs follow up, Thank you! But the flag is still being issued now, I don't want the flag to arrive until it is time for the appointment call. I want it to pop up on the day it needs to be done. We are attempting to use these as a schedule for our health navigators to call patients and follow up. We don't want the flags sitting around and being looked over because of full desktops. The health navigators are simply telling the pt they will call them back in x weeks. So we want the flag to pop up in x weeks so the navigator knows who to call that day.
Maybe I have misplaced the recommendations and put the code in wrong, there is always that possibility too!
Any ideas?
Thanks so much!