Linking VGR Forms

181 views
Skip to first unread message

Joe Stark

unread,
Sep 20, 2012, 12:28:06 PM9/20/12
to heo-i...@googlegroups.com
I think someone said at the Insight Conference that linking iForms can be done, but I am not sure about the syntax. Can you post some example VGR of how to call one VGR from another?

Russ Garlow

unread,
Sep 20, 2012, 12:47:11 PM9/20/12
to heo-i...@googlegroups.com
Joe, I'm not sure it's the only way, but this works.

EDIT,IF,,chestpain,EQ,"true",THEN
EDIT,LOAD_ORDER,,,,"@LOAD_ORDER=OIS=377276^^^OOS=0"

whereas 377276 is an outline with the chest pain iForm order and everything is current valued and "chestpain" is a checkbox on another iForm.

Scott Morris FMC

unread,
Sep 20, 2012, 12:53:47 PM9/20/12
to heo-i...@googlegroups.com
If your second iForm is VGR, you can call it with an @VGR command.

EDIT,LOAD_ORDER,,,,"@VGR=mySecondVGR"

You'll likely do this at the end, and they've allowed for a VGR command to be run on the EXIT command as well, so you might see it like:

EDIT,EXIT,ALL,"@VGR=mySecondVGR"

Hope that helps!

Russ Garlow

unread,
Sep 20, 2012, 12:55:37 PM9/20/12
to
Didn't know you could use the @VGR command that way, that's a much better solution.

Joe Stark

unread,
Sep 20, 2012, 4:21:27 PM9/20/12
to heo-i...@googlegroups.com
Awesome! This is exactly what I was looking for.

Joe Stark

unread,
Sep 21, 2012, 10:44:38 AM9/21/12
to heo-i...@googlegroups.com

I added it to the end of one of my VGR forms, but I am getting the error below. Why am I getting the 3 carrots between the name of my form, afib, and “.vgr” in the error message?


VGR I am using:

EDIT,LOAD_ORDER,,,,"@VGR=afib"
 
 
Error Message:

Scott Morris FMC

unread,
Sep 21, 2012, 10:55:16 AM9/21/12
to heo-i...@googlegroups.com
That's strange. I don't know why it would inject those three carats (^^^) between your VGR file name and the extension.  Have you tried to call the VGR on EXIT or does that not match your process?

Michael Hudson

unread,
Sep 21, 2012, 11:13:18 AM9/21/12
to heo-i...@googlegroups.com
I have never gotten the  EDIT,LOAD_ORDER,,,,"@VGR=afib" to work, I have always concatenated on the end of my order strings or used the "call" function Scott spoke of. I concatenate all my orders so it looks like this:

INIT,SET,LOCAL,orderstring,TO,

EDIT,IF,,cb_iform_transfusion,NE,,THEN
EDIT,SET,LOCAL,orderstring,CAT,"@VGR=transfusion_vcs"

EDIT,LOAD_ORDER,,,,orderstring


This is also the last item in my VGR before EDIT,EXIT,ALL

On Fri, Sep 21, 2012 at 10:55 AM, Scott Morris FMC <scott.r...@gmail.com> wrote:
That's strange. I don't know why it would inject those three carats (^^^) between your VGR file name and the extension.  Have you tried to call the VGR on EXIT or does that not match your process?

--
You received this message because you are subscribed to the Google Groups "HEO iForms" group.
To post to this group, send email to heo-i...@googlegroups.com.
To unsubscribe from this group, send email to heo-iforms+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/heo-iforms/-/apSFTgOM9l0J.

For more options, visit https://groups.google.com/groups/opt_out.
 
 

Russ Garlow

unread,
Sep 21, 2012, 3:44:07 PM9/21/12
to heo-i...@googlegroups.com
This is really odd, I've tried @VGR both ways, using LOAD_ORDER and CAT and both ways I get the same error as Joe

Michael Hudson

unread,
Sep 21, 2012, 3:48:55 PM9/21/12
to heo-i...@googlegroups.com

Is it the only order being placed when used in a CAT? If so, I get the same error, but when placed with another order (lab, rad, nursing,) it places.

On Sep 21, 2012 3:44 PM, "Russ Garlow" <russg...@gmail.com> wrote:
This is really odd, I've tried @VGR both ways, using LOAD_ORDER and CAT and both ways I get the same error as Joe

