I'm very new to this, hoping someone can provide an answer. I created quick text to setup orders dated today, but would also like to have the ability to set up orders with a future date. For example today is 11/8/13 and I want them dated for 6 months from today. I don't want to build the actual future date of 5/8/13 into the code, I'd like to know what I can build into the code so it can do the math for me. What I have so far, which works great for setting up orders with today's date is below. It does however insert a 0 for each line. If anyone knows how to avoid getting the 0 it would be great to know also. Thank you!
{MEL_ADD_ORDER("T","Laboratory","Lipid Panel - 12 Hr Fast","","","","","1","N","","")}
{MEL_ADD_ORDER("T","Laboratory","CBC w/ Diff","","","","","1","N","","")}
{MEL_ADD_ORDER("T","Laboratory","Comp Met. Panel - Fasting","","","","","1","N","","")}
{MEL_ADD_ORDER("T","Laboratory","TSH","","","","","1","N","","")}
{MEL_ADD_ORDER("T","Laboratory","Urinalysis W/out Micro - microscopic reflex (lab to collect)","","","","","1","N","","")}
Ordered Lipid Panel, CBC w/Diff, CMP Fasting, TSH, Urine.
ADDDATES() will do that -
{MEL_ADD_ORDER("T","Laboratory","Lipid Panel – 12 Hr Fast","","","","","1","N","",ADDDATES(str(._TODAYSDATE),"0","6","0"))}
Reads - starting with todays date, add 0 years, add 6 months, add 0 days (from left to right)
To set a future date try ADDDATES(date, years, months, days).
Example:
ADDDATES(str(._todaysdate),"","6","") will give you the date 6 months from today
To suppress the output, try ending each with a pair of empty quotes.
{MEL_ADD_ORDER("T","Laboratory","Lipid Panel – 12 Hr Fast","","","","","1","N","","") ""}
I tried this and it works, thank you both so much for the quick replies!!
{MEL_ADD_ORDER("T","Laboratory","Lipid Panel - 12 Hr Fast","","","","","1","N","",ADDDATES(str(._TODAYSDATE),"","6",""))""}
Hi, can I pick your brains again? Along the same lines as above, I'm trying to order a pap smear using quick text- our lab requires the LMP on the order. To make that happen I think I need to pull in {OBSANY("LAST MP")} to the comment section after Source: Endocervical. I've tried a few variations, but just can't see to get it to pull in the LMP. The code below works, but there is no LMP. Can you please help? thank you!
{MEL_ADD_ORDER("T","PAP (PRINT)","Pap Smear Screening (PRINT)","","","","Source: Endocervical","1","N","","")""}
In that argument try:
"Source: Endocervical " + OBSANY("LAST MP")
SO COOL!!!! Thank you!
Love this...any way to make it add custom order sets?