Expand All as default in Encounter

I would prefer that the default behavior for the encounter form be “Expand All”. I have looked in settings and I am not seeing anything there. Is this something I will need to code in?

Is this a layout based form?

Duh now I see what you meant, sorry. I don’t remember if there was an option for that but I think at on time there was. Without looking at code, I’m not sure. I’ll take a quick look tho…

What I am seeing is in

openemr/interface/patient_file/encounter/forms.php

at line 1056 I changed

        echo "style='display:" . ($divnos == 1 ? 'block' : 'none') . "'>";

to

        echo "style='display:" . ($divnos == 1 ? 'block' : 'block') . "'>";

And this did the trick.

Yep, looks to be hard coded collapsed. If changed, it really should be a user specific default that persists instead of a global. I don’t have time at the moment to do this but someone might be willing to take it up.