mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-11 13:52:20 +00:00
The correlation discovery matrix gained two non-MeasurementType channels (medication compliance, symptom severity), but the Coach get_correlations reader still filtered its measurement query by hand and never built the new channels. The channel keys leaked into the Postgres enum cast and threw for any user with medication or illness data. Extract the route's two channel-series fetchers into a shared module (correlation-channel-series.ts) so both consumers build the channels identically, then wire the reader to derive its type filter from discoveryMeasurementTypes and fold the fetched compliance + symptom series into the discovery input. The reader now humanises the channel keys to "medication adherence" / "symptom severity".