I am trying to produce a quick text which will indicated the next appointment that the patient has scheduled with a specific Doctor. The quick text that I produced below nonspecifically finds the next scheduled appointment for the patient in the system. How would I refine the quick text so that it specifically indicates when the patient has their next scheduled appointment with a specific Doctor. (i.e. – pick out the next scheduled appointment where the provider is "")
and return to the office for your next appointment on {IF APPT_NEXT()="" THEN "NO APPOINTMENT SCHEDULED" ELSE global apptinfo = getfield (APPT_NEXT(),",","") apptinfo[1] + " at " + apptinfo[2] ENDIF}.
Thank you!
If you find an answer to this one ... I am also interested. Thanks so much.
If you add apptinfo[5] and apptinfo[6] to this function, it should bring in last name and first name of resource/provider respectively. You could then get fancy and add a match function to only show the appointments with a certain provider. Our providers requested they prefer to see any upcoming appts regardless of who the patient was scheduled to see.
Hope this helps.
If I remember correctly, EMR users may only get 4 fields from APPT_NEXT while CPS will get 6 fields (including those two).
Another thought, the 3rd field is the the appointment type. We use different appt types depending on who is being scheduled. Thus, say you use "Long" and "Short" only for doctors, then instead of trying to match on an ever-changing list of names you could match only on the couple of appointment types used with doctors.
We are on EMR 9.8. We often schedule appointments for the next year when patients come in for a comprehensive visit. For example, an uncontrolled diabetic could be scheduled every three months for the next 12 months.
Is there a quick text like this that will show all upcoming visits, or all upcoming visits for a specific doctor? APPT_BY_STATUS does not work because of many old visits on the schedule that were never marked as arrived.
Thanks. Jon