Hi group!
Hoping someone can help me with some code. I am making a Non-Stress Test documentation form for my department. At the bottom of the form, I have two overlapping visability regions which populate based on the OBS term GRAVID. Within each visability region I have 2 sections which allows me to have 2 columns of action buttons. I want each action button to push 2 orders....one for the office visit with the appropriate ICD-10 code (prime vs multigravid pregancy) and the second to bill for the non-stress test with ICD-10 for the reason (IUGR, GDMA, AMA, ect).
Here is where I am having some problems. I am trying to use the Enable/Disable function to disable all the buttons after the user selects one so that they don't push more than one set of orders.
Here is what I have put into the Enable/Disable box:
{match(ORDERS_NEW("list"),59025)>0}
The 59025 represents the first 5 digits of the NST. It's full description is: 59025 Fetal Non-Stress Test."
Do I need to write this as an if/then statement? Do I need to put the entire description in the code?
Thanks for any help!
Try putting the code (59025) within quotation marks.It is technically part of a string, not a number.
I do not think you would need to put it in an if statement, but to find out for sure, create a data box with that as the mel code to populate it and make sure it says true/false depending on the status of the orders.
Thanks for the suggestion rwilliams. Unfortunately, it still didn't work.
Anyone else have any ideas?
I just tried this on a new form of ours and I was able to get it to work. The enable/disable expression for the button looks like this:
{
match(ORDERS_NEW(), "CPT-36415")=0
}
Once I press the button and it orders the procedure, the button becomes greyed out and uncickable.
I think I figured out what your issue is.
ORDERS_NEW("list") has a bug in it. If you have not yet placed an order within the current chart update, it returns a list of every ORDER within the patients chart. You need to switch to ORDERS_NEW() or ORDERS_NEW("comma")
For more information take a look here:
https://centricityusers.com/forum/orders_new-data-symbol-issue/