penguin8r wrote on Friday, April 13, 2012:
System was previously running version 4.0.0, upgraded to 4.1.0, then applied patch 9.
Now, when attempting to Add Medical Problem, receive the following SQL insert error:
ERROR: insert failed: INSERT INTO lists ( date, pid, type, title, activity, comments, begdate, enddate, returndate, diagnosis, occurrence, classification, referredby, user, groupname, outcome, destination, reinjury_id, injury_grade, injury_part, injury_type, reaction ) VALUES ( NOW(), ‘1098’, ‘medical_problem’, ‘asthma’, 1, ‘’, ‘2012-04-11’, NULL, NULL, 'ICD9:493.82 ', ‘1’, ‘0’, ‘’, ‘’, ‘’, ‘5’, ‘’, ‘0’, ‘’, ‘’, ‘’, ‘’ )
It appears that there is no field named “reaction” in the lists table in version <=4.0.0, it appears in the create tables routine for version 4.1, but it’s not in the 4.0.0 to 4.1.0 SQL upgrade routine.
Once you insert the field, all is well. Just wanted to put this out there in case anyone else does an update & runs into this.