mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 21:32:18 +00:00
Ketones had to live in a custom metric, with the glucose-ketone index typed in by hand beside it, where it drifted from the readings it came from. - Type: BLOOD_KETONES (beta-hydroxybutyrate, mmol/L, migration 0496), plausible from 0 to 10: the blood ketone meters read 0.0 to 8.0 and print HI above it, and a venous value off a lab sheet fits under 10. Zero is a real reading. No band, no direction, no personal record, off the Coach snapshot and the correlations; readable over MCP and owned by the glucose module like glucose. - Entry: choosing blood ketones in the measurement form also takes the glucose from the same fingerstick, in the account's glucose unit. Both rows go through the array arm of POST /api/measurements with one timestamp, so they land in one transaction or not at all. - Index: glucose (mg/dL / 18.0182, the tree's one factor) over ketones, computed at read time and never stored. Each ketone reading above zero pairs with the glucose reading at the same instant, else the nearest one within 15 minutes either side; a tie goes to the same source, then to the earlier reading. Nothing pairs across a wider gap. - Surfaces: GET /api/measurements/series takes kind=ketones and kind=glucoseKetoneIndex (each point names the paired readings), and the day carries glucoseKetoneIndex when both reading types are visible. The new Ketones page charts the readings with the index beneath; the day view shows the index beside the value tiles; the doctor report, its PDF and the clinician share print it in the glucose group when both leaves are chosen, since beside the ketones it gives the glucose back. - FHIR: ketone readings export under LOINC 104816-4 (Beta hydroxybutyrate [Moles/volume] in Blood). The index is left out: it has no LOINC term, and both readings it is built from are in the bundle. - The measurement form's action row moved into its own component to keep the form inside its size budget. OpenAPI regenerated; all ten locales; the import unit table lists the type.
92 lines
3.9 KiB
JSON
92 lines
3.9 KiB
JSON
{
|
|
"$comment": "Production files over 800 lines and their length. Maintained by src/__tests__/source-size-ratchet.test.ts.",
|
|
"count": 84,
|
|
"total": 94047,
|
|
"entries": {
|
|
"app/medications/page-client.tsx": 839,
|
|
"components/charts/mood-chart.tsx": 1166,
|
|
"components/cycle/log-day-sheet.tsx": 1639,
|
|
"components/insights/coach-panel/chat-bubble.tsx": 822,
|
|
"components/insights/coach-panel/coach-conversation.tsx": 1278,
|
|
"components/insights/coach-panel/use-coach.ts": 1486,
|
|
"components/insights/derived/vitals-dashboard.tsx": 1033,
|
|
"components/insights/health-score-card.tsx": 1023,
|
|
"components/insights/insights-tab-strip.tsx": 1087,
|
|
"components/measurements/measurement-form.tsx": 815,
|
|
"components/medications/detail/medication-detail-tabs.tsx": 1157,
|
|
"components/medications/medication-table.tsx": 853,
|
|
"components/medications/wizard/wizard-payload.ts": 1414,
|
|
"components/mood/mood-list.tsx": 1408,
|
|
"components/records/life-circumstances-manager.tsx": 828,
|
|
"components/timeline/timeline-chart.tsx": 1093,
|
|
"components/timeline/timeline-geometry.ts": 1288,
|
|
"lib/ai/anthropic-client.ts": 804,
|
|
"lib/ai/coach/about-me.ts": 1012,
|
|
"lib/ai/coach/coach-prose-grounding.ts": 1091,
|
|
"lib/ai/coach/persistence.ts": 1218,
|
|
"lib/ai/coach/results/metric-table-tool.ts": 1102,
|
|
"lib/ai/coach/snapshot.ts": 1346,
|
|
"lib/ai/coach/stream-events.ts": 811,
|
|
"lib/ai/coach/types.ts": 1008,
|
|
"lib/ai/codex-client.ts": 907,
|
|
"lib/ai/prompts/insight-generator.ts": 1115,
|
|
"lib/ai/provider.ts": 1628,
|
|
"lib/analytics/score/reader.ts": 998,
|
|
"lib/analytics/sleep-night.ts": 1345,
|
|
"lib/analytics/summaries-slice.ts": 1178,
|
|
"lib/cache/server-cache.ts": 848,
|
|
"lib/cycle/prediction.ts": 883,
|
|
"lib/daily/digest.ts": 1317,
|
|
"lib/daily/load-digest.ts": 1000,
|
|
"lib/daily/today-overview.ts": 838,
|
|
"lib/dashboard-layout.ts": 977,
|
|
"lib/dashboard/snapshot.ts": 1550,
|
|
"lib/day/records.ts": 1174,
|
|
"lib/export/backup-plan.ts": 838,
|
|
"lib/export/coach-backup.ts": 1070,
|
|
"lib/export/profile-backup.ts": 1019,
|
|
"lib/fitbit/client.ts": 1262,
|
|
"lib/fitbit/sync-core.ts": 951,
|
|
"lib/gamification/achievements-result.ts": 1094,
|
|
"lib/gamification/achievements.ts": 913,
|
|
"lib/google-health/mappers.ts": 1295,
|
|
"lib/google-health/sync-core.ts": 1621,
|
|
"lib/idempotency.ts": 879,
|
|
"lib/illness/correlation.ts": 1059,
|
|
"lib/import/health-connect/import.ts": 1689,
|
|
"lib/import/unzip-export-xml.ts": 825,
|
|
"lib/insights/comprehensive-aggregator.ts": 868,
|
|
"lib/insights/comprehensive-generate.ts": 1674,
|
|
"lib/insights/correlation-channel-series.ts": 1339,
|
|
"lib/insights/correlation-discovery.ts": 1240,
|
|
"lib/insights/correlations.ts": 1026,
|
|
"lib/insights/features.ts": 1875,
|
|
"lib/insights/mood-aggregates.ts": 1053,
|
|
"lib/integrations/status.ts": 1448,
|
|
"lib/jobs/coach-nudge.ts": 1084,
|
|
"lib/jobs/insight-pregenerate.ts": 1189,
|
|
"lib/jobs/medication-intake-import.ts": 819,
|
|
"lib/jobs/offhost-backup.ts": 1094,
|
|
"lib/jobs/reaction-line.ts": 803,
|
|
"lib/managed-profiles/handover.ts": 986,
|
|
"lib/mcp/record-search.ts": 1397,
|
|
"lib/mcp/rich-reads.ts": 1471,
|
|
"lib/measurements/dense-intraday-retention.ts": 1016,
|
|
"lib/measurements/import-apple-health-export.ts": 1722,
|
|
"lib/medications/scheduling/cadence.ts": 976,
|
|
"lib/medications/scheduling/recurrence.ts": 1100,
|
|
"lib/medications/scheduling/slot-upsert.ts": 912,
|
|
"lib/notifications/senders/apns.ts": 1100,
|
|
"lib/oura/sync.ts": 900,
|
|
"lib/rollups/measurement-rollups.ts": 1302,
|
|
"lib/search/search-records.ts": 996,
|
|
"lib/sharing/grants.ts": 806,
|
|
"lib/support/report.ts": 903,
|
|
"lib/telegram-webhook-handlers.ts": 1341,
|
|
"lib/validations/inbound-documents.ts": 1018,
|
|
"lib/withings/sync-sleep.ts": 884,
|
|
"lib/withings/sync.ts": 933,
|
|
"proxy.ts": 846
|
|
}
|
|
}
|