Need help with MEL code that would place date of last office visit of a specific appointment type in Patient Banner. We would like to be able to indicate date of last GYN visit in banner. Anyone know if this is possible?
Thanks in advance.
We have found that there isn't specific MEL for last office visit since we have other documents (phone note for example) that are of the same type as the office visit. What we do (which isn't perfect) is we picked an OBS term that should be completed at each office visit -- chief complaint and pull LASTOBSDATE to get the date. However, sometimes staff forget to do the chief complaint and that throws off the date by a visit.
While I am thinking about it, the following would be the first part of your solution.
Perhaps create a personal QuickText with the following, and see what happens.
{APPTS_BY_STATUS("ARRIVED","FULL")}
I am passing this along because for any patient, you should get a list of arrived visits, including location and provider. Thus, if this does include the department/group you want to filter on, then you could write a loop to process through all the listing. And if the group is not identified, then you may not be able to.
Sample output would be like:
07/27/2015, 4:00 PM, S, Tufts Primary Care Boston, Mickey Mouse, MD
12/03/2015, 10:40 AM, S, Tufts Primary Care Boston, Minnie Mouse, MD
05/10/2016, 2:20 PM, S, Tufts Primary Care Boston, Minnie Mouse, MD
So, what happens when you execute the above?
Using your QuickText I get the following:
08/13/2015, 3:50 PM, New/Peds, Medical, Mickey Mouse, MD
01/06/2016, 1:00 PM, Est Peds, Medical, Minnie Mouse, MD
01/20/2016, 3:20 PM, Est Peds, Medical, Minnie Mouse, MD
09/01/2016, 3:30 PM, AHCCCS est, Medical, Mickey Mouse, MD
Is that what you get at a result with a patient that you know was seen in your targeted clinic (GYN)? Because I did not know if that would be in the 3rd or 4th fields.
Otherwise, you may need to do something with an OBS code that would be accessed (written) during the GYN visit.
Yes, the third field contains the visit type that we would like to target.
OK, if you are seeing the data you wish to select on, then what you want to do is possible. However, it will require programming of MEL. You will need to write additional coding to pass that output to an array, then cycle through the data looking to match on the 3rd field.
I have done this before, and while possible, it can be tricky - especially since one of the fields is a date field.
Perhaps someone has an example of a MEL Array and looping to share?