fkasmani wrote on Monday, February 04, 2013:
So I added some 2 new groups under the Demographics layout and now when I add or modify and patient records, it just ends with the following errors:
When adding a new patient:
ERROR: insert failed: INSERT INTO patient_data SET pid = '2', date = NOW(), `title` = 'Mr.', `fname` = 'New', `mname` = '', `lname` = 'Patient', `pubpid` = '2', `DOB` = '1992-04-10', `sex` = 'Male', `ss` = '', `drivers_license` = '', `status` = '', `genericname1` = '', `genericval1` = '', `genericname2` = '', `genericval2` = '', `street` = '', `city` = '', `state` = '', `postal_code` = '', `country_code` = '', `mothersname` = '', `guardiansname` = '', `contact_relationship` = '', `phone_contact` = '', `phone_home` = '', `phone_biz` = '', `phone_cell` = '', `email` = '', `providerID` = '', `ref_providerID` = '', `pharmacy_id` = '0', `hipaa_notice` = '', `hipaa_voice` = '', `hipaa_message` = '', `hipaa_mail` = '', `hipaa_allowsms` = '', `hipaa_allowemail` = '', `allow_imm_reg_use` = '', `allow_imm_info_share` = '', `allow_health_info_ex` = '', `allow_patient_portal` = '', `occupation` = '', `language` = '', `ethnicity` = '', `race` = '', `financial_review` = '', `family_size` = '', `monthly_income` = '', `homeless` = '', `interpretter` = '', `migrantseasonal` = '', `referral_source` = '', `vfc` = '', `deceased_date` = '', `deceased_reason` = '', `vision` = '', `visionvnre` = '', `visionvnle` = '', `visionvnbino` = '', `visionnrvn` = '', `visionnrvnle` = '', `visionnrvnbino` = '', `visionphvnre` = '', `visionphvnle` = '', `visionphvnbino` = '', `visionipdre` = '', `visionipdle` = '', `visionipdbino` = '', `prepldrxgap` = '', `oldrx` = '', `oldrxre` = '', `oldrxrevn` = '', `oldrxresph` = '', `oldrxrecyl` = '', `oldrxreaxis` = '', `oldrxreadd` = '', `oldrxrenvn` = '', `oldrxle` = '', `oldrxlevn` = '', `oldrxlesph` = '', `oldrxlecyl` = '', `oldrxleaxis` = '', `oldrxleadd` = '', `oldrxlenvn` = '', `prelensgap` = '', `lens` = '', `frame` = '', `from` = '', `preautoregap` = '', `autore` = '', `autoresph` = '', `autorecyl` = '', `autoreaxis` = '', `autoreadd` = '', `autole` = '', `autolesph` = '', `autolecyl` = '', `autoleaxis` = '', `autoleadd` = '', `prerightgap` = '', `right` = '', `rightdist` = '', `rightdistvn` = '', `rightdistsph` = '', `rightdistcyl` = '', `rightdistaxis` = '', `rightdistprism` = '', `rightdistdir` = '', `rightadd` = '', `rightnear` = '', `rightnearvn` = '', `rightnearsph` = '', `rightnearcyl` = '', `rightnearaxis` = '', `preleftgap` = '', `left` = '', `leftdist` = '', `leftdistvn` = '', `leftdistsph` = '', `leftdistcyl` = '', `leftdistaxis` = '', `leftdistprism` = '', `leftdistdir` = '', `leftadd` = '', `leftnear` = '', `leftnearvn` = '', `leftnearsph` = '', `leftnearcyl` = '', `leftnearaxis` = '', `note` = '', `lensmaterial` = '', `type` = '', `suggested` = '', `followup` = '', `frame2` = '', `optometr` = '', `salesman` = '', `preheadinggap` = '', `headingright` = '', `headingleft` = '', `vnright` = '', `clvngap` = '', `vnleft` = '', `clsphright` = '', `clsphgap` = '', `clsphleft` = '', `clcylright` = '', `clcylgap` = '', `clcylleft` = '', `claxisright` = '', `claxisgap` = '', `claxisleft` = '', `cltyperight` = '', `cltypegap` = '', `cltypeleft` = '', `clbrandright` = '1', `clbrandgap` = '', `clbrandleft` = '1', `clcolorright` = '', `clcolorgap` = '', `clcolorleft` = '', `cldiaright` = '', `cldiagap` = '', `cldialeft` = '', `cldisposright` = '', `cldisposgap` = '', `cldisposleft` = '', `clozright` = '', `clozgap` = '', `clozleft` = '', `cldkright` = '', `cldkgap` = '', `cldkleft` = '', `clwaterright` = '', `clwatergap` = '', `clwaterleft` = '', `clbcright` = '', `clbcgap` = '', `clbcleft` = '', `clhzright` = '', `clhzgap` = '', `clhzleft` = '', `clvtright` = '', `clvtgap` = '', `clvtleft` = '', `clnotes1` = '', `clfollowup1` = ''
Error: Unknown column 'right' in 'field list'
When modifying a patient record:
ERROR: query failed: UPDATE patient_data SET date = NOW(), `id` = '1', `title` = '', `fname` = 'Test', `mname` = '', `lname` = 'Patient', `pubpid` = '1', `DOB` = '1990-09-18', `sex` = 'Female', `ss` = '', `drivers_license` = '', `status` = '', `genericname1` = '', `genericval1` = '', `genericname2` = '', `genericval2` = '', `street` = '', `city` = 'Mombasa', `state` = '', `postal_code` = '', `country_code` = '', `mothersname` = '', `guardiansname` = '', `contact_relationship` = '', `phone_contact` = '', `phone_home` = '', `phone_biz` = '', `phone_cell` = '', `email` = '', `providerID` = '', `ref_providerID` = '', `pharmacy_id` = '0', `hipaa_notice` = '', `hipaa_voice` = '', `hipaa_message` = '', `hipaa_mail` = '', `hipaa_allowsms` = '', `hipaa_allowemail` = '', `allow_imm_reg_use` = '', `allow_imm_info_share` = '', `allow_health_info_ex` = '', `allow_patient_portal` = '', `occupation` = '', `language` = '', `ethnicity` = '', `race` = '', `financial_review` = '0000-00-00 00:00:00', `family_size` = '', `monthly_income` = '', `homeless` = '', `interpretter` = '', `migrantseasonal` = '', `referral_source` = '', `vfc` = '', `deceased_date` = '0000-00-00 00:00:00', `deceased_reason` = '', `vision` = '', `visionvnre` = '', `visionvnle` = '', `visionvnbino` = '', `visionnrvn` = '', `visionnrvnle` = '', `visionnrvnbino` = '', `visionphvnre` = '', `visionphvnle` = '', `visionphvnbino` = '', `visionipdre` = '', `visionipdle` = '', `visionipdbino` = '', `prepldrxgap` = '', `oldrx` = '', `oldrxre` = '', `oldrxrevn` = '', `oldrxresph` = '', `oldrxrecyl` = '', `oldrxreaxis` = '', `oldrxreadd` = '', `oldrxrenvn` = '', `oldrxle` = '', `oldrxlevn` = '', `oldrxlesph` = '', `oldrxlecyl` = '', `oldrxleaxis` = '', `oldrxleadd` = '', `oldrxlenvn` = '', `prelensgap` = '', `lens` = '', `frame` = '', `from` = '', `preautoregap` = '', `autore` = '', `autoresph` = '', `autorecyl` = '', `autoreaxis` = '', `autoreadd` = '', `autole` = '', `autolesph` = '', `autolecyl` = '', `autoleaxis` = '', `autoleadd` = '', `prerightgap` = '', `right` = '', `rightdist` = '', `rightdistvn` = '', `rightdistsph` = '', `rightdistcyl` = '', `rightdistaxis` = '', `rightdistprism` = '', `rightdistdir` = '', `rightadd` = '', `rightnear` = '', `rightnearvn` = '', `rightnearsph` = '', `rightnearcyl` = '', `rightnearaxis` = '', `preleftgap` = '', `left` = '', `leftdist` = '', `leftdistvn` = '', `leftdistsph` = '', `leftdistcyl` = '', `leftdistaxis` = '', `leftdistprism` = '', `leftdistdir` = '', `leftadd` = '', `leftnear` = '', `leftnearvn` = '', `leftnearsph` = '', `leftnearcyl` = '', `leftnearaxis` = '', `note` = '', `lensmaterial` = '', `type` = '', `suggested` = '', `followup` = '', `frame2` = '', `optometr` = '', `salesman` = '', `preheadinggap` = '', `headingright` = '', `headingleft` = '', `vnright` = '', `clvngap` = '', `vnleft` = '', `clsphright` = '', `clsphgap` = '', `clsphleft` = '', `clcylright` = '', `clcylgap` = '', `clcylleft` = '', `claxisright` = '', `claxisgap` = '', `claxisleft` = '', `cltyperight` = '', `cltypegap` = '', `cltypeleft` = '', `clbrandright` = '1', `clbrandgap` = '', `clbrandleft` = '1', `clcolorright` = '', `clcolorgap` = '', `clcolorleft` = '', `cldiaright` = '', `cldiagap` = '', `cldialeft` = '', `cldisposright` = '', `cldisposgap` = '', `cldisposleft` = '', `clozright` = '', `clozgap` = '', `clozleft` = '', `cldkright` = '', `cldkgap` = '', `cldkleft` = '', `clwaterright` = '', `clwatergap` = '', `clwaterleft` = '', `clbcright` = '', `clbcgap` = '', `clbcleft` = '', `clhzright` = '', `clhzgap` = '', `clhzleft` = '', `clvtright` = '', `clvtgap` = '', `clvtleft` = '', `clnotes1` = '', `clfollowup1` = '' WHERE id = '1'
Would really appreciate some help on this, pls.
Regards.