Page 1 of 1

Enums

Posted: Tue Jan 07, 2020 12:36 pm
by dcrider
Is there any place in the code where it would be possible to insert our own Enums? For example, we want to add some options to the "TreatPlanType" enum. We will be upgrading to 19.3 on January 18th, so it would be ideal if there was a hook or some other means already in place whereby we can add values to an Enum, but if we have to wait for a hook then we could find a temporary alternate solution.

Re: Enums

Posted: Tue Jan 07, 2020 1:54 pm
by cmcgehee
We have a policy to not modify enums for plugins. What you could do is create a new database table that links to the TreatPlan table. In this table, you could put any custom enum values that you want.

Re: Enums

Posted: Wed Jan 08, 2020 7:53 am
by dcrider
Thank you for the update.