Jump to content

Data fields: Difference between revisions

Add Ingredients field + substances and traces enhancement
(Add serving_size issues)
(Add Ingredients field + substances and traces enhancement)
Line 47: Line 47:


See [https://github.com/openfoodfacts/openfoodfacts-server/issues?q=is%3Aissue+is%3Aopen+quantity+label%3Aquantity issues related to <code>quantity</code>].
See [https://github.com/openfoodfacts/openfoodfacts-server/issues?q=is%3Aissue+is%3Aopen+quantity+label%3Aquantity issues related to <code>quantity</code>].
==== Ingredients ====
This field lists the ingredients of the product. This field is '''one of the most important''' as it is used for:
* Nova calculation
* Nutri-Score calculation: it is used to calculate the proportion of fruit and nuts
* evaluation of some food preferences such as vegetarians, vegans, etc.
* automatic identification of allergens (both substances and traces, see below)
* etc.
Thanks to automatic Optical Characters Recognition (OCR), this field can be filled by softwares. But OCR is not always good, and you should always verify the result.
In the database, this field is called <code>ingredients_[country code]</code>.
See [https://github.com/openfoodfacts/openfoodfacts-server/issues?q=is%3Aissue+is%3Aopen+ingredients+label%3Aingredients issues related to <code>ingredients</code>].




==== Substances or products causing allergies or intolerances ====
==== Substances or products causing allergies or intolerances ====
The substances are ingredients that are actually in the product, which could cause common allergies.  
The substances are ingredients that are actually in the product, which could cause common allergies. This field can be filled by hand, but is also completed by automatic ingredients analysis.


Examples:
Examples:
Line 64: Line 78:
==== Traces ====
==== Traces ====
The traces are ingredients which are not used for the product itself but lay in the factory or the production process: the product might contains traces of these ingredients. Traces are really important if you are allergic.
The traces are ingredients which are not used for the product itself but lay in the factory or the production process: the product might contains traces of these ingredients. Traces are really important if you are allergic.
This field can be filled by hand, but is also completed by automatic ingredients analysis.


Examples:
Examples: