Hi,
I want to customize the encounter form to track patients’ pregnancy. I created a table for weeks pregnant, and added a column for weeks pregnant to the forms_encounter table. Editing common.php I am able to create a drop down menu, but I can’t get the menu to edit the column in forms_encounter.
I don’t really have much coding experience, so I’m trying to use the “visit category” field as a template. My question is why does the visit category PHP edit the cat_id field, but I can’t pregnancy field to save changes?
Here’s the code:
Are you able to get your changes on github? This makes it much easier for us to review the code and even test it out.
It looks like you are missing the part where the choice is written to the sql table. For example, here is the code for visit category:
Also not seeing the select tag code for the selectors.