iupui-soic / openemr

The most popular open source electronic health records and medical practice management solution.
https://open-emr.org/
GNU General Public License v3.0
0 stars 2 forks source link

Plan Already in list_options after 10 decision support plans #12

Closed sunbiz closed 3 months ago

sunbiz commented 3 months ago

Describe the bug

Adding plans after 10_plan in CDR fails with the error message "Error in adding new plan." There is more detail in the JavaScript console "Plan Already in list_options". 10_plan is considered to be lower than 9_plan because of the way the SQL query is written in generatePlanID(). And since the last 10_plan already exists it gives that error.

To Reproduce

Steps to reproduce the behavior:

  1. From Admin -> Practice -> Rules
  2. Plan -> Go
  3. Create 10 new custom plans
  4. Additional plan creation fails with the error

Expected behavior

It should be possible to create as many plans as possible.

Client configuration

sunbiz commented 3 months ago

@KeerthikaSunchu, Thank you for fixing the issue quickly!! Closing as fixed!