I'm new on VFE and I am attempting to add the Visit type to our note, what I'm trying to get is if the current appointment was created for a new or established patient,
I tried APPTS_BY_STATUS("STATUS","FULL") but it gives me all the appointments and not the current.
I was wondering if there's a MEL expression or other way to only get the appt type
Thanks in advance for any assistance.
Next Appointment: {APPT_NEXT()} Last Appointment: {APPT_PRIOR()}
Appointments by status allows you to choose an option such as scheduled, canceled, no show, arrived, etc. This code {APPTS_BY_STATUS("no show")} will list all appointments with a status of no show. But just the date and time. If you want the provider, loc,etc then use {APPTS_BY_STATUS("no show","FULL")}
You probably want {APPTS_BY_STATUS("scheduled","FULL")}
If you want just the appointment type for the visit linked to the document you can use this -{find("_ApptType","Name","ApptTypeID",find("_PatientAppointments","ApptTypeID","AppointmentsID",find("Document","AppointmentsID")))}
This is from CPS but I believe its the sane for cEMR.