Is this symbol bugged in a quicktext? Works fine from a button or even a text compnent, but in a quicktext when enter nothing happens. I ran the MEL trace of it and it's throwing a NULL.
Any ideas? Thanks in advance.
I'm thinking it isn't going to work in a quick text for you. I learned a couple of things from testing and from the help file. One minor change in your syntax per the help file:
{OPEN_FORM_COMP('Enterprise\IM','HPI')}
The name of the form is a separate argument from the path. I tried using the command in a quick text and also got a null back. The help file says you can use it in a quick text but it also says:
when to evaluate
When Inserted in Note, on clicking an action button
My thinking is that even though it says that you can use it in a quick text you really can't. It's tied to the button.
Brad
Not a defect. Unfortunately, the ADD_FORM_COMP cannot be used in quick text. Reviewing the comment for the data symbol in the EMR help file confirms this.
The good news is that there is a quick text version that comes close - INSERT_FORM_COMP()
This symbol was written specifically for quick text utilization.
Unfortunately, you cannot specify where in the note to insert it, so the user will need to be aware that the form will insert where their cursor is. Sadly, this means that it cannot/should not be used inside an encounter form and must be used within the update (chart note) itself.
Quick Text is a fickle friend. It has a unique processing method and its connections to the user and service code layers is spotty. Unfortunately, both of these quirks render several data symbols unusable via quick text.
So I did try the quicktext to insert a INSERT_TEXT_COMP with the OPEN_FORM_COMP symbol within it and that didn't work but does by just inserting the text component.
So the context in what I'm trying to use this for is when the provider enters into the update with no forms open he wants to tell voice recognition to "open hpi".
EDIT: for the solution ESC can open the form I needed. Lessn learned, sometimes, its the simple things.
I thought about this a little bit more and depending on the workflow/need of your users you could put the same code in a text component and then have the user add the text component to their favorites. They can't open the form via typing, but then can do it with one click.
EDIT: Sorry, I just saw your update. Unfortunately this won't work in your scenario. However, this is handy for forms that staff adds often and has the benefits of saving clicks and also allowing you to place them in certain spots in the visit.