Does anyone know if there is a way to set the start date of a medication so many days in the future, based on today's date, when adding it using MEL_ADD_MEDICATION. Thank you!
There is a way to use the MEL_ADD_MEDICATION to add a medication to the med list with a future start date. However, the code that I tried just adds it directly to the medication list with just a different start date.
It might not be what you are looking for. This is an example of a medication for Suprep that will go directly to the medication list but will show a start date of next year.
{local D1 D1=ADDDATES(str(._TODAYSDATE), "0", "1", "0") local T1=MEL_ADD_MEDICATION("SUPREP BOWEL PREP KIT SOLN", "Take one (6oz) bottle by mouth the PM before colonoscopy & one (6oz) bottle by mouth the AM of colonoscopy as directed by surgical clinic", D1, -160379, "", "", "")T1=""}
That did work to add it to the med list with a future start date but like you suspected it did not work to change the earliest fill date like I was hoping. However, after looking more into it, I decided the what this staff member was asking for wasn't going to be a very good workflow anyway so I nixed it. Thank you for your input though.