Exit Check newly placed orders

24 views
Skip to first unread message

Scantron

unread,
Feb 4, 2015, 2:28:55 PM2/4/15
to heo-i...@googlegroups.com
Hey Guys!


I am encountering an issue with an exit check. In my exit check I have it display the Patient Status Confirmation iform, and if those criteria are met, the form closes itself, and the exit check continues. If the criteria is not met, the form remains open and gets an order placed and the exit check continues to the Observation to Inpatient iform.

Exit Check:
if clinician.role is MD and patient.active order list has any of (Patient Status) and patient.active order list has none of (Admitting Status Deferred) then show iForm Patient Status Confirmation endIf
if clinician.role is MD then show iForm Observation to Inpatient endIf 

The problem is that the Observation to Inpatient iform is looking for an order that was placed in the Patient Status Confirmation iform which has not displayed in the ADCVANDISML yet. I have tried  getting the order status, the UI, and they are both for the old order. I have also tried to exit the exit check if they place the correct combination of order using @EXITCONFIRM, but it will not exit and keeps going to the second iform. I amsuing existing VGR files (from previous builder), and they are below. 

Please feel free to comment or make suggestions!

Patient Status Confirmation (Originally a Dr. Pratt iform)
#Initializations 
INIT,SET,LOCAL,orderstring,TO,
INIT,MAP,LOCAL,patient_name,TO,patient.name
INIT,MAP,LOCAL,patient_unit,TO,patient.unit
INIT,SET,LOCAL,selstatus1,TO,
INIT,SET,LOCAL,selconfirm1,TO,
INIT,SET,RADIO,status,TO,
INIT,SET,hidden,txtStatus,TO,
INIT,SET,SELECT,sf_admit_status,TO,
INIT,SET,SELECT,midnights,TO,
INIT,SET,TEXT,ReasonForAdmissionText,TO,
#
INIT,SET,HIDDEN,_action,TO,
#

INIT,MAP,LOCAL,statusui,TO,get_order.ui.238979.1
INIT,MAP,LOCAL,selstatus1,TO,get_order.4514.238979.1
INIT,MAP,LOCAL,selconfirm1,TO,get_order.24646.238979.1

INIT,LOAD,FORM,,,admitstatus

#Load the page 
INIT,IF,,selconfirm1,EQ,"Yes",THEN
INIT,LOAD_ORDER,,,,"@VGR=exit",AND
INIT,EXIT,ALL

EDIT,IF,,status,EQ,1,THEN,
EDIT,LOAD_ORDER,,,,"@MODIFY_ORDER=UI=`statusui ^^^24646=Yes"

EDIT,IF,,status,EQ,2,AND,
EDIT,IF,,selstatus1,EQ,"Admit As Inpatient",OR
EDIT,IF,,selstatus1,EQ,"ADMIT AS INPATIENT",AND
EDIT,IF,,txtStatus,EQ,"PLACE IN OBSERVATION",THEN
EDIT,LOAD_ORDER,,,,"@DC_ORDER=UI=`statusui",AND
EDIT,LOAD_ORDER,,,,"@LOAD_ORDER=OIS=238979^^^OOS=0^^^4514=PLACE IN OBSERVATION^^^24591=...^^^24588=...^^^24646=Yes",AND
EDIT,LOAD_ORDER,,,,"@LOAD_ORDER=OIS=215916^^^OOS=0^^^p=ROUTINE^^^f=ONCE^^^4436=Other...Please type in comments\^^^c=I disagree with patient status of `selstatus1 ",AND
EDIT,LOAD_ORDER,,,,"@LOAD_ORDER=OIS=12006152^^^OOS=0@VGR=exit" 

EDIT,IF,,status,EQ,2,AND,
EDIT,IF,,selstatus1,EQ,"Place in Observation",OR
EDIT,IF,,selstatus1,EQ,"PLACE IN OBSERVATION",AND
EDIT,IF,,txtStatus,EQ,"ADMIT AS INPATIENT",THEN
EDIT,LOAD_ORDER,,,,"@DC_ORDER=UI=`statusui",AND
EDIT,LOAD_ORDER,,,,"@LOAD_ORDER=OIS=238979^^^OOS=0^^^4514=ADMIT AS INPATIENT^^^24591=`midnights^^^24588=`ReasonForAdmissionText^^^24646=Yes",AND
EDIT,LOAD_ORDER,,,,"@LOAD_ORDER=OIS=12006152^^^OOS=0@VGR=exit" 

