opensafely / SRO-Measures

1 stars 0 forks source link

Update date range #145

Closed LFISHER7 closed 1 year ago

LFISHER7 commented 1 year ago

When the event count is queried, events are extracted up to the end date specified, not in the week following the end date.

We therefore increase the date period by a week, so a full 4 week period is extracted at the end of the study period, and then remove the last week (which is incomplete) before we calculate the measures.