Hello,
I have a question for those who have decided to create dialog applications (Using C++, C#, etc) to use a popups in the EMR to supplement the functionality of the EMR.
I have created a popup using C++ MFC, which works great, but with one exception.
Note: I launch the popup using the RunTextProcess MEL command from a button on a VFE form.
When I select the values on the dialog application and close it, and the VFE form goes to save the selected values to a document variable, the VFE form has a blank space where the dialog application used to be. (The blank space has the same color as the background of the VFE form)
Example:
[caption id="attachment_185937" align="alignnone" width="300"] Dialog Example[/caption]
The outer box is the VFE form, and the inner box is where the dialog is displayed when launched.
One interesting aspect is, if I use the popup dialog a second time, and select the same values to save as the first time, and it assigns the values to a document variable, no blank space results on the VFE form.
So far in this scenario, the only way to get the blank space to go away is to drag the form out of view on the screen and drag it back into view, or close and re-open the form.
If the dialog isn't displayed on top of the VFE form, and I select values, no blank space occurs.
Does anyone have any suggestions regarding why the blank space is occurring when using custom dialog applications and they are displayed on top of VFE forms, and the return values are saved to document variables?
I've seen others post that they have created some dialog applications, So I'm hoping perhaps others may have figured out the solution to this issue.
Thanks in advance!
It looks like the Centricity GUI isn't getting refreshed. You may need something to run and force it to refresh. You could maybe try executing OPEN_FORM_COMP("Path\To\Physical Exam") after you finish pulling your data back across.
Thanks Mike, this was a potential workaround.
It's a bit clunky as the whole form quickly flashes, but its better than a blank space on the form.
Some notes for anyone else that reads this post.
In ended up changing the popup code to hide the window, and then close the application after a 850 ms delay. The delay isn't too noticeable, and by doing it this way, the form doesn't flash, and the blank space doesn't occur. It's not a permanent fix, but another workaround.
Side note: Our EMR clients are hosted on Citrix servers, so that might have some factor in this