Skip to content

Commit 876c611

Browse files
authored
fixes (#615)
1 parent 9e54c8e commit 876c611

File tree

7 files changed

+16
-15
lines changed

7 files changed

+16
-15
lines changed

db_management/opaldb/data/initial/testresults.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ INSERT INTO `EducationalMaterialControl` (`EducationalMaterialControlSerNum`, `E
1515
(799, 'Test Results', 'Résultats de Test de laboratoire', 1, 0, 'Coronavirus (COVID-19)', 'Coronavirus (COVID-19)', 'https://labtestsonline.org/tests/coronavirus-covid-19-testing', 'http://www.labtestsonline.fr/News/les-tests-de-diagnostic-et-de-suivi-du-covid19.html', 'website', 'website', '', '', 2, 1, '2020-05-30 17:20:54', 10, '2020-05-30 17:20:54', '2020-05-31 01:20:54', 0, NULL);
1616

1717
INSERT INTO `TestControl` (`TestControlSerNum`, `Name_EN`, `Name_FR`, `Description_EN`, `Description_FR`, `Group_EN`, `Group_FR`, `SourceDatabaseSerNum`, `EducationalMaterialControlSerNum`, `PublishFlag`, `DateAdded`, `LastPublished`, `LastUpdatedBy`, `LastUpdated`, `URL_EN`, `URL_FR`, `SessionId`) VALUES
18-
(6, 'White Blood Cell/Leucocytes', 'Globules blancs/Leucocytes', '<p>A white blood cell count is a test that measures the number of white blood cells in your blood.</p>', '<p>Une numération des globules blancs est un examen qui mesure le nombre de globules blancs dans votre sang.</p>', 'Blood Count', 'Hémogramme', -1, 373, 0, '2016-06-10 11:38:13', '2020-12-04 19:24:02', NULL, '2021-09-27 17:13:35', 'https://labtestsonline.org/tests/white-blood-cell-count-wbc', 'http://www.labtestsonline.fr/tests/num-ration-des-globules-blancs.html', 'koziqvQOdO'),
19-
(27, 'Absolute Nucleated Red Blood Cells (Automated)', 'Globules rouges nucléés absolus (automatisés)', 'description', 'description', 'Blood Count', 'Hémogramme', -1, 424, 0, '2018-01-12 15:49:41', '2020-12-04 19:24:02', NULL, '2021-09-27 19:01:29', '', '', 'gb8Pv5tcA6'),
18+
(6, 'White Blood Cell/Leucocytes', 'Globules blancs/Leucocytes', '<p>A white blood cell count is a test that measures the number of white blood cells in your blood.</p>', '<p>Une numération des globules blancs est un examen qui mesure le nombre de globules blancs dans votre sang.</p>', 'Blood Count', 'Hémogramme', -1, 373, 1, '2016-06-10 11:38:13', '2020-12-04 19:24:02', NULL, '2021-09-27 17:13:35', 'https://labtestsonline.org/tests/white-blood-cell-count-wbc', 'http://www.labtestsonline.fr/tests/num-ration-des-globules-blancs.html', 'koziqvQOdO'),
19+
(27, 'Absolute Nucleated Red Blood Cells (Automated)', 'Globules rouges nucléés absolus (automatisés)', 'description', 'description', 'Blood Count', 'Hémogramme', -1, 424, 1, '2018-01-12 15:49:41', '2020-12-04 19:24:02', NULL, '2021-09-27 19:01:29', '', '', 'gb8Pv5tcA6'),
2020
(28, 'Hemoglobin', 'Hémoglobine', 'description', 'description', 'Blood Count', 'Hémogramme', -1, 425, 1, '2018-01-12 15:50:59', '2020-12-04 19:24:02', NULL, '2021-03-29 21:29:33', '', '', '9DWhzu6u6w'),
2121
(29, 'Hematocrit', 'Hématocrite', 'description', 'description', 'Blood Count', 'Hémogramme', -1, 426, 1, '2018-01-12 15:52:29', '2020-12-04 19:24:02', NULL, '2021-04-06 19:10:46', '', '', 'W2RB6YcVts'),
2222
(30, 'Platelets', 'Plaquettes', '<p>Description</p>', '<p>Description</p>', 'Blood Count', 'Hémogramme', -1, 427, 1, '2018-01-12 15:53:56', '2020-12-04 19:24:02', NULL, '2021-06-23 18:46:23', '', '', 'SpKKBu6Pwm'),
@@ -26,4 +26,4 @@ INSERT INTO `TestControl` (`TestControlSerNum`, `Name_EN`, `Name_FR`, `Descripti
2626
(36, 'Ionized Calcium (Normalized)', 'Calcium ionisé (normalisé)', 'description', 'description', 'Electrolytes', 'Électrolytes', -1, 434, 1, '2018-01-12 15:58:23', '2020-12-04 19:24:02', NULL, '2021-06-22 22:34:10', '', '', '5Xe8UyUn9O'),
2727
(37, 'Magnesium', 'Magnésium', 'description', 'description', 'Electrolytes', 'Électrolytes', -1, 435, 1, '2018-01-12 15:58:51', '2020-12-04 19:24:02', NULL, '2021-04-06 22:01:41', '', '', 'fMXeUDEQrI'),
2828
(49, 'Absolute Neutrophils (Automated)', 'Neutrophiles absolus (automatisés)', 'Description', 'Description', 'Blood Count', 'Hémogramme', -1, 373, 1, '2018-01-30 11:14:22', '2020-12-04 19:24:02', NULL, '2021-06-22 19:08:21', '', '', '6VQxaCZO3c'),
29-
(52, 'Coronavirus (COVID-19)', 'Coronavirus (COVID-19)', '<p>description</p>', '<p>description</p>', 'Other', 'Autre', -1, 799, 0, '2020-05-30 17:23:12', '2020-12-04 19:24:02', NULL, '2021-09-29 17:58:02', '', '', 'K4ZGVx2GcI');
29+
(52, 'Coronavirus (COVID-19)', 'Coronavirus (COVID-19)', '<p>description</p>', '<p>description</p>', 'Other', 'Autre', -1, 799, 1, '2020-05-30 17:23:12', '2020-12-04 19:24:02', NULL, '2021-09-29 17:58:02', '', '', 'K4ZGVx2GcI');

db_management/opaldb/data/test/aliasexpression.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ INSERT INTO `AliasExpression` (`AliasExpressionSerNum`, `AliasSerNum`, `masterSo
3333
(10087, 618, 28030, 'Onsite Portal | Patient', 'Onsite Portal | Patient', '2019-01-01 00:00:00', NULL, '2025-02-27 12:35:15', 'nGTPRYdsGE'),
3434
(10088, 618, 28031, 'Onsite Portal | Reviewed', 'Onsite Portal | Reviewed', '2019-01-01 00:00:00', NULL, '2025-02-27 12:35:15', 'nGTPRYdsGE'),
3535
(10089, 618, 28032, 'Invoices', 'Invoices', '2019-01-01 00:00:00', NULL, '2025-02-27 12:35:15', 'nGTPRYdsGE'),
36-
(10090, 614, 28038, 'ct_sim_tasked', 'CT Sim (TASKED)', '2000-01-01 00:00:00', NULL, '2025-03-05 11:09:21', 'yuDs5tNDrJ'),
37-
(10091, 614, 28039, '.ebc_daily_rx', '.EBC-Daily Rx', '2000-01-01 00:00:00', NULL, '2025-03-05 11:09:23', 'GrRGaTVtWm'),
38-
(10092, 614, 28040, 'intra_treat_out', 'INTRA TREAT OUT', '2000-01-01 00:00:00', NULL, '2025-03-05 11:09:24', 'RWuRXxWcQB'),
39-
(10093, 614, 28041, 'follow_up_in_less_30_days', 'FOLLOW UP IN LESS/30DAYS', '2000-01-01 00:00:00', NULL, '2025-03-05 11:09:25', 'FuqEGE2jgY'),
36+
(10090, 626, 28038, 'ct_sim_tasked', 'CT Sim (TASKED)', '2000-01-01 00:00:00', NULL, '2025-03-05 11:09:21', 'yuDs5tNDrJ'),
37+
(10091, 622, 28039, '.ebc_daily_rx', '.EBC-Daily Rx', '2000-01-01 00:00:00', NULL, '2025-03-05 11:09:23', 'GrRGaTVtWm'),
38+
(10092, 621, 28040, 'intra_treat_out', 'INTRA TREAT OUT', '2000-01-01 00:00:00', NULL, '2025-03-05 11:09:24', 'RWuRXxWcQB'),
39+
(10093, 621, 28041, 'follow_up_in_less_30_days', 'FOLLOW UP IN LESS/30DAYS', '2000-01-01 00:00:00', NULL, '2025-03-05 11:09:25', 'FuqEGE2jgY'),
4040
(10094, 623, 28042, 'RSRCH-CON-PD', 'RSRCH-CON-PD', '2000-01-01 00:00:00', NULL, '2025-03-06 09:36:54', 'bAiGutir5I'),
4141
(10095, 624, 28043, 'RSRCH-BLD-PD', 'RSRCH-BLD-PD', '2000-01-01 00:00:00', NULL, '2025-03-11 12:32:45', 'YEdUrE0Wov'),
4242
(10096, 625, 28044, 'RSRCH-MBE-PD', 'RSRCH-MBE-PD', '2000-01-01 00:00:00', NULL, '2025-03-06 09:36:28', 'bAiGutir5I'),

db_management/opaldb/data/test/omi/omi_educationmaterial.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ INSERT INTO `EducationalMaterial` (`EducationalMaterialSerNum`, `CronLogSerNum`,
5959
-- Update all EducationalMaterial added dates to make the data more similar to a live environment.
6060
UPDATE `EducationalMaterial`
6161
SET DateAdded = DATE_ADD(DateAdded, INTERVAL ((WEEK(CURDATE()) - WEEK('2025-06-08')-1) * 7) DAY),
62-
LastUpdated = DATE_ADD(DateAdded, INTERVAL ((WEEK(CURDATE()) - WEEK('2025-06-08')-1) * 7) DAY);
62+
LastUpdated = DateAdded;

db_management/opaldb/data/test/omi/omi_questionnaires.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ INSERT INTO `Questionnaire` (`QuestionnaireSerNum`, `CronLogSerNum`, `Questionna
4646
-- Update all Questionnaire added dates and completion dates to make the data more similar to a live environment.
4747
UPDATE `Questionnaire`
4848
SET DateAdded = DATE_ADD(DateAdded, INTERVAL ((WEEK(CURDATE()) - WEEK('2025-06-08')-1) * 7) DAY),
49-
LastUpdated = DATE_ADD(DateAdded, INTERVAL ((WEEK(CURDATE()) - WEEK('2025-06-08')-1) * 7) DAY);
49+
LastUpdated = DateAdded;
5050

5151
UPDATE `Questionnaire`
5252
SET CompletionDate = DATE_ADD(CompletionDate, INTERVAL ((WEEK(CURDATE()) - WEEK('2025-06-08')-1) * 7) DAY),
53-
LastUpdated = DATE_ADD(CompletionDate, INTERVAL ((WEEK(CURDATE()) - WEEK('2025-06-08')-1) * 7) DAY)
53+
LastUpdated = CompletionDate
5454
WHERE CompletedFlag = 1;

db_management/opaldb/data/test/omi/omi_txteammessage.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ INSERT INTO `TxTeamMessage` (`TxTeamMessageSerNum`, `CronLogSerNum`, `PatientSer
2323
(7215, NULL, 102, 1092, '2025-04-11 12:00:00', 1, '["OPWj4Cj5iRfgva4b3HGtVGjvuk13", "hSJdAae7xWNwnemd2YypQSVfoOb2"]', '2025-04-11 12:00:00');
2424

2525
-- Update all TxTeamMessage added dates to make the data more similar to a live environment
26-
UPDATE `EducationalMaterial`
26+
UPDATE `TxTeamMessage`
2727
SET DateAdded = DATE_ADD(DateAdded, INTERVAL ((WEEK(CURDATE()) - WEEK('2025-06-08')-1) * 7) DAY),
28-
LastUpdated = DATE_ADD(DateAdded, INTERVAL ((WEEK(CURDATE()) - WEEK('2025-06-08')-1) * 7) DAY);
28+
LastUpdated = DateAdded;
2929

3030
-- lauries are all read
3131
UPDATE Notification

db_management/opaldb/data/test/testexpression.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ INSERT INTO `TestExpression` (`TestExpressionSerNum`, `TestControlSerNum`, `Test
1414
(86, 33, 'K', 'POTASSIUM', '0000-00-00 00:00:00', '2000-01-01 00:00:00', NULL, 7, '2023-01-12 16:39:14', 'fMXeUDEQrI', '-1', 0, '', 'cronjob', 'cronjob'),
1515
(145, 31, 'MEOS', 'Eosinophil Manual', '0000-00-00 00:00:00', '2000-01-01 00:00:00', NULL, 7, '2023-01-12 16:39:14', 'V4DNwi6oHj', '-1', 0, '', 'cronjob', 'cronjob'),
1616
(233, 52, 'COV9', 'Coronavirus (SARS-CoV-2) (TAAN)', '0000-00-00 00:00:00', '2000-01-01 00:00:00', NULL, 7, '2023-01-12 16:39:14', 'K4ZGVx2GcI', '-1', 0, '', 'cronjob', 'cronjob'),
17-
(301, 36, 'NCA', 'Ca Ionized Normalized', '0000-00-00 00:00:00', '2000-01-01 00:00:00', NULL, 7, '2023-01-12 16:39:14', '5Xe8UyUn9O', '-1', 0, '', 'cronjob', 'cronjob');
17+
(301, 36, 'NCA', 'Ca Ionized Normalized', '0000-00-00 00:00:00', '2000-01-01 00:00:00', NULL, 7, '2023-01-12 16:39:14', '5Xe8UyUn9O', '-1', 0, '', 'cronjob', 'cronjob'),
18+
(302, 27, 'RBC', 'Red Blood Cell', '0000-00-00 00:00:00', '2000-01-01 00:00:00', NULL, 7, '2023-01-12 16:39:14', '5Xe8UyUn9O', '-1', 0, '', 'cronjob', 'cronjob');

db_management/questionnairedb/data/test/omi/02_answers.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,11 +346,11 @@ and sectionId=154;
346346
-- Update all Questionnaire dates to make the data more similar to a live environment
347347
UPDATE `answerQuestionnaire`
348348
SET creationDate = DATE_ADD(creationDate, INTERVAL ((WEEK(CURDATE()) - WEEK('2025-06-08')-1) * 7) DAY),
349-
lastUpdated = DATE_ADD(creationDate, INTERVAL ((WEEK(CURDATE()) - WEEK('2025-06-08')-1) * 7) DAY);
349+
lastUpdated = creationDate;
350350

351351
UPDATE `answerQuestionnaire`
352352
SET completedDate = DATE_ADD(completedDate, INTERVAL ((WEEK(CURDATE()) - WEEK('2025-06-08')-1) * 7) DAY),
353-
lastUpdated = DATE_ADD(completedDate, INTERVAL ((WEEK(CURDATE()) - WEEK('2025-06-08')-1) * 7) DAY)
353+
lastUpdated = completedDate
354354
WHERE `status`=2;
355355

356356
INSERT INTO `answerRadioButton` (`ID`, `answerId`, `value`) VALUES

0 commit comments

Comments
 (0)