Mappings from diagnosis keys data to concepts returned by the API.
Nested Class Summary
class | DiagnosisKeysDataMapping.DiagnosisKeysDataMappingBuilder | A builder for
DiagnosisKeysDataMapping . |
Inherited Constant Summary
Field Summary
public static final Creator<DiagnosisKeysDataMapping> | CREATOR |
Public Method Summary
boolean | |
Map<Integer, Integer> |
getDaysSinceOnsetToInfectiousness()
Mapping from diagnosisKey.daysSinceOnsetOfSymptoms to
Infectiousness .
|
int |
getInfectiousnessWhenDaysSinceOnsetMissing()
Infectiousness of TEKs for which onset of symptoms is not set.
|
int |
getReportTypeWhenMissing()
Report type to default to when a TEK has no report type set.
|
int |
hashCode()
|
String |
toString()
|
void |
writeToParcel(Parcel dest, int
flags)
|
Inherited Method Summary
Fields
public static final Creator<DiagnosisKeysDataMapping> CREATOR
Public Methods
public boolean equals (Object obj)
public Map<Integer, Integer> getDaysSinceOnsetToInfectiousness ()
Mapping from diagnosisKey.daysSinceOnsetOfSymptoms to
Infectiousness
.
Infectiousness is computed from this mapping and the tek metadata as -
daysSinceOnsetToInfectiousness[getDaysSinceOnsetOfSymptoms()
],
or -
getInfectiousnessWhenDaysSinceOnsetMissing()
if
getDaysSinceOnsetOfSymptoms()
is
DAYS_SINCE_ONSET_OF_SYMPTOMS_UNKNOWN
.
Values of DaysSinceOnsetOfSymptoms that aren't represented in this map are given
NONE
as infectiousness. Exposures with infectiousness equal to
NONE
are dropped.
public int getInfectiousnessWhenDaysSinceOnsetMissing ()
Infectiousness of TEKs for which onset of symptoms is not set.
See
getDaysSinceOnsetToInfectiousness()
for more info.
public int getReportTypeWhenMissing ()
Report type to default to when a TEK has no report type set.
This report type gets used when creating the
ExposureWindow
s and the
DailySummary
s. The system will treat TEKs with missing report types as if
they had this provided report type.