I am attempting to incorporate a URL link in the text translated version of a document. I know that these documents are stored in an RTF format which allows URLs to be embedded with the following syntax (see example):
{\field{\*\fldinst HYPERLINK "http://www.google.com/"}{\fldrslt http://www.google.com}}
Of course, if something like this gets included in the document, the text translator will convert it explicitly. Also, when you insert a standard URL in the text translation of an HTML form, the text translator will not convert it to an RTF version of a clickable link.
Has anyone figured out how to include a clickable URL in a document that has been translated by Centricity?
Thanks,
Greg
Our URLs are linked as attachments. Typically we get them via HL7, but I did a bit of testing with the ADD_ATTACHMENT symbol.
I mapped .test to {ADD_ATTACHMENT ("http://google.com","Google")} and was able to add the URL as an external attachment. Clicking on the attachment button then opens the URL. Maybe that would work for you?
If you find a way to embed a link in the document text itself, I'd also like to know how to do it.
-dp
That works for most websites, but unfortunately the CPS web browser is not supported by the particular URL I'm trying to link to. The hosting website identifies the CPS web browser as an IE 10 variant and redirects you to a page saying the browser is unsupported. I'm unaware of a way to force Centricity to open up URL attachments with a different browser; otherwise, this would be a viable option.
I am not sure if this will help, but we have a button on a form to launch a website
{RUNPROCESS("iexplore.exe","http://www.google.com","","")}
I am thinking that if you have Chrome installed on the server and changed the iexplore.exe to chrome.exe that the URL should launch in Chrome. ( I don't have chrome installed in our DEV environment to test)
Not sure if a runprocess will work in what you are try to accomplish.
Brian
Yes, I am aware that you can launch a specific web browser using the RUNPROCESS() command. I've actually used this strategy in the past to launch a Chrome session incognito. Unfortunately however, I need to provide seamless access to website content from a signed document. I suspect there will be better options once version 20 of CPS is released because it is supposed to be based on Chromium and not IE. Regardless, I will vote up your response so that others are aware of the option you presented.
Thanks for everyone's input.
Hi Greg,
One of the many dreams I have been chasing. Unfortunately, while Centricity does utilize RTF in documents, it is a limited version of it. I suspect that at the time of it's creation, URLs were not part of the specification or they were omitted for stability/security sake. As far as I have found, the EMR simply will not support working links in the text translation.
I don't know if this would work for you since it is a rather fundamental change, but I have this blurb in my documentation:
- C:\Program Files\Centricity Practice Solution 12\Client\mlsetvar.txt -- Contains many variables defining conditions in the chart module (ml.exe).
- _BrowserMode=0 //0 = use the CPSBrowser, any other, use ShellExecuteEx to open the default browser
-dp
Yeah...CPS is so 1990's in its presentation of data. 🙂
Hope you are doing well sir!
Eureka! That worked. Modifying the mlsetvar.txt file which is located in the CPS root directory in the Client folder allows you to open external attachments with a default browser. I changed the value from 0 to 1. See screen clip below: Thank you for your ninja-like research!