Hi, I'm building a single quicktext to be "fired" in the Orders Details for a new Colonoscopy order. The idea is to alert the receiving office if the patient is on anticoagulants, with PCP provider advice about whether meds can be held.
This code below works nicely, but its more than the 512 character limit if I merge the 3 queries together.
Can anyone suggest a way to compress the code, or work around the limit? (I thought about a case statment but not sure I can make it smaller.)
{If match(MEDS_AFTER("delimited"),"ASPIRIN")>0 then "This patient's Med List includes ASPIRIN. Can Aspirin-containing medication be held for 3 days?:" else "No Aspirin on Med List" endif}
{If match(MEDS_AFTER("delimited"),"WARFARIN")>0 then
"This patient's Med List includes WARFARIN. Can Warfarin be held for 3 days?:"
else
If match(MEDS_AFTER("delimited"),"DABIGATRAN")>0 then
"This patient's Med List includes DABIGATRAN. Can Dabigatran be held for 3 days?:"
else
"No Warfarin or Dabigatran on Med List"
endif
endif}
{If match(MEDS_AFTER("delimited"),"^8515")>0 then "This patient's Med List includes a PLATELET
INHIBITOR . Can Platelet Inhibitors be held for 7 days?:" else "No PLATELET INHIBITORS on Med List" endif}
put it all in one function and stick it in usrlib. Then the QT can be just the fn.
Or you can stick it in a text component and call the text component from the quick text.