fix: Nutrition Cluster Abschluss - Metadaten-Konsistenz
All checks were successful
Deploy Development / deploy (push) Successful in 53s
Build Test / lint-backend (push) Successful in 0s
Build Test / build-frontend (push) Successful in 14s

Behebt letzte Inkonsistenzen im Export:

1. protein_g_per_kg:
   - time_window: 'mixed' → '7d' (dominante Komponente)
   - Kommentar angepasst: weight ist snapshot, aber protein (7d) ist primär
   - known_limitations dokumentiert die Inkonsistenz weiterhin

2. protein_adequacy_28d:
   - unit: 'score' → 'score (0-100)' (Konsistenz mit macro_consistency_score)
   - Klarere Skalen-Angabe im Export

Finaler Export-Status: 14/14 Nutrition Placeholders konsistent
- Alle haben korrekte Category (Ernährung)
- Alle haben präzise Units
- Alle haben eindeutige Time Windows
- Alle haben korrekte Output Types

Abschlussarbeit für Ernährungs-Cluster.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Lars 2026-04-02 13:07:35 +02:00
parent ffdf9074c3
commit 5bf8895fb3

View File

@ -208,7 +208,7 @@ def register_nutrition_part_b():
),
business_meaning="Zentraler Zielindikator für Muskelerhalt und Aufbau",
unit="g/kg/day",
time_window="mixed", # protein 7d, weight snapshot
time_window="7d", # dominante Komponente (protein); weight ist snapshot, aber secondary
output_type=OutputType.NUMERIC,
placeholder_type=PlaceholderType.INTERPRETED,
format_hint="Dezimalzahl (1-2 Stellen)",
@ -367,7 +367,7 @@ def register_nutrition_part_b():
"Final score: average over 28d."
),
business_meaning="Verdichteter Zielerreichungsindikator für Proteinversorgung",
unit="score",
unit="score (0-100)",
time_window="28d",
output_type=OutputType.NUMERIC,
placeholder_type=PlaceholderType.SCORE,