mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 20:42:43 +00:00
With an analyte, the Coach's labs block read the newest 4,000 lab rows of every marker and matched the asked-for one in memory afterwards. An account with that many newer readings of other markers lost the marker's older readings, so its count and first date named a shorter history than the record holds, or the marker vanished. The match now runs in SQL before the row cap, on the biomarker's name for a linked row and the row's own name otherwise, and the history compares units with sameLabUnit, so a reading stored as "MG/DL" beside "mg/dL" stays in the series.