I’ve discovered an issue with how our system flags vitals as “out of date.” When I recorded vitals at 11:42 PM last night (April 9th), they showed up as completely current. However, just 21 minutes later after midnight (at 00:03 on April 10th), these same vitals suddenly appeared with an “out of date” warning tag. This seems misleading since these measurements are still very recent!
Instead of registering on Jira, I thought let’s first discuss everyone’s opinion here, like how old vitals are really ‘old’.
The problem appears to be in our code that uses calendar dates rather than actual elapsed time. Should we consider changing this to use a time window (like 12 hours) instead of strictly checking if vitals were taken “today”?
Great catch @dhruvchandak30 . Since almost all hospitals run emergency services at night and don’t follow “business days” for lack of a better word, switching to a time window for labelling vitals - ‘old’ would definitely make much more sense.