EDIT,IF,,status,EQ,"defer",THEN,
EDIT,LOAD_ORDER,,,,"@LOAD_ORDER=OIS=239570"


EDIT,EXIT,ALL

Observation to Inpatient iform
#Initializations 
INIT,SET,LOCAL,orderstring,TO,
INIT,MAP,LOCAL,patient_name,TO,patient.name
INIT,MAP,LOCAL,patient_unit,TO,patient.unit
INIT,SET,LOCAL,patientstatusorder,TO,
INIT,SET,LOCAL,statusui,TO,
INIT,SET,LOCAL,selstatus1,TO,
INIT,SET,LOCAL,selconfirm1,TO,
INIT,SET,RADIO,status,TO,

INIT,SET,SELECT,sf_admit_status,TO,
INIT,SET,SELECT,midnights,TO,
INIT,SET,TEXT,ReasonForAdmissionText,TO,
INIT,MAP,LOCAL,patientstatusorder,TO,get_order.status.238979.1
INIT,MAP,LOCAL,statusui,TO,get_order.ui.238979.1
INIT,MAP,LOCAL,selstatus1,TO,get_order.4514.238979.1
INIT,MAP,LOCAL,selconfirm1,TO,get_order.24646.238979.1
INIT,MAP,LOCAL,orderdate,TO,get_order.date.238979.1
INIT,SET,text,orderstart,TO,orderdate
INIT,LOAD,FORM,,,observationadmitstatus

#Load the page 
INIT,IF,,selconfirm1,EQ,"Yes",AND
INIT,IF,,selstatus1,EQ,"ADMIT AS INPATIENT",OR
INIT,IF,,selstatus1,EQ,"Admit As Inpatient",THEN
INIT,LOAD_ORDER,,,,"@EXITCHECK",AND
INIT,EXIT,ALL

EDIT,IF,,status,EQ,2,THEN,
EDIT,LOAD_ORDER,,,,"@LOAD_ORDER=OIS=238979^^^OOS=0^^^4514=ADMIT AS INPATIENT^^^24591=`midnights^^^24588=`ReasonForAdmissionText^^^24646=Yes",AND
EDIT,LOAD_ORDER,,,,"@DC_ORDER=UI=`statusui",AND 
EDIT,LOAD_ORDER,,,,"@LOAD_ORDER=OIS=239570@VGR=exit"

EDIT,IF,,status,EQ,"defer",THEN,
EDIT,LOAD_ORDER,,,,"@LOAD_ORDER=OIS=239570@VGR=exit"


EDIT,EXIT,ALL



Michael Hudson

unread,
Feb 4, 2015, 3:21:27 PM2/4/15
to heo-i...@googlegroups.com
I have fixed it, so no worries guys!!!

--
You received this message because you are subscribed to the Google Groups "HEO iForms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to heo-iforms+...@googlegroups.com.
To post to this group, send email to heo-i...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/heo-iforms/d546560f-c117-4d91-b949-9b28b48fa0a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Michael Burrows

unread,
Feb 5, 2015, 2:14:52 PM2/5/15
to heo-i...@googlegroups.com
Can you tell us how you got it fixed?

I have a similar problem, I think... I have an iForm that does not finish placing the orders when the form is closed. After the form is closed, I usually have to hit enter or click something else to get the order to post to the ADCVAANDISML side before I can do anything else.

Thanks,

Mike

Michael Hudson

unread,
Feb 7, 2015, 4:15:31 PM2/7/15
to heo-i...@googlegroups.com
I had the second iform place the spacer order(there is more on that order in the forum), regardless of what the end user input and it forced the exit check to pause to process the order.

Michael Hudson

unread,
Feb 7, 2015, 4:15:58 PM2/7/15
to heo-i...@googlegroups.com
And then, trashed the process and built it out in one iform! Ha! Never fails! :)
Reply all
Reply to author
Forward
0 new messages