Why no ScheduleProcedure automation for planned appointment

For users or potential users.
Post Reply
User avatar
mopensoft
Posts: 146
Joined: Tue Dec 04, 2012 3:33 pm
Location: Melbourne, Australia
Contact:

Why no ScheduleProcedure automation for planned appointment

Post by mopensoft »

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);
}
User avatar
cmcgehee
Posts: 711
Joined: Tue Aug 25, 2015 5:06 pm
Location: Salem, Oregon

Re: Why no ScheduleProcedure automation for planned appointm

Post by cmcgehee »

I'll look into this and see if I can find an answer.
Chris McGehee
Open Dental Software
http://www.opendental.com
User avatar
mopensoft
Posts: 146
Joined: Tue Dec 04, 2012 3:33 pm
Location: Melbourne, Australia
Contact:

Re: Why no ScheduleProcedure automation for planned appointm

Post by mopensoft »

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.
User avatar
cmcgehee
Posts: 711
Joined: Tue Aug 25, 2015 5:06 pm
Location: Salem, Oregon

Re: Why no ScheduleProcedure automation for planned appointm

Post by cmcgehee »

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.
Chris McGehee
Open Dental Software
http://www.opendental.com
User avatar
cmcgehee
Posts: 711
Joined: Tue Aug 25, 2015 5:06 pm
Location: Salem, Oregon

Re: Why no ScheduleProcedure automation for planned appointm

Post by cmcgehee »

Fixed and will be released in 18.1.23: "Placing a planned appt on the schedule did not trigger the ScheduleProcedure automation"
Chris McGehee
Open Dental Software
http://www.opendental.com
User avatar
mopensoft
Posts: 146
Joined: Tue Dec 04, 2012 3:33 pm
Location: Melbourne, Australia
Contact:

Re: Why no ScheduleProcedure automation for planned appointm

Post by mopensoft »

:D
Post Reply