From 2278498279334a9a4ca339def769b7ac557b5384 Mon Sep 17 00:00:00 2001 From: Satvik Singh <64309880+satvik-tha-god@users.noreply.github.com> Date: Tue, 30 Aug 2022 23:22:13 +0530 Subject: [PATCH] [RaisinBread] Fixed Candidate DoB and Date_registered entries (#8146) Changes entries with negative DATEDIFF > 9 months between DoB and Date_registered from candidate table in RaisinBread data. Resolves #8143 --- raisinbread/RB_files/RB_candidate.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/raisinbread/RB_files/RB_candidate.sql b/raisinbread/RB_files/RB_candidate.sql index f2c633ddd28..20485cf8bb5 100644 --- a/raisinbread/RB_files/RB_candidate.sql +++ b/raisinbread/RB_files/RB_candidate.sql @@ -2,7 +2,7 @@ SET FOREIGN_KEY_CHECKS=0; TRUNCATE TABLE `candidate`; LOCK TABLES `candidate` WRITE; INSERT INTO `candidate` (`ID`, `CandID`, `PSCID`, `ExternalID`, `DoB`, `DoD`, `EDC`, `Sex`, `RegistrationCenterID`, `RegistrationProjectID`, `Ethnicity`, `Active`, `Date_active`, `RegisteredBy`, `UserID`, `Date_registered`, `flagged_caveatemptor`, `flagged_reason`, `flagged_other`, `flagged_other_status`, `Testdate`, `Entity_type`, `ProbandSex`, `ProbandDoB`) VALUES (1015,108671,'scanner',NULL,NULL,NULL,NULL,NULL,2,4,NULL,'Y','2016-03-04',NULL,'NeuroDB::MRI','2016-03-04','false',NULL,NULL,NULL,'2019-07-04 09:42:58','Scanner',NULL,NULL); -INSERT INTO `candidate` (`ID`, `CandID`, `PSCID`, `ExternalID`, `DoB`, `DoD`, `EDC`, `Sex`, `RegistrationCenterID`, `RegistrationProjectID`, `Ethnicity`, `Active`, `Date_active`, `RegisteredBy`, `UserID`, `Date_registered`, `flagged_caveatemptor`, `flagged_reason`, `flagged_other`, `flagged_other_status`, `Testdate`, `Entity_type`, `ProbandSex`, `ProbandDoB`) VALUES (1011,115788,'DCC355',NULL,'2020-01-01',NULL,'2001-01-01','Female',1,1,NULL,'Y','2016-06-08','admin','admin','2016-06-08','false',NULL,NULL,NULL,'2019-06-20 12:10:04','Human',NULL,NULL); +INSERT INTO `candidate` (`ID`, `CandID`, `PSCID`, `ExternalID`, `DoB`, `DoD`, `EDC`, `Sex`, `RegistrationCenterID`, `RegistrationProjectID`, `Ethnicity`, `Active`, `Date_active`, `RegisteredBy`, `UserID`, `Date_registered`, `flagged_caveatemptor`, `flagged_reason`, `flagged_other`, `flagged_other_status`, `Testdate`, `Entity_type`, `ProbandSex`, `ProbandDoB`) VALUES (1011,115788,'DCC355',NULL,'2015-01-01',NULL,'2001-01-01','Female',1,1,NULL,'Y','2016-06-08','admin','admin','2016-06-08','false',NULL,NULL,NULL,'2019-06-20 12:10:04','Human',NULL,NULL); INSERT INTO `candidate` (`ID`, `CandID`, `PSCID`, `ExternalID`, `DoB`, `DoD`, `EDC`, `Sex`, `RegistrationCenterID`, `RegistrationProjectID`, `Ethnicity`, `Active`, `Date_active`, `RegisteredBy`, `UserID`, `Date_registered`, `flagged_caveatemptor`, `flagged_reason`, `flagged_other`, `flagged_other_status`, `Testdate`, `Entity_type`, `ProbandSex`, `ProbandDoB`) VALUES (1005,284119,'scanner',NULL,NULL,NULL,NULL,NULL,1,4,NULL,'Y','2016-02-17',NULL,'NeuroDB::MRI','2016-02-17','false',NULL,NULL,NULL,'2019-07-04 09:42:58','Scanner',NULL,NULL); INSERT INTO `candidate` (`ID`, `CandID`, `PSCID`, `ExternalID`, `DoB`, `DoD`, `EDC`, `Sex`, `RegistrationCenterID`, `RegistrationProjectID`, `Ethnicity`, `Active`, `Date_active`, `RegisteredBy`, `UserID`, `Date_registered`, `flagged_caveatemptor`, `flagged_reason`, `flagged_other`, `flagged_other_status`, `Testdate`, `Entity_type`, `ProbandSex`, `ProbandDoB`) VALUES (1009,288024,'scanner',NULL,NULL,NULL,NULL,NULL,4,4,NULL,'Y','2016-04-18',NULL,'NeuroDB::MRI','2016-04-18','false',NULL,NULL,NULL,'2019-07-04 09:42:58','Scanner',NULL,NULL); INSERT INTO `candidate` (`ID`, `CandID`, `PSCID`, `ExternalID`, `DoB`, `DoD`, `EDC`, `Sex`, `RegistrationCenterID`, `RegistrationProjectID`, `Ethnicity`, `Active`, `Date_active`, `RegisteredBy`, `UserID`, `Date_registered`, `flagged_caveatemptor`, `flagged_reason`, `flagged_other`, `flagged_other_status`, `Testdate`, `Entity_type`, `ProbandSex`, `ProbandDoB`) VALUES (162,300001,'MTL001',NULL,'2003-10-31',NULL,'2003-11-30','Male',2,1,NULL,'Y','2016-01-23',NULL,'admin','2016-01-23','false',NULL,NULL,NULL,'2019-06-20 12:10:04','Human',NULL,NULL); @@ -666,11 +666,11 @@ INSERT INTO `candidate` (`ID`, `CandID`, `PSCID`, `ExternalID`, `DoB`, `DoD`, `E INSERT INTO `candidate` (`ID`, `CandID`, `PSCID`, `ExternalID`, `DoB`, `DoD`, `EDC`, `Sex`, `RegistrationCenterID`, `RegistrationProjectID`, `Ethnicity`, `Active`, `Date_active`, `RegisteredBy`, `UserID`, `Date_registered`, `flagged_caveatemptor`, `flagged_reason`, `flagged_other`, `flagged_other_status`, `Testdate`, `Entity_type`, `ProbandSex`, `ProbandDoB`) VALUES (1004,587630,'DCC090','677','2016-05-01',NULL,'2016-06-21','Male',1,1,NULL,'Y','2016-03-04','admin','admin','2016-03-04','true',1,NULL,NULL,'2019-06-20 12:10:04','Human','Female','2016-03-31'); INSERT INTO `candidate` (`ID`, `CandID`, `PSCID`, `ExternalID`, `DoB`, `DoD`, `EDC`, `Sex`, `RegistrationCenterID`, `RegistrationProjectID`, `Ethnicity`, `Active`, `Date_active`, `RegisteredBy`, `UserID`, `Date_registered`, `flagged_caveatemptor`, `flagged_reason`, `flagged_other`, `flagged_other_status`, `Testdate`, `Entity_type`, `ProbandSex`, `ProbandDoB`) VALUES (1008,674923,'scanner',NULL,NULL,NULL,NULL,NULL,4,4,NULL,'Y','2016-04-25',NULL,'NeuroDB::MRI','2016-04-25','false',NULL,NULL,NULL,'2019-07-04 09:42:58','Scanner',NULL,NULL); INSERT INTO `candidate` (`ID`, `CandID`, `PSCID`, `ExternalID`, `DoB`, `DoD`, `EDC`, `Sex`, `RegistrationCenterID`, `RegistrationProjectID`, `Ethnicity`, `Active`, `Date_active`, `RegisteredBy`, `UserID`, `Date_registered`, `flagged_caveatemptor`, `flagged_reason`, `flagged_other`, `flagged_other_status`, `Testdate`, `Entity_type`, `ProbandSex`, `ProbandDoB`) VALUES (1013,676061,'DCC292',NULL,'1980-02-02',NULL,NULL,'Female',1,1,NULL,'Y','2016-07-08','admin','admin','2016-07-08','false',NULL,NULL,NULL,'2019-06-20 12:10:04','Human',NULL,NULL); -INSERT INTO `candidate` (`ID`, `CandID`, `PSCID`, `ExternalID`, `DoB`, `DoD`, `EDC`, `Sex`, `RegistrationCenterID`, `RegistrationProjectID`, `Ethnicity`, `Active`, `Date_active`, `RegisteredBy`, `UserID`, `Date_registered`, `flagged_caveatemptor`, `flagged_reason`, `flagged_other`, `flagged_other_status`, `Testdate`, `Entity_type`, `ProbandSex`, `ProbandDoB`) VALUES (1010,696846,'DCC211',NULL,'2020-01-01',NULL,'2001-01-01','Male',1,1,NULL,'Y','2016-02-10','admin','admin','2016-02-10','false',NULL,NULL,NULL,'2019-06-20 12:10:04','Human',NULL,NULL); +INSERT INTO `candidate` (`ID`, `CandID`, `PSCID`, `ExternalID`, `DoB`, `DoD`, `EDC`, `Sex`, `RegistrationCenterID`, `RegistrationProjectID`, `Ethnicity`, `Active`, `Date_active`, `RegisteredBy`, `UserID`, `Date_registered`, `flagged_caveatemptor`, `flagged_reason`, `flagged_other`, `flagged_other_status`, `Testdate`, `Entity_type`, `ProbandSex`, `ProbandDoB`) VALUES (1010,696846,'DCC211',NULL,'2015-01-01',NULL,'2001-01-01','Male',1,1,NULL,'Y','2016-02-10','admin','admin','2016-02-10','false',NULL,NULL,NULL,'2019-06-20 12:10:04','Human',NULL,NULL); INSERT INTO `candidate` (`ID`, `CandID`, `PSCID`, `ExternalID`, `DoB`, `DoD`, `EDC`, `Sex`, `RegistrationCenterID`, `RegistrationProjectID`, `Ethnicity`, `Active`, `Date_active`, `RegisteredBy`, `UserID`, `Date_registered`, `flagged_caveatemptor`, `flagged_reason`, `flagged_other`, `flagged_other_status`, `Testdate`, `Entity_type`, `ProbandSex`, `ProbandDoB`) VALUES (1017,749066,'scanner',NULL,NULL,NULL,NULL,NULL,3,4,NULL,'Y','2016-06-15',NULL,'NeuroDB::MRI','2016-06-15','false',NULL,NULL,NULL,'2019-07-04 09:42:58','Scanner',NULL,NULL); INSERT INTO `candidate` (`ID`, `CandID`, `PSCID`, `ExternalID`, `DoB`, `DoD`, `EDC`, `Sex`, `RegistrationCenterID`, `RegistrationProjectID`, `Ethnicity`, `Active`, `Date_active`, `RegisteredBy`, `UserID`, `Date_registered`, `flagged_caveatemptor`, `flagged_reason`, `flagged_other`, `flagged_other_status`, `Testdate`, `Entity_type`, `ProbandSex`, `ProbandDoB`) VALUES (1006,843091,'scanner',NULL,NULL,NULL,NULL,NULL,2,4,NULL,'Y','2016-05-30',NULL,'NeuroDB::MRI','2016-05-30','false',NULL,NULL,NULL,'2019-07-04 09:42:58','Scanner',NULL,NULL); INSERT INTO `candidate` (`ID`, `CandID`, `PSCID`, `ExternalID`, `DoB`, `DoD`, `EDC`, `Sex`, `RegistrationCenterID`, `RegistrationProjectID`, `Ethnicity`, `Active`, `Date_active`, `RegisteredBy`, `UserID`, `Date_registered`, `flagged_caveatemptor`, `flagged_reason`, `flagged_other`, `flagged_other_status`, `Testdate`, `Entity_type`, `ProbandSex`, `ProbandDoB`) VALUES (1007,846734,'scanner',NULL,NULL,NULL,NULL,NULL,2,4,NULL,'Y','2016-02-26',NULL,'NeuroDB::MRI','2016-02-26','false',NULL,NULL,NULL,'2019-07-04 09:42:58','Scanner',NULL,NULL); -INSERT INTO `candidate` (`ID`, `CandID`, `PSCID`, `ExternalID`, `DoB`, `DoD`, `EDC`, `Sex`, `RegistrationCenterID`, `RegistrationProjectID`, `Ethnicity`, `Active`, `Date_active`, `RegisteredBy`, `UserID`, `Date_registered`, `flagged_caveatemptor`, `flagged_reason`, `flagged_other`, `flagged_other_status`, `Testdate`, `Entity_type`, `ProbandSex`, `ProbandDoB`) VALUES (1014,947103,'DCC702',NULL,'2018-04-04',NULL,NULL,'Female',1,1,NULL,'Y','2016-06-30','admin','admin','2016-06-30','false',NULL,NULL,NULL,'2019-06-20 12:10:04','Human',NULL,NULL); +INSERT INTO `candidate` (`ID`, `CandID`, `PSCID`, `ExternalID`, `DoB`, `DoD`, `EDC`, `Sex`, `RegistrationCenterID`, `RegistrationProjectID`, `Ethnicity`, `Active`, `Date_active`, `RegisteredBy`, `UserID`, `Date_registered`, `flagged_caveatemptor`, `flagged_reason`, `flagged_other`, `flagged_other_status`, `Testdate`, `Entity_type`, `ProbandSex`, `ProbandDoB`) VALUES (1014,947103,'DCC702',NULL,'2015-04-04',NULL,NULL,'Female',1,1,NULL,'Y','2016-06-30','admin','admin','2016-06-30','false',NULL,NULL,NULL,'2019-06-20 12:10:04','Human',NULL,NULL); INSERT INTO `candidate` (`ID`, `CandID`, `PSCID`, `ExternalID`, `DoB`, `DoD`, `EDC`, `Sex`, `RegistrationCenterID`, `RegistrationProjectID`, `Ethnicity`, `Active`, `Date_active`, `RegisteredBy`, `UserID`, `Date_registered`, `flagged_caveatemptor`, `flagged_reason`, `flagged_other`, `flagged_other_status`, `Testdate`, `Entity_type`, `ProbandSex`, `ProbandDoB`) VALUES (1018,965878,'scanner',NULL,NULL,NULL,NULL,NULL,4,4,NULL,'Y','2016-06-26',NULL,'NeuroDB::MRI','2016-06-26','false',NULL,NULL,NULL,'2019-07-04 09:42:58','Scanner',NULL,NULL); UNLOCK TABLES; SET FOREIGN_KEY_CHECKS=1;