Chart intake by active ingredient instead of medication name #2

Merged
brian merged 1 commit from feature/ingredient-intake-chart into master 2026-06-08 16:55:16 +00:00
Owner

The intake chart now totals each active ingredient across every source,
so the same ingredient from multiple meds/supplements rolls up together
(e.g. Acetaminophen from three meds, or iron from three supplements).

  • /medications/history now returns each dose's ingredient breakdown
  • Chart aggregates amount = per-unit ingredient amount x pills taken,
    keyed by normalized ingredient name
  • Per-ingredient units (mg/mcg/IU) shown in legend and tooltip
  • Chart defaults to empty; user selects which ingredients to view
  • Meds without ingredient rows are excluded, with a hint to add them
  • Scan now always populates at least one active ingredient
  • Ingredient editor labeled "Active ingredients" for Rx/OTC,
    "Ingredients" for supplements

Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com

The intake chart now totals each active ingredient across every source, so the same ingredient from multiple meds/supplements rolls up together (e.g. Acetaminophen from three meds, or iron from three supplements). - /medications/history now returns each dose's ingredient breakdown - Chart aggregates amount = per-unit ingredient amount x pills taken, keyed by normalized ingredient name - Per-ingredient units (mg/mcg/IU) shown in legend and tooltip - Chart defaults to empty; user selects which ingredients to view - Meds without ingredient rows are excluded, with a hint to add them - Scan now always populates at least one active ingredient - Ingredient editor labeled "Active ingredients" for Rx/OTC, "Ingredients" for supplements Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The intake chart now totals each active ingredient across every source,
so the same ingredient from multiple meds/supplements rolls up together
(e.g. Acetaminophen from three meds, or iron from three supplements).

- /medications/history now returns each dose's ingredient breakdown
- Chart aggregates amount = per-unit ingredient amount x pills taken,
  keyed by normalized ingredient name
- Per-ingredient units (mg/mcg/IU) shown in legend and tooltip
- Chart defaults to empty; user selects which ingredients to view
- Meds without ingredient rows are excluded, with a hint to add them
- Scan now always populates at least one active ingredient
- Ingredient editor labeled "Active ingredients" for Rx/OTC,
  "Ingredients" for supplements

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
brian merged commit c8292227b9 into master 2026-06-08 16:55:16 +00:00
brian deleted branch feature/ingredient-intake-chart 2026-06-08 16:55:16 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
brian/medsync!2
No description provided.