I have developed form containing more than ten sections and each section contains more than 20 fields. For all these sections I have created one table that has upto 400 columns.
I have included that form at Patient/Client -> Visit forms -> my_form. I have used OpenEMR code methods (functions; viz. getPatientData() ) for accessing patients details based on patient ID ($pid), which is stored in session and also using OpenEMR code method (function; viz getEncounterDateByEncounter()), which retrieves encounter date based on encounter ID ($encounter), which is stored in session from current session.
After multiple submissions of form, $pid and $encounter from session becomes 0 for sometime and again after consecutive submissions of form, we get the correct $pid and $encounter from session
Does anyone has ever come across such kind of scenario? If so, what would be the approach to solve this problem?
I am following below steps for accessing form (I have included my_form in left navigation into left_nav.php)
- Login with OpenEMR (admin - user)
- Go to Patient/Client -> pateints
- Open encounter
- After opening encounter go to Patient/Client -> Visit forms -> my_form.