good morning. I’ve fed my master source code (git fetch… and git pull…) which seems to have bought in the latest questionnaire code, thanks.
sadly the ‘edit’ bug seems quite persistant now. I can sometimes edit previous filled in instances of the questionnaire, but when I filled in a new instance (to test modifictions) and i try to ‘edit’ it, i get the screen showing nothing, together with php warnings - as follows
[Mon Jan 16 11:09:38.499824 2023] [php:warn] [pid 37] [client 172.19.0.1:35490] PHP Warning: Undefined variable $q_list in /var/
www/localhost/htdocs/openemr/interface/forms/questionnaire_assessments/questionnaire_assessments.php on line 378, referer: http:/
/localhost:8300/interface/patient_file/encounter/encounter_top.php
[Mon Jan 16 11:09:38.499836 2023] [php:warn] [pid 37] [client 172.19.0.1:35490] PHP Warning: foreach() argument must be of type
array|object, null given in /var/www/localhost/htdocs/openemr/interface/forms/questionnaire_assessments/questionnaire_assessments
.php on line 378, referer: http://localhost:8300/interface/patient_file/encounter/encounter_top.php
ruth@localhost:~/software/OpenEMR/openemr/docker/development-easy>
this is quite persistent with existing patients. but when i created a new patient and filled in the questionnaire for them, then i could ‘edit’ successfully one time. when I tried to ‘edit’ a second time the bug manifested.
this makes working with questionnaires quite difficult, especially as the summary in the encounter pane does not display subordinate questions in a group (even when no skip logic is applied) so the only way to check these answers would be to go in and edit (or for developers look at the record in the db!!)
may i check: when linkIds are set . My LinkIds have the format <no.no.no…> where the text indicates a group of questions, e.g. medic-1 and the nos are the sub questions, e.g. medic-1-1, medic-1-2, medic-1-2-1. In the same form i have allergies-1 and allergies-1-1, with the assumption the different groups themselves don’t need numeric hierarchy?
when you said earlier (message 40 11th jan) that the form would still not work does that include for subordinate questions? i had assumed this would be so for skip logic questions only.
so if you’d like to see an example without skip logic with the current questionnaire form
TIMEDASS V.1.2.R4.json (18.2 KB)
filled in as shown here (medications, indications and quantity)
the encounter display is only medications
thanks