This patch allows greater control over access and display order of encounter forms.
Patch fetches the ACO and display order from optional list 'formACL'. This list is constructed as follows :
ID => formdir name (e.g. newpatient, vitals, LBFxxx etc)
Title => ACO list values (e.g. relaxed)
Order => Encounter forms order
If the list is absent, current logic continues.
More logical place for this function is the registry table however it does not currently handle the LBFs.
Also needs this patch with SQL updates to transfer currently hard-coded form names - sports_fitness and podiatry.
If there is consensus, all other forms in standard release can be added here.
See a related item and discussion here:
https://sourceforge.net/p/openemr/discussion/202505/thread/2b1238f9/#9e2f/cc82/81e0/9791
Came across this old thread during an update. Unifying registry and LBFs is much bigger project that should fold LBFs into registry with ability to specify rendering engine for each form. Unfortunately such a project has very little apparent benefit for any paying customer. For time being we will maintain this as non-standard feature. Thx.