--
You received this message because you are subscribed to the Google Groups "HEO iForms" group.
To post to this group, send email to heo-i...@googlegroups.com.
To unsubscribe from this group, send email to heo-iforms+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/heo-iforms/-/2SUomQQ8IqwJ.

Russ Garlow

unread,
Sep 21, 2012, 3:54:46 PM9/21/12
to heo-i...@googlegroups.com
Confirmed. If you use CAT AND there is an order BEFORE the @VGR it works.

I don't use CAT, and the page in question is nothing but iForm links so it won't work for me there.

Michael Hudson

unread,
Sep 21, 2012, 4:05:45 PM9/21/12
to heo-i...@googlegroups.com
Russ,

If you use iform tracking orders, you could have the iform place that one order followed by whatever @VGR concatenation and it should work. My last facility used the tracking order so they could easily report on iform useage.

--
You received this message because you are subscribed to the Google Groups "HEO iForms" group.
To post to this group, send email to heo-i...@googlegroups.com.
To unsubscribe from this group, send email to heo-iforms+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/heo-iforms/-/Uat4tIemfOwJ.

C.E. Coleman

unread,
Sep 21, 2012, 4:26:51 PM9/21/12
to heo-i...@googlegroups.com
I am having an issue with this method as well. I have a selector with a page full of buttons that link to other iforms and we cannot seem to get it to call any of the other forms on the selector. It does give an error for the very first one named in the list and cotinues to give that same error for each one, even though they all call different VGRs.
 
I was thinking that maybe I should use a different input, maybe checkbox or radio groups. Right now we are initlizing them as buttons. It seems like a tough nut to crack, though I am positive other people have created iform selectors for specific groups of forms.
 
I also tried the code suggested here, still, no luck. Any advice appreciated.
 
C.E.Coleman

Russ Garlow

unread,
Sep 21, 2012, 4:43:52 PM9/21/12
to heo-i...@googlegroups.com
C.E. That's what I did in the example I'm referring too, we already had the current valued outlines I mentioned above and the page works just fine calling one or more outline OIS. The wonderful thing about using checkboxes on this page, is you can chain launch iForms, firing one after another after another. The docs like that.

Scantron, that's exactly what I did for my test.

too2soon

unread,
Sep 21, 2012, 10:28:20 PM9/21/12
to heo-i...@googlegroups.com
I'm curious as to how you are setting up the html and vgr to fire one right after the other.
 
for example, if I'm placing orders and I need to go from my general admission and I click a box to go to the diet iform AND I click a box to go to a common radiology iForm, they will fire the diet iForm and THEN when the orders are placed from the diet iForm, the radiology iForm will launch?  I've been launching only 1 but didn't know you could fire two or more. 

Russ Garlow

unread,
Sep 24, 2012, 8:39:59 AM9/24/12
to heo-i...@googlegroups.com
too2soon, as I mentioned near the top, I'm using a current valued outline to fire the iForm, then just tying it to a checkbox like any other order. When the page is submitted, any forms that were checked fire off in the order that they appear on the form. So in my case, on the first tab of General Admission I have the nutrition iForm link, check that, second tab have the oxygen admin form, check that, fifth tab iv fluids form, check that. Submit the General Admission iForm, the nutrition iForm pops up, I check everything I want on it, submit, then the oxygen iForm pops up, etc. Works fine. What Scott listed above also works fine in the middle of a set of orders (so long as it's not the first order in the string). Instead of creating a current valued outline, he puts "@VGR=vgriformname" which we tested and it works if you're using order concatenation (putting all of your orders on one page together into one long string), which I don't, so it's not a good fit for me. But either of those solutions are a valid way to launch successive iForms.

Joe Stark

unread,
Sep 25, 2012, 3:20:40 PM9/25/12
to heo-i...@googlegroups.com
The same syntax doesn't work on EXIT.

Scott Morris FMC

unread,
Sep 25, 2012, 3:24:27 PM9/25/12
to heo-i...@googlegroups.com
Since it doesn't seem like things work as expected, I unmarked this topic as having been answered.  Joe, can you paste (at least some of) your current VGR code that's not working?

Joe Stark

