zcavaricci
New Member
- Joined
- Apr 24, 2017
- Messages
- 10
Hello,
I need to count the number occurences where blood sugar was >180 2x in a Day for =>3 consecutive days by patient. I have one table with the following structure:
<colgroup><col><col><col></colgroup><tbody>
</tbody>
Results Expected:
<tbody>
</tbody>
I need to count the number occurences where blood sugar was >180 2x in a Day for =>3 consecutive days by patient. I have one table with the following structure:
Date/Time | Patient ID | Glucose Reading |
1/28/2017 17:36 | A | 192 |
1/28/2017 20:12 | A | 311 |
1/29/2017 9:58 | A | 214 |
1/29/2017 10:58 | A | 181 |
1/30/2017 20:45 | A | 279 |
1/30/2017 21:45 | A | 181 |
1/31/2017 7:48 | A | 157 |
1/31/2017 12:33 | A | 157 |
1/31/2017 17:48 | A | 167 |
1/28/2017 12:35 | B | 158 |
1/29/2017 12:09 | B | 190 |
1/29/2017 17:05 | B | 211 |
1/30/2017 7:41 | B | 197 |
1/30/2017 12:05 | B | 211 |
1/30/2017 17:31 | B | 231 |
1/31/2017 21:26 | B | 188 |
1/5/2017 22:05 | C | 205 |
1/5/2017 23:40 | C | 216 |
1/6/2017 3:18 | C | 195 |
1/6/2017 7:54 | C | 187 |
1/7/2017 12:54 | C | 210 |
1/7/2017 17:22 | C | 379 |
1/9/2017 7:37 | C | 191 |
<colgroup><col><col><col></colgroup><tbody>
</tbody>
Results Expected:
Patient | # Occurrences |
A | 1 |
C | 1 |
<tbody>
</tbody>