Page 1 of 1

Automation Event Trigger

Posted: Mon Dec 17, 2018 4:40 am
by pid_user
We are not able to override hook "AutomationL.Trigger_CreateCommlog_start" event for automating our code by new patient's new appt creation(CreateApptNewPat). Please help us to achieve this.
Thank you.

Re: Automation Event Trigger

Posted: Mon Dec 17, 2018 8:14 am
by cmcgehee
Sure, are you trying to override only the Create Commlog action when creating a new patient appointment, or are you trying to override all actions from the new patient appointment trigger?

Re: Automation Event Trigger

Posted: Mon Jan 07, 2019 12:05 am
by pid_user
I am overriding only the CreateCommlog action.

Following two are the main problems we are facing -

* On CreateCommlog event trigger ,which event is triggered(newPatNewAppt/scheduled appt/completed appt) is not known.

* Also, the parameters received such as patnum, aptnum etc on event trigger, AptNum is 0 in case of scheduled and completed appointment and correct aptnum is received only in case of newPatNewApt.

Please resolve the above issues.

We are looking forward for the solution.

Thank you

Re: Automation Event Trigger

Posted: Mon Jan 07, 2019 8:01 am
by cmcgehee
We can create a new hook that includes the trigger type for you. Are there any other parameters you would like us to pass in to the hook?

I'll look into why the AptNum is 0 in certain cases.

Re: Automation Event Trigger

Posted: Mon Jan 07, 2019 8:36 am
by cmcgehee
For each time that I triggered an automation event for the CreateAppt and CreateApptNewPat triggers, the patnum and the aptnum were passed in properly. Can you detail the steps that you took where the aptnum was 0?

Re: Automation Event Trigger

Posted: Mon Jan 07, 2019 8:58 pm
by pid_user
Thanks , If you can pass triggertype in parameteres.
And yes i am getting zero AptNum in scheduled and complete procedcure event.

Re: Automation Event Trigger

Posted: Mon Jan 07, 2019 10:07 pm
by pid_user
Also, with which version of OD you are integrating the hook method?

Re: Automation Event Trigger

Posted: Tue Jan 08, 2019 7:43 am
by cmcgehee
We will implement the hook in 18.4.

The ScheduledProcedure and CompletedProcedure are not designed to pass in the AptNum since they are concerned directly with procedures, not appointments.

Re: Automation Event Trigger

Posted: Wed Jan 09, 2019 7:47 am
by cmcgehee
I have added trigger type to the existing AutomationL.Trigger_CreateCommlog_start hook. It will be available in 18.4.14.

Re: Automation Event Trigger

Posted: Wed Jan 09, 2019 9:15 pm
by mopensoft
Does it change impact the hook created from this post viewtopic.php?f=3&t=6831?

Re: Automation Event Trigger

Posted: Thu Jan 10, 2019 1:39 pm
by cmcgehee
It will not. Our plugin system is designed so that we can add new parameters to an existing hook without affecting other developers who are already using that hook.