You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Idea is to use the earliest symptom onset + 2 days prior to send exposure alerts to the individuals seen in that time period.
Current implementation in 0.4 is for symptom reporting for day-of symptoms and after (?), but for 0.5 we'd like to implement to include the prior 2 days when someone was potentially infectious.
The text was updated successfully, but these errors were encountered:
Report object has start_index and end_index fields. These contain the TCK indices corresponding to start and end of the period in which the reporter was infectious. TCK index increments by 1 after each ratchet operation (ratchet operation generates new TCN).
Current logic for setting start_index and end_index is in https://github.com/Co-Epi/app-backend-rust/blob/master/src/tcn_ext/tcn_keys.rs#L49 .
fn create_report(&self, report: Vec<u8>) -> Result<SignedReport, Error> {
let end_index = self.tck().index();
let periods = 14 * 24 * (60 / 15);
let mut start_index = 1;
if end_index > periods {
start_index = (end_index - periods) as u16
}
debug!("start_index={}, end_index={}", start_index, end_index);
self.rak()
.create_report(MemoType::CoEpiV1, report, start_index, end_index)
}
Infectious period is set to 14 days prior to current time, or time of generation of the first TCN (if current value of the index is not large enough). For reports sent on August 30, infectious period would be from August 17 until August 30, inclusive.
Open questions:
Do we use earliest symptom onset (put back the corresponding screen in the symptom reporting flow)?
Do we use time of reporting instead earliest symptom onset (current logic)?
Do we continue to use -14 days as infectious period?
Do we switch to -2 days as infectious period?
Do we need to extend the infectious period "in to the future" (+x days)?
Idea is to use the earliest symptom onset + 2 days prior to send exposure alerts to the individuals seen in that time period.
Current implementation in 0.4 is for symptom reporting for day-of symptoms and after (?), but for 0.5 we'd like to implement to include the prior 2 days when someone was potentially infectious.
The text was updated successfully, but these errors were encountered: