fix(labs): stop projecting lab trends from stale or short series

A marker whose newest reading is more than a year old is now reported
as of that reading (projection "stale"), with no exit date and no
already-outside verdict. The projection horizon is capped at the span
the readings cover, so a line is never carried further ahead than the
data reaches back. The detail read keeps the newest 2000 readings
rather than the oldest.
This commit is contained in:
Marc-André Bombeck committed 2026-10-21 22:40:43 +02:00
1 parent 5f563623d7
commit e482f76508
16 files changed
+165 -30

No files matched your search

+3 -2
View File
@@ -10207,10 +10207,11 @@
"high": "If this straight line continued, it would reach the upper end of your reference range around {date}. That is a projection, not a forecast.",
"low": "If this straight line continued, it would reach the lower end of your reference range around {date}. That is a projection, not a forecast."
},
"beyond_horizon": "At this pace the line stays inside your reference range for at least three more years.",
"beyond_horizon": "At this pace the line stays inside your reference range for more than {years} years, the span your readings cover.",
"no_exit": "The line heads away from the edges of your reference range.",
"already_outside": "The line already sits outside your reference range.",
"no_clear_trend": "Across these readings the change is not clearly different from no change, so no projection is drawn."
"no_clear_trend": "Across these readings the change is not clearly different from no change, so no projection is drawn.",
"stale": "The newest reading is from {date}, more than a year ago. The line is shown as of then, without a projection."
},
"interval": "95 % interval of the yearly change: {lo} to {hi} {unit}."
}