Dear OpenDental,
I would like to know why ScheduleProcedure automation cannot be used for planned appointment (see the code below). Is it possible to fire the trigger when creating planned appointments?
Thanks
M
if(isCreate) {//new appointment (not planned) is being added to the schedule from the pinboard, trigger ScheduleProcedure automation
List<string> procCodes=procsForSingleApt.Select(x => ProcedureCodes.GetProcCode(x.CodeNum).ProcCode).ToList();
AutomationL.Trigger(AutomationTrigger.ScheduleProcedure,procCodes,aptCur.PatNum);
}
Why no ScheduleProcedure automation for planned appointment
Re: Why no ScheduleProcedure automation for planned appointm
I'll look into this and see if I can find an answer.
Re: Why no ScheduleProcedure automation for planned appointm
I would guess planned procedure is not scheduled procedure, although it allows to create new appointment. Not sure the business rule for that but simple enough to edit the code direction.
I have request a hook for that in the other post so it won’t affect OpenDental automation rule.
I have request a hook for that in the other post so it won’t affect OpenDental automation rule.
MOpenSoft
info@mopensoft.com
info@mopensoft.com
Re: Why no ScheduleProcedure automation for planned appointm
After talking with the engineer who originally wrote this feature, we decided that it is a bug that the ScheduleProcedure automation does not happen when placing a planned appointment on the schedule. I will get this fixed and backported soon.
Re: Why no ScheduleProcedure automation for planned appointm
Fixed and will be released in 18.1.23: "Placing a planned appt on the schedule did not trigger the ScheduleProcedure automation"