Hi,
I want to move the smoking status field (tobacco) from the patient History summary to the Guardian demographics tab, since our patients (a veterinary clinic) do not smoke but the owners (Guardian) do. I changed the form_id column in the layout_options table manually from “HIS” to “DEM”. It used to work in 4.2.0 but not anymore in 5.0.0.
I get an SQL error saying :
ERROR: insert failed: INSERT INTO patient_data SET pid = ' etc.etc.....
Error: Unknown column 'tobacco' in 'field list'
/var/www/openemr/library/patient.inc at 999:sqlInsert
/var/www/openemr/interface/new/new_comprehensive_save.php at 70:updatePatientData(1,Array,1)
Apparently I need to change something. I looked through these files if I could customize them, but have no idea where and what exactly. I’m a vet, not a developer (yet).
How can I do this? Is this easily done, or better leave the field where it is if code change is too complex…
thanks,
Roland, from Germany