-
-
Notifications
You must be signed in to change notification settings - Fork 470
feat: add Nutri-Score % of fruits / vegetables / nuts / legumes from GS1 #12005
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #12005 +/- ##
=======================================
Coverage 50.56% 50.56%
=======================================
Files 84 84
Lines 22920 22920
Branches 5509 5509
=======================================
Hits 11589 11589
Misses 9917 9917
Partials 1414 1414 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
New fields in GS1 data model: https://navigator.gs1.org/gdsn/class-details?name=NutritionalProgramIngredientTypeCode&version=12 As of 2025/06/01, the nutritionalProgramIngredients values seem to refer to the old Nutri-Score formula https://www.gs1.nl/kennisbank/gs1-data-source/levensmiddelen-drogisterij/welke-data/nutri-score/ (in Dutch) |
/update_tests_results |
|
GS1 has added support for some fields that are necessary to compute the Nutri-Score, like adding the % of fruits / vegetables / legumes. We do get some of those from some producers (e.g Bonduelle, but for the old Nutri-Score fields it seems).
This PR adds some support + some comments and links in the code.
There are more fields we could add (which category should be used for the Nutri-Score: fats, nuts etc.). But so far I have not seen it in the data we receive yet.