Skip to content

Commit

Permalink
[RaisinBread] Fixed Candidate DoB and Date_registered entries (#8146)
Browse files Browse the repository at this point in the history
Changes entries with negative DATEDIFF > 9 months between DoB and Date_registered from candidate table in RaisinBread data.

    Resolves #8143
  • Loading branch information
satvik-tha-god committed Aug 30, 2022
1 parent d8dbb2e commit 2278498
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions raisinbread/RB_files/RB_candidate.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;

0 comments on commit 2278498

Please sign in to comment.