Active order Awareness question.

33 views
Skip to first unread message

Jeffrey Rees

unread,
Oct 1, 2014, 9:25:56 AM10/1/14
to heo-i...@googlegroups.com
Hello all -
I am having trouble getting an order to DC if it is a "free text box only" It modifies just fine but when I go to "blank" out the text box the order does not DC. Any suggestions? Here is my VGR:

INIT,SET,LOCAL,ADIUI,TO,
INIT,SET,LOCAL,ADI1,TO,

INIT,MAP,LOCAL,ADIUI,TO,get_order.ui.10014075.1
INIT,MAP,LOCAL,ADI1,TO,get_order.12000091.10014075.1

INIT,IF,,ADIUI,NE,"???",AND
INIT,IF,,ADI1,NE,,THEN
INIT,SET,TEXT,textadditional,TO,ADI1


EDIT,IF,,ADIUI,EQ,"???",AND
EDIT,IF,,textadditional,NE,"",THEN
EDIT,SET,,orderstring,CAT,"@LOAD_ORDER=OIS=10014075^^^OOS=0^^^45=ROUTINE^^^46=CONTIN^^^48=UNTIL DISCONTINUED^^^12000091=`textadditional^^^53=..."

EDIT,IF,,ADIUI,NE,"???",AND
EDIT,IF,,ADI1,NE,textadditional,THEN
EDIT,SET,,orderstring,CAT,"@MODIFY_ORDER=UI=`ADIUI^^^45=ROUTINE^^^46=CONTIN^^^48=UNTIL DISCONTINUED^^^12000091=`textadditional^^^53=..."

EDIT,IF,,ADIUI,NE,"???",AND
EDIT,IF,,textadditional,EQ,"",THEN
EDIT,SET,,orderstring,CAT,"@DC_ORDER=UI=`ADIUI"

Darnell, Charles (WBH)

unread,
Oct 1, 2014, 9:53:58 AM10/1/14
to heo-i...@googlegroups.com

I hide a checkbox. When the value.length of the textfield == 0, then the checkbox is checked. When the checkbox is checked, it DC’s the order.

 

cid:image001.jpg@01CE02AF.CF494160

 

Chuck Darnell RN

CIT Clinical Analyst

Baptist Health Paducah

2501 Kentucky Ave.

Paducah, Ky. 42003

 

270.575.8415 phone

270.415.7767 fax

charles....@bhsi.com

BaptistHealthPaducah.com

 

Confidentiality Notice: This e-mail message, including attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.  

--
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/e3e39c95-dc61-46d4-8425-b8f0565df7c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



This email, facsimile, or letter and any files or attachments transmitted with it contains information that is confidential and proprietary. This information is intended only for the use of the individual(s) and entity(ies) to whom it is addressed. If you are the intended recipient, further disclosures are prohibited without proper authorization. If you are not the intended recipient, any disclosure, copying, printing, or use of this information is strictly prohibited and possibly a violation of federal or state law. If you have received this information in error, please notify Baptist Health immediately at 502-896-3020 or via email to the sender.

TWessel

unread,
Oct 3, 2014, 2:54:47 PM10/3/14
to heo-i...@googlegroups.com
If I am reading your code correctly, the problem could be here:
EDIT,IF,,ADIUI,NE,"???",AND
EDIT,IF,,ADI1,NE,textadditional,THEN 

What happens if AD11 is null and textadditional is undefined?  Maybe you could try this:

(1) Above your code posted above, add:
INIT,SET,TEXT,textadditional,TO,

That should keep your MODIFY_ORDER statement from getting executed when ADI1 is null and textadditional is undefined.

_______________________
Tom Wessel, MD
CMIO
SRHS
Spartanburg, SC
Reply all
Reply to author
Forward
0 new messages