Jump to content

Nutrients handling in Open Food Facts: Difference between revisions

No edit summary
Line 33: Line 33:
* when the energy is written in both, there is no simple conversion ratio between kcal and kJ
* when the energy is written in both, there is no simple conversion ratio between kcal and kJ
** This is because labelling laws in EU, US, CA etc. specify that the energy fields can (or must) be computed by multiplying and summing values for carbohydrates, proteins, fat etc.
** This is because labelling laws in EU, US, CA etc. specify that the energy fields can (or must) be computed by multiplying and summing values for carbohydrates, proteins, fat etc.
** That's why we now store 2 energy fields, and not just one
** see https://esha.com/calorie-calculation-country/ for details
** see https://esha.com/calorie-calculation-country/ for details
* energy-kj and energy-kcal are the identifiers (nutrient-id) of the "Energy in kJ" and "Energy in kcal" fields.
* energy-kj and energy-kcal are the identifiers (nutrient-id) of the "Energy in kJ" and "Energy in kcal" fields.