unread,
Sep 25, 2012, 4:51:29 PM9/25/12
to heo-i...@googlegroups.com
It does work if you set a facility orderable first in the string. Sorry I had a short circuit between brain and keyboard.

C.E. Coleman

unread,
Oct 1, 2012, 9:35:03 PM10/1/12
to heo-i...@googlegroups.com
I am still having issues getting mine working. We have a page of input buttons that allow docs to choose from a set of iforms. I used some suggestions here and changed to text boxes to allow more than one choice. No orders are being placed from the page. I used the code you posted, initialized my checkboxes as usual and wrote standard load order statements using the @VGR commands.

I also created the load order statements using methods suggested elsewhere here; no luck. Likewise, I couldn't seem to initialize the original input buttons, though I would have thought that would have been simple. Not. It is probable I am missing something here.  Any advice or even a code snippet or two would be mightily appreciated and rewarded heartily with free fizzy lifting drinks at the very next insight.

C. E. Coleman

Russ Garlow

unread,
Oct 2, 2012, 10:46:59 AM10/2/12
to heo-i...@googlegroups.com
C.E. Can you post some examples of what you're trying to use? We've been through several methods of doing the same thing in here, which one are you working with?

C.E. Coleman

unread,
Oct 2, 2012, 10:56:32 AM10/2/12
to heo-i...@googlegroups.com
I initialized my checkboxes  INIT,SET,CHECKBOX,ccu_painform,TO,

These were created, but I commented out because the load order should open the vgr in my opnion:

#EDIT,SET,,ccu_painform,TO,@VGR=ccu_painform

then created a load statement:
EDIT,IF,,ccu_painforml,EQ,”true”,THEN
EDIT,LOAD_ORDER,,,,"@VGR=ccu_painform",AND
EDIT,EXIT,ALL,"@VGR=ccu_painform"

It seemed simple enough, or it should be, but not so much. I'm very new to iforms so I am sure these are shaping up to be pretty basic questions and I appreciate everyone's help.

Michael Hudson

unread,
Oct 2, 2012, 11:29:10 AM10/2/12
to heo-i...@googlegroups.com
I have this working using the following VGR:

EDIT,IF,,submit_btn,EQ,"submit",THEN
EDIT,SET,LOCAL,orderstring,CAT,"@LOAD_ORDER=OIS=25987^^^OOS=0" (this is an iform tracking order current valued)

EDIT,IF,,cb_iform_common_meds,NE,,AND
EDIT,IF,,orderstring,NE,,THEN
EDIT,SET,LOCAL,orderstring,CAT,"@VGR=ed_common_meds"

EDIT,LOAD_ORDER,,,,orderstring
EDIT,EXIT,ALL


--
You received this message because you are subscribed to the Google Groups "HEO iForms" group.
To post to this group, send email to heo-i...@googlegroups.com.
To unsubscribe from this group, send email to heo-iforms+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/heo-iforms/-/b1hv2Z1YCQAJ.

Scott Morris FMC

unread,
Oct 2, 2012, 11:41:56 AM10/2/12
to heo-i...@googlegroups.com
Like many functions in VGR (whether it's documented or not), it interprets things differently depending on whether you put it in operand1 vs operand2.  That is to say, when doing a LOAD_ORDER command, if you want to load a literal string, it must be in operand1 and if you want to load the contents of a variable, it must be in operand2.

Variable Contents Example:
EDIT,SET,LOCAL,orderstring,TO,"@VGR=ed_common_meds"
EDIT
,LOAD_ORDER,,,,orderstring

Literal String Example:
EDIT,LOAD_ORDER,,"@VGR=ccu_painform"

Notice the difference in the number of commas. Yeah, I know.

C.E. Coleman

unread,
Oct 2, 2012, 1:02:05 PM10/2/12
to heo-i...@googlegroups.com
Thanks for that little tidbit of info, very enlightening and solves a problem.

Scott Morris FMC

unread,
Oct 2, 2012, 2:18:54 PM10/2/12
to heo-i...@googlegroups.com
Hrmm, I may have gotten those backwards.  I was posting from memory; I should really stop that.  Can someone confirm? (I'm in the middle of something else or I'd do it myself).

C.E. Coleman

unread,
Oct 2, 2012, 7:06:39 PM10/2/12
to heo-i...@googlegroups.com
Well, thanks anyway. LOL. I still don't have it working either.

Russ Garlow

unread,
Oct 3, 2012, 8:16:36 AM10/3/12
to
OK, C.E. lets see if we can lick this

You have a page full of checkboxes and you want to chain launch them? or do you only want to fire one at a time with buttons?

unless you want to make outlines for all of your iForms like I have, you must use order concatenation and you must have at least one non-@VGR order FIRST. 

What I think you want will look more like this (excuse the rip off, I'm at home so I'm borrowing from all of your code):

INIT,SET,LOCAL,orderstring,TO,
blah blah blah

EDIT,SET,,orderstring,CAT,"@LOAD_ORDER=OIS=####### (any order)^^^OOS=0"
EDIT
,SET,,orderstring,CAT,"@VGR=ccu_painform"
etc... etc...etc...

EDIT,IF,,submit_btn,EQ,"submit",THEN

EDIT
,LOAD_ORDER,,,,orderstring
EDIT
,EXIT,ALL

see what that does for you and we'll go from there.

C.E. Coleman

unread,
Oct 2, 2012, 9:02:22 PM10/2/12
to heo-i...@googlegroups.com
Yes, we wanted to use buttons originally but for the sake of familiarity I changed them to check boxes, since I am not familiar with what you can and cannot do with buttons in HEO, just yet.

I am going to give this solution a try. I would prefer calling via outline but that wont work in this particular case. We have an entire pile of working iforms ready to go with this selector tool and I just can't seem to get it going.Hopefully I can get it going with your example. I appreciate everyone's very generous help.

On Thursday, September 20, 2012 11:28:06 AM UTC-5, Joe Stark wrote:
I think someone said at the Insight Conference that linking iForms can be done, but I am not sure about the syntax. Can you post some example VGR of how to call one VGR from another?

Russ Garlow

unread,
Oct 3, 2012, 8:59:44 AM10/3/12
to
You really could make the buttons do anything, Script and imagination are all it takes. But for the purposes of the end-users' familiarity, Submit, cancel, restart... those three functions are what they expect to encounter.

Now I recently saw on someone's iForms (Scott, yours maybe?) someone had the submit buttons read something to the effect of...

"Submit orders only"
"Submit orders and launch IV Fluids iForm"
"Submit orders and launch IV Fluids and Resp iForms"

and I thought that was pretty neat, that code might look something like this....

EDIT,SET,,orderstring,CAT,"@LOAD_ORDER=OIS=346875^^^OOS=0^^^127600=DOCTOR HOME PAGE"

.....

EDIT
,IF,,submit1,EQ,"submit",THEN
EDIT
,EXIT,ALL,

EDIT
,IF,,but_test1,EQ,"test1",THEN
EDIT
,SET,,orderstring,CAT,"@VGR=ivfluids",AND
EDIT
,LOAD_ORDER,,,,orderstring,AND
EDIT
,EXIT,ALL

EDIT
,IF,,but_test2,EQ,"test2",THEN
EDIT
,SET,,orderstring,CAT,"@VGR=ivfluids@VGR=resp",AND
EDIT
,LOAD_ORDER,,,,orderstring,AND
EDIT
,EXIT,ALL

And I just ran that, it does work.

Interesting side note on the button ....

<input class="buttons" type="submit" value="test1" name="but_test1"/>

if you do NOT have the quotes around the name... it won't work.

It takes a little effort to build an outline for each (really just build one, make it work, then clone the snot out of it and change the name), but seriously... its so much easier to call the outline here or there rather than using CAT. (Unless you're already using CAT on all your forms of course)


C.E. Coleman

unread,
Oct 24, 2012, 12:40:43 PM10/24/12
to heo-i...@googlegroups.com
I appreciate your help, and will be able to try this as soon as I am finished with the urgent, urgent project I was moved to for now. Of course, it's always urgent. Anyway, as soon as I can even look at this project again to complete it, I will be back to tell you how this worked for us. I was talking to my project leader who thought it was a good solution, as well as building outlines but I will try this first. AS soon as I can  move back to this one. I'll keep you posted and be back with info, thanks.should be able to get back to this in two weeks.
Reply all
Reply to author
Forward
0 new messages