We are trying to send orders to the orders module and send flags at the same time.
How the forms currently work:
The user must select “Inside or outside” and then select an
authorizing provider.
Once they have done that, they can use the shortcut buttons
on the bottom of the patient info form to open the order forms per modality.
This will take them to the ordering page where they can
select a DX code and test and click the commit button to send to the orders
module. Once they are finished with this modality, they can go back to
the main patient info page and select a different modality and multiple
tests. This part is working correctly.
How we want it to work:
When the user clicks the “commit” button we want a flag to
be sent to three places, the user who ordered the test, the scheduler, and
central authorizations. I have developed code for this. We want to
have this code attached to each modality so that the flags can each be routed
to different appointment schedulers with different text based on modality.
What actually happens:
When the user selects a test and dx code and clicks the
commit button, the form orders the test and sends the flags, but the user
cannot order any other tests within this update. Clicking the commit
button additional times does nothing. Opening additional modalities and
clicking orders and the respective commit buttons does nothing. Ending
the update and starting a new one also does not allow the user to order any
additional tests. The user must log out of EMR completely and log back in
to order anything new.
Here is the code. I have it dependent upon a check box “DOCUMENT.FLAG” that would be checked when the commit button is clicked:
{!IF DOCUMENT.FLAG<>"" THEN
IF DOCUMENT.INOUT=="INSIDE MIMA ORDER" AND ORDERS_NEW()<>"" THEN
MEL_SEND_FLAG("FLAG", "tabonnett", "N", str(._todaysdate), DOCUMENT.INOUT + " for Cardiology Testing/Imaging", "USER: " + DOCUMENT.INOUT + " *CARDIOLOGY* -- Primary Insurance: " + INS_NAME("P")+ ". Secondary Insurance: " + INS_NAME("S"), "Documents", "") ELSE
IF DOCUMENT.INOUT=="OUTSIDE MIMA ORDER" AND ORDERS_NEW()<>"" THEN
MEL_SEND_FLAG("FLAG", "tabonnett", "N", str(._todaysdate), DOCUMENT.INOUT + " for Cardiology Testing/Imaging", "USER: " + DOCUMENT.INOUT + " *CARDIOLOGY* -- Primary Insurance: " + INS_NAME("P")+ ". Secondary Insurance: " + INS_NAME("S"), "Documents", "") ELSE "" ENDIF ENDIF
ELSE "" ENDIF}
{!IF DOCUMENT.FLAG<>"" THEN
IF DOCUMENT.INOUT=="INSIDE MIMA ORDER" AND ORDERS_NEW()<>"" THEN
MEL_SEND_FLAG("FLAG", "tabonnett", "N", str(._todaysdate), DOCUMENT.INOUT + " for Cardiology Testing/Imaging", "CARD: " + DOCUMENT.INOUT + " *CARDIOLOGY* -- Primary Insurance: " + INS_NAME("P")+ ". Secondary Insurance: " + INS_NAME("S"), "Documents", "") ELSE
IF DOCUMENT.INOUT=="OUTSIDE MIMA ORDER" AND ORDERS_NEW()<>"" THEN
MEL_SEND_FLAG("FLAG", "tabonnett", "N", str(._todaysdate), DOCUMENT.INOUT + " for Cardiology Testing/Imaging", "CARD: " + DOCUMENT.INOUT + " *CARDIOLOGY* -- Primary Insurance: " + INS_NAME("P")+ ". Secondary Insurance: " + INS_NAME("S"), "Documents", "") ELSE "" ENDIF ENDIF
ELSE "" ENDIF}
{!IF DOCUMENT.FLAG<>"" THEN
IF DOCUMENT.INOUT=="INSIDE MIMA ORDER" AND ORDERS_NEW()<>"" THEN
MEL_SEND_FLAG("FLAG", "tabonnett", "N", str(._todaysdate), DOCUMENT.INOUT + " for Cardiology Testing/Imaging", "SCHEDULING: " + DOCUMENT.INOUT + " *CARDIOLOGY* -- Primary Insurance: " + INS_NAME("P")+ ". Secondary Insurance: " + INS_NAME("S"), "Documents", "") ELSE "" ENDIF
ELSE "" ENDIF}
Any ideas or insight as to why the system would act the way it does, preventing the user from adding any additional orders via the form would be greatly appreciated.
Thank you
Tina Bonnett
MIMA
Do you mind posting the form?
Tina,
Did you ever get this resolved? I am having the same issue when trying to place orders via a form, and then trying to send a flag to someone with those orders in it.
It's a Superbill form where the service orders are placed and then a flag is sent to an MA or someone else letting them know what needs to be completed.
Dave