Special Characters in VGR

149 views
Skip to first unread message

Scott Morris FMC

unread,
Jul 20, 2012, 11:16:13 AM7/20/12
to heo-i...@googlegroups.com
Does anyone have a comprehensive list of the characters that don't work with VGR?  I know that if someone places a percent sign (%) in a text field and it gets mapped via VGR, it stops the order string without throwing any kind of error.  This can be particularly dangerous if you concatenate a number of orders after the %, the user thinks that they've ordered something, but it never gets placed.

Scott Morris FMC

unread,
Jul 20, 2012, 12:09:01 PM7/20/12
to heo-i...@googlegroups.com
By the way, we tested the percent sign specifically and it seems to work just fine if the iForm is a "Standard iForm" but not when it's mapped via VGR.

Mark Socks

unread,
Aug 1, 2012, 7:48:46 AM8/1/12
to heo-i...@googlegroups.com
Oh my gosh, thank you! I have had 3 or 4 cases in the past few months where orders suddenly stopped after the first few orders. I bet that this is what happened.
Strangely, it works fine if you have the VGR add a % into the order string. It must have something to do with reading the field.

I have also run into issues with ` (unsurprisingly). On one version of HEO, various characters broke the playback, including the bar "|"

Scott Morris FMC

unread,
Aug 1, 2012, 11:57:38 AM8/1/12
to heo-i...@googlegroups.com
Ok, so our running list is currently %, `, and |.  Has anyone else run across any others?

I suppose we could just do some unit testing and find out, but I was hoping that someone had already run through those motions.

Russ Garlow

unread,
Aug 1, 2012, 12:32:08 PM8/1/12
to heo-i...@googlegroups.com
I've had problems with < and > but I haven't had a chance to really test the conditions in which that causes a problem.

Scott Morris FMC

unread,
Aug 3, 2012, 4:29:57 PM8/3/12
to heo-i...@googlegroups.com
From the [heo_group] Yahoo! Group, I got a reply from Tom Wessel:

From: ***@***.com On Behalf Of Tom Wessel
Sent: Thursday, August 02, 2012 4:33 PM
To: ***@***.com
Subject: RE: [heo_group] Special Characters in VGR

  
I believe that these are the reserved characters for HEO that a user needs to avoid:
 
%  +  @  \  `  ~  or  &
 
However, you can capture these as values (e.g. frequency = "AM+PM") by substituting the hexadecimal code for the character.  For example, you would represent AM+PM as "AM%2BPM" where %2B is the hexadecimal code for the .  This workaround works for VGR iForms.  I can't speak for standard iForms.

__________________________________
Tom Wessel, MD
CMIO
Spartanburg Regional Healthcare System
Spartanburg, SC


From my testing of these particular characters:
  • % cuts off the rest of the string with no error
  • + seems to just remove the plus but keep text on either side 
  • @ seems to work
  • \ seems to work
  • ` throws an error, with or without a word directly after it. I'd assume that you could conceivably type `myVariableName and have the VGR parser interpret it
  • ~ seems to add a line break; I haven't tested to see whether it gets sent with line breaks to the other systems
  • & seems to cut off the rest of the string, much like %
I also did test his suggestion to use the URL codes and those do seem to work, even though they include the % sign.

Russ Garlow

unread,
Sep 18, 2012, 10:47:31 AM9/18/12
to heo-i...@googlegroups.com
I tried using &#37 ; for the percent sign in my VGR and it shows up right on the iForm and in HEO, but when it crosses to Care Organizer it shows literal.

Scott Morris FMC

unread,
Sep 18, 2012, 10:50:10 AM9/18/12
to heo-i...@googlegroups.com
Try using %25 instead of &#37 and let me know if that works.

Russ Garlow

unread,
Sep 18, 2012, 11:05:43 AM9/18/12
to heo-i...@googlegroups.com
Shows up literal in HEO and Care Oganizer. Doesn't stop the order like a lone % does though.
Reply all
Reply to author
Forward
0 new messages