|
| 1 | +-- SPDX-FileCopyrightText: Copyright (C) 2025 Opal Health Informatics Group at the Research Institute of the McGill University Health Centre <[email protected]> |
| 2 | +-- |
| 3 | +-- SPDX-License-Identifier: AGPL-3.0-or-later |
| 4 | + |
| 5 | +-- Update all read statuses to mimic a live environment and assume that everyone read their data |
| 6 | +-- This is done at the end of inserting all data |
| 7 | + |
| 8 | +-- Rorys data read by rory |
| 9 | +UPDATE Announcement |
| 10 | +SET ReadStatus = 1, |
| 11 | + ReadBy = '["mouj1pqpXrYCl994oSm5wtJT3In2"]' |
| 12 | +WHERE PatientSerNum = 59 |
| 13 | +; |
| 14 | +UPDATE EducationalMaterial |
| 15 | +SET ReadStatus = 1, |
| 16 | + ReadBy = '["mouj1pqpXrYCl994oSm5wtJT3In2"]' |
| 17 | +WHERE PatientSerNum = 59 |
| 18 | +; |
| 19 | +UPDATE TxTeamMessage |
| 20 | +SET ReadStatus = 1, |
| 21 | + ReadBy = '["mouj1pqpXrYCl994oSm5wtJT3In2"]' |
| 22 | +WHERE PatientSerNum = 59 |
| 23 | +; |
| 24 | +UPDATE Notification |
| 25 | +SET ReadStatus = 1, |
| 26 | + ReadBy = '["mouj1pqpXrYCl994oSm5wtJT3In2"]' |
| 27 | +WHERE PatientSerNum = 59 |
| 28 | +; |
| 29 | + |
| 30 | +-- Caras data read by rory and cara |
| 31 | +UPDATE Announcement |
| 32 | +SET ReadStatus = 1, |
| 33 | + ReadBy = '["mouj1pqpXrYCl994oSm5wtJT3In2", "dR2Cb1Yf0vQb4ywvMoAXw1SxbY93"]' |
| 34 | +WHERE PatientSerNum = 96 |
| 35 | +; |
| 36 | +UPDATE EducationalMaterial |
| 37 | +SET ReadStatus = 1, |
| 38 | + ReadBy = '["mouj1pqpXrYCl994oSm5wtJT3In2", "dR2Cb1Yf0vQb4ywvMoAXw1SxbY93"]' |
| 39 | +WHERE PatientSerNum = 96 |
| 40 | +; |
| 41 | +UPDATE TxTeamMessage |
| 42 | +SET ReadStatus = 1, |
| 43 | + ReadBy = '["mouj1pqpXrYCl994oSm5wtJT3In2", "dR2Cb1Yf0vQb4ywvMoAXw1SxbY93"]' |
| 44 | +WHERE PatientSerNum = 96 |
| 45 | +; |
| 46 | +UPDATE Notification |
| 47 | +SET ReadStatus = 1, |
| 48 | + ReadBy = '["mouj1pqpXrYCl994oSm5wtJT3In2", "dR2Cb1Yf0vQb4ywvMoAXw1SxbY93"]' |
| 49 | +WHERE PatientSerNum = 96 |
| 50 | +; |
| 51 | + |
| 52 | +-- Johns data read by John |
| 53 | +UPDATE Announcement |
| 54 | +SET ReadStatus = 1, |
| 55 | + ReadBy = '["hIMnEXkedPMxYnXeqNXzphklu4V2"]' |
| 56 | +WHERE PatientSerNum = 93 |
| 57 | +; |
| 58 | +UPDATE EducationalMaterial |
| 59 | +SET ReadStatus = 1, |
| 60 | + ReadBy = '["hIMnEXkedPMxYnXeqNXzphklu4V2"]' |
| 61 | +WHERE PatientSerNum = 93 |
| 62 | +; |
| 63 | +UPDATE TxTeamMessage |
| 64 | +SET ReadStatus = 1, |
| 65 | + ReadBy = '["hIMnEXkedPMxYnXeqNXzphklu4V2"]' |
| 66 | +WHERE PatientSerNum = 93 |
| 67 | +; |
| 68 | +UPDATE Notification |
| 69 | +SET ReadStatus = 1, |
| 70 | + ReadBy = '["hIMnEXkedPMxYnXeqNXzphklu4V2"]' |
| 71 | +WHERE PatientSerNum = 93 |
| 72 | +; |
| 73 | + |
| 74 | +-- Richards data read by John and Richard |
| 75 | +UPDATE Announcement |
| 76 | +SET ReadStatus = 1, |
| 77 | + ReadBy = '["hIMnEXkedPMxYnXeqNXzphklu4V2", "2WhxeTpYF8aHlfSQX8oGeq4LFhw2"]' |
| 78 | +WHERE PatientSerNum = 94 |
| 79 | +; |
| 80 | +UPDATE EducationalMaterial |
| 81 | +SET ReadStatus = 1, |
| 82 | + ReadBy = '["hIMnEXkedPMxYnXeqNXzphklu4V2", "2WhxeTpYF8aHlfSQX8oGeq4LFhw2"]' |
| 83 | +WHERE PatientSerNum = 94 |
| 84 | +; |
| 85 | +UPDATE TxTeamMessage |
| 86 | +SET ReadStatus = 1, |
| 87 | + ReadBy = '["hIMnEXkedPMxYnXeqNXzphklu4V2", "2WhxeTpYF8aHlfSQX8oGeq4LFhw2"]' |
| 88 | +WHERE PatientSerNum = 94 |
| 89 | +; |
| 90 | +UPDATE Notification |
| 91 | +SET ReadStatus = 1, |
| 92 | + ReadBy = '["hIMnEXkedPMxYnXeqNXzphklu4V2", "2WhxeTpYF8aHlfSQX8oGeq4LFhw2"]' |
| 93 | +WHERE PatientSerNum = 94 |
| 94 | +; |
| 95 | + |
| 96 | +-- Valeries data read by Valerie |
| 97 | +UPDATE Announcement |
| 98 | +SET ReadStatus = 1, |
| 99 | + ReadBy = '["dcBSK5qdoiOM2L9cEdShkqOadkG3"]' |
| 100 | +WHERE PatientSerNum = 99 |
| 101 | +; |
| 102 | +UPDATE EducationalMaterial |
| 103 | +SET ReadStatus = 1, |
| 104 | + ReadBy = '["dcBSK5qdoiOM2L9cEdShkqOadkG3"]' |
| 105 | +WHERE PatientSerNum = 99 |
| 106 | +; |
| 107 | +UPDATE TxTeamMessage |
| 108 | +SET ReadStatus = 1, |
| 109 | + ReadBy = '["dcBSK5qdoiOM2L9cEdShkqOadkG3"]' |
| 110 | +WHERE PatientSerNum = 99 |
| 111 | +; |
| 112 | +UPDATE Notification |
| 113 | +SET ReadStatus = 1, |
| 114 | + ReadBy = '["dcBSK5qdoiOM2L9cEdShkqOadkG3"]' |
| 115 | +WHERE PatientSerNum = 99 |
| 116 | +; |
| 117 | + |
| 118 | +-- Petes data read by Pete |
| 119 | +UPDATE Announcement |
| 120 | +SET ReadStatus = 1, |
| 121 | + ReadBy = '["9kmS7qYQX8arnFFs4ZYJk1tqLFw1"]' |
| 122 | +WHERE PatientSerNum = 100 |
| 123 | +; |
| 124 | +UPDATE EducationalMaterial |
| 125 | +SET ReadStatus = 1, |
| 126 | + ReadBy = '["9kmS7qYQX8arnFFs4ZYJk1tqLFw1"]' |
| 127 | +WHERE PatientSerNum = 100 |
| 128 | +; |
| 129 | +UPDATE TxTeamMessage |
| 130 | +SET ReadStatus = 1, |
| 131 | + ReadBy = '["9kmS7qYQX8arnFFs4ZYJk1tqLFw1"]' |
| 132 | +WHERE PatientSerNum = 100 |
| 133 | +; |
| 134 | +UPDATE Notification |
| 135 | +SET ReadStatus = 1, |
| 136 | + ReadBy = '["9kmS7qYQX8arnFFs4ZYJk1tqLFw1"]' |
| 137 | +WHERE PatientSerNum = 100 |
| 138 | +; |
| 139 | + |
| 140 | +-- Martins data read by Martin |
| 141 | +UPDATE Announcement |
| 142 | +SET ReadStatus = 1, |
| 143 | + ReadBy = '["2grqcCoyPlVucfAPD4NM1SuCk3i1"]' |
| 144 | +WHERE PatientSerNum = 101 |
| 145 | +; |
| 146 | +UPDATE EducationalMaterial |
| 147 | +SET ReadStatus = 1, |
| 148 | + ReadBy = '["2grqcCoyPlVucfAPD4NM1SuCk3i1"]' |
| 149 | +WHERE PatientSerNum = 101 |
| 150 | +; |
| 151 | +UPDATE TxTeamMessage |
| 152 | +SET ReadStatus = 1, |
| 153 | + ReadBy = '["2grqcCoyPlVucfAPD4NM1SuCk3i1"]' |
| 154 | +WHERE PatientSerNum = 101 |
| 155 | +; |
| 156 | +UPDATE Notification |
| 157 | +SET ReadStatus = 1, |
| 158 | + ReadBy = '["2grqcCoyPlVucfAPD4NM1SuCk3i1"]' |
| 159 | +WHERE PatientSerNum = 101 |
| 160 | +; |
| 161 | + |
| 162 | +-- Mikes data read by Mike |
| 163 | +UPDATE Announcement |
| 164 | +SET ReadStatus = 1, |
| 165 | + ReadBy = '["hSJdAae7xWNwnemd2YypQSVfoOb2"]' |
| 166 | +WHERE PatientSerNum = 103 |
| 167 | +; |
| 168 | +UPDATE EducationalMaterial |
| 169 | +SET ReadStatus = 1, |
| 170 | + ReadBy = '["hSJdAae7xWNwnemd2YypQSVfoOb2"]' |
| 171 | +WHERE PatientSerNum = 103 |
| 172 | +; |
| 173 | +UPDATE TxTeamMessage |
| 174 | +SET ReadStatus = 1, |
| 175 | + ReadBy = '["hSJdAae7xWNwnemd2YypQSVfoOb2"]' |
| 176 | +WHERE PatientSerNum = 103 |
| 177 | +; |
| 178 | +UPDATE Notification |
| 179 | +SET ReadStatus = 1, |
| 180 | + ReadBy = '["hSJdAae7xWNwnemd2YypQSVfoOb2"]' |
| 181 | +WHERE PatientSerNum = 103 |
| 182 | +; |
| 183 | +-- Kathys data read by Mike and Kathy |
| 184 | +UPDATE Announcement |
| 185 | +SET ReadStatus = 1, |
| 186 | + ReadBy = '["hSJdAae7xWNwnemd2YypQSVfoOb2", "OPWj4Cj5iRfgva4b3HGtVGjvuk13"]' |
| 187 | +WHERE PatientSerNum = 102 |
| 188 | +; |
| 189 | +UPDATE EducationalMaterial |
| 190 | +SET ReadStatus = 1, |
| 191 | + ReadBy = '["hSJdAae7xWNwnemd2YypQSVfoOb2", "OPWj4Cj5iRfgva4b3HGtVGjvuk13"]' |
| 192 | +WHERE PatientSerNum = 102 |
| 193 | +; |
| 194 | +UPDATE TxTeamMessage |
| 195 | +SET ReadStatus = 1, |
| 196 | + ReadBy = '["hSJdAae7xWNwnemd2YypQSVfoOb2", "OPWj4Cj5iRfgva4b3HGtVGjvuk13"]' |
| 197 | +WHERE PatientSerNum = 102 |
| 198 | +; |
| 199 | +UPDATE Notification |
| 200 | +SET ReadStatus = 1, |
| 201 | + ReadBy = '["hSJdAae7xWNwnemd2YypQSVfoOb2", "OPWj4Cj5iRfgva4b3HGtVGjvuk13"]' |
| 202 | +WHERE PatientSerNum = 102 |
| 203 | +; |
0 commit comments