Skip to main content
. 2020 Dec 17;4(12):e24490. doi: 10.2196/24490

Table 2.

State-change action matrix.

State Input string

“NO” Disease Time
0 N/Aa 1. Print(Found a disease. Hoping for it to be followed by a time since when disease existed.)
2. Update prev_disease = <disease>.
Print(Warning: Found a time unit before finding a disease)
1 Print(Disease Name followed by NO. Not according to how it should be) 1. Record <prev_disease, No time>.
2. Print(Warning: prev_disease was not followed by a time.)
3. Update prev_disease = <disease>
1. Record<prev_disease, <time>>.
2. Print(Successfully detected disease and time since when).
3. Update prev_disease = NULL.
2 Print(Error: Found two consecutive NOs) Print(Detected a “NO Disease statement. Ignoring and not recording.) Print(Found a time unit after NO. Something wrong)

aN/A: not applicable.