I am trying to add a button in VFE that when the user clicks on it a Protocol box open up. I tried doing a Action Button and setting it to RUN PROCESS and just typing the protocol in there.
However, my protocol is in a chart format.
Is there a way to create the document in WORD and then tie it to a button in VFE somehow? I thought about creating a Letter or Handout in GE but the providers would have to print that just to view the protocol. Not a very efficient workflow for them.
Any help is appreciated.
Katie, here is code from a button I did to open a PDF file to a certain page.
{ RUNSHELLOPEN("AcroRd32.exe","/A page=4\ \\\servername\WORKSTA\Illustrations\MCHAT\M-CHATInterview.pdf") }
You could save your chart as a PDF and if you have Adobe Reader installed on your EMR workstations could use code like that to open your PDF.
The /A page=4\ opens it to page 4. You could drop that....
You could do the same thing with a Word document, replacing AcroRd32.exe with Winword.exe if you have Office installed on your EMR workstations.
We are on CPS 12 so I'm not sure if that matters but when I click the button after importing into GE, I get a box on Adobe that says access to this file is denied. I can browse out to the exact path and it opens fine, just not when I click the button in GE.
Here is my code:
{
RUNSHELLOPEN("AcroRd32.exe","\\\data\users\ge centricity\protocols\acog_protocol.pdf")
}
I would run a trace and see what path the code is trying to find. I double up the backslashes or use single forward slashes with the path to get centricity to read it correctly. I have a feeling \p is a special character
So I changed the path. I tried using single forward slashes, double back slashes, etc. I removed the underscore from the pdf file name also. Still no luck. Here's my path now.
Any ideas on the path I placed above?
Try this -
//centpvctx01/Client/bmps/acogprotocol.pdf
I changed the path, it still doesn't work. This it what I get when I click the button I created in GE.
Don't see your error, but is it possible that the Adobe program is not available local to your pc with the AcroRd32.exe program?
For instance, in my case since Adobe is not part of my PC path, I would need to reference it with: "C:\Program Files\Adobe\Reader 11.0\Reader\AcroRd32.exe"
Not sure where Adobe is located for you though.
I think that you are going to need to diagnose this at the PC level - sensing you do not have access to that drive when you shell open.
Manually, I stepped to do this command successfully from the DOS Cmd prompt.
C:\>"C:\Program Files\Adobe\Reader 11.0\Reader\AcroRd32.exe" /n "S:\Scheduling Resources\SOPCopy.pdf"
which causes me to question the comma in the original command in this discussion thread.
The /n causes a new page to be opened.
If I manually try to access this file, it works fine. I gave Everyone access to the shared folder.
Any other thoughts regarding this?
We are at a stand still.
Sounds like the code is fine. My only other guess would be that you are connecting to thin clients using some kind of generic or computer based login to connect and those "users" dont have permission to access that directory. After that I'm out of ideas
Adding on to Michael's comments...
What about modifying your RUNSHELLOPEN to execute the dos cmd.exe program.
That would bring you to a dos window (what users in the 1980's saw, before Windows) and experiment in that window - you may find that the shell did not execute the commands necessary to map or gain access to disk drives and folders that you thought you should have access to.
When done in the cmd.exe window, simply type exit.
On your pc, if you click on the Microsoft world (typically bottom left of screen), a screen will pop-up to run programs. In that bottom space (for search) type in cmd.exe and press return. That is the cmd screen that should open with the Logician RUNSHELLOPEN command.