The symbols that return lists of orders (ORDERS_NEW, ORDERS_AFTER, etc) can return the order TYPE (referral, service or test) but do not return any information about whether a test order is Lab, Radiology or Other. It appears that this information is stored only in the ORDERCODES table in the CLASSIFICATION field. However, this information does not appear to be accessible to MEL symbols or functions.
Does anyone know how to determine whether a test order is radiology or lab using MEL? It could be done by looking for a particular CPT range, but I'm wondering whether there is a simpler way.
Maybe someone has a better solution to your problem, however, you can address this issue with the RUNPROCESS() mel function. You can use this to run a query against your database and return text back into CPS to be processed by MEL. It takes a bit of extra coding but in my experience it runs very fast. Dr. Fitzgerald posted a PowerPoint on how to do it with examples that is very helpful if you want to go this route. This thread discusses the topic and might be helpful:
https://centricityusers.com/forum/displaying-fields-stored-in-a-non-cps-database-using-logician-vfe/
Brad
I does not look like you can get classification with MEL. GE added it for MU purposes only a few years ago and probably didn't take the time to do it right. If you open mldefs3.txt from the client directory and search for it, it only appears in the setup objects (used in administration), nothing in the chart.
Over the years I have been extremely frustrated with the MEL limitations in many ways but specifically with orders. I agree with bhoover's recommendation. I posted a product in the marketplace that will do just that.
