Our providers have requested an "order set" for medications that are ordered when a patient is admitted to hospice. I am able to achieve their request with the use of simple chart with one "issue" that I can't seem to find a way around. Hoping someone here might have ideas.
I will be using a quick text to initiate the function. The simple chart function works great unless the patient does not have a pharmacy listed in contacts. Likely a rare occurrence but one that I need to consider. If the patient does not have a pharmacy it enters the medications with the "Print and give to patient" prescribing method. I do not want this to occur because it is likely to go unnoticed and get signed. We will then be left entering the prescriptions in again.
So I edited the quick text to look at REGPHARMACY() first and to prompt the user if the patient does not have a pharmacy in contacts. Ok, that works great.
THEN, the user proceeds to add the patients pharmacy and tries to re-enter the quick text and is still receiving the userok prompt. I have tried updating the pharmacy through the Medications button at the top of the encounter, through registration and through the Prescriptions HTML form. None of these methods seems to update REGPHARMACY() immediately. I have to navigate back to those areas a second time before it recognizes that REGPHARMACY() has been updated.
Is there anyway to get REGPHARMACY() to "update" more quickly so that the users will be able to use my quick text after adding the pharmacy without having to bounce around??
My quick text:
{if REGPHARMACY() == "" then (if userok("Please add patients preferred pharmacy.") = 0 or FALSE then "" else "" endif) else fnCSC_Fx_extr("Hospice") + OPEN_FORM_COMP("Enterprise\MedicaLogic\Prescriptions") endif}
Sadly, Jessica, there is no way to overcome this issue. The best you can do is to advise your users to add the pharmacy, put the update on hold, then reopen it. That *should* force the refresh you are looking for. Not ideal, but the best that can be done at this time.
That was my fear. Thank you for confirming.