I am trying to pull the Order Comments into a different encounter based on the Order's description and status.
Example:
If order description = "Planned Procedure" and status = "admin hold", then display its comments (into a different document than the one used for placing the order).
I looked at "ORDERS_ALL", but I don't know how to pull only a certain piece of information based on the criteria above.
I was hoping to place this logic into a quicktext or text component.
Help will be greatly appreciated!
Thanks!
Version: CEMR 9.5
I would be interested in this as well. I have been trying for years to get the comments to print. I have submitted enhancement requests. According to GE it can't be done.
Basically you would use getfield on the ORDERS_ALL("delimited") to turn it into an array, say yourarray. Loop through the array, testing to see if yourarray[1] == “Planned Procedure” and yourarray[20] == "H" which I think is admin hold (at least it is in the database) and if it is, return yourarray[8] which is comments according to help.