Is there a way in GE or VFE to send a flag to a specific person when a certain appointment has been made?
I would like to have a flag sent to the nurse/provider when a pre-op appointment has been made so the nurse has enough time to gather appropriate information.
Thank you in advance for you time.
In theory, it could be done with a trigger. But it would need to be done very carefully and tested very thoroughly. Basically, you'd put an AFTER INSERT trigger on the Appointments table that looks at the details of the appointment, and if they conform to your criteria, creates a record in the FLAG table with the required information.
The questions I would have if this task were presented to me would be:
- How do I identify a pre-op appointment? I'm guessing you'd use Appointment.ApptTypeId, but you need to know the specifics.
- How do you know who the recipient of the flag should be?
- Who is the flag meant to be from? You're going to have to fill in the FLAG.FROMUSER field with something.
I can help you take it from there if you want to pursue this idea. Just be careful with triggers. Make sure they're documented. Make sure your support team knows you've made a change in this area, and exactly what the change is, so that if you mess something up and users start seeing error messages, it won't be a complete mystery where they're coming from. And make sure you know how to disable the trigger if you need to.