{
  "metadata": {
    "version": "2024.1",
    "source": "Official Santé publique France test cases",
    "reference": "FSA-NPS Algorithm Documentation",
    "license": "Public Domain (official government data)",
    "url": "https://nutriscore.eclarion.com/methodology"
  },
  "official_test_cases": [
    {
      "id": "OFF001",
      "product_name": "Apple Sauce (Tinned)",
      "category": "general",
      "nutritional_values": {
        "energy_kj": 321,
        "sugars_g": 17.1,
        "saturated_fat_g": 0,
        "salt_g": 0,
        "fiber_g": 1.9,
        "protein_g": 0.2,
        "fruits_vegetables_nuts_percent": 90
      },
      "official_result": {
        "negative_points": 5,
        "positive_points": 5,
        "final_score": 0,
        "grade": "A"
      },
      "note": "High fruit content balances sugar content"
    },
    {
      "id": "OFF002",
      "product_name": "Sea Salt",
      "category": "general",
      "nutritional_values": {
        "energy_kj": 0,
        "sugars_g": 0,
        "saturated_fat_g": 0,
        "salt_g": 84.5,
        "fiber_g": 0,
        "protein_g": 0,
        "fruits_vegetables_nuts_percent": 0
      },
      "official_result": {
        "negative_points": 20,
        "positive_points": 0,
        "final_score": 20,
        "grade": "E"
      },
      "note": "Maximum salt points (20) - extreme case"
    },
    {
      "id": "OFF003",
      "product_name": "Granulated Sugar",
      "category": "general",
      "nutritional_values": {
        "energy_kj": 1700,
        "sugars_g": 100,
        "saturated_fat_g": 0,
        "salt_g": 0,
        "fiber_g": 0,
        "protein_g": 0,
        "fruits_vegetables_nuts_percent": 0
      },
      "official_result": {
        "negative_points": 20,
        "positive_points": 0,
        "final_score": 20,
        "grade": "E"
      },
      "note": "Maximum sugar points (15) plus energy (5)"
    },
    {
      "id": "OFF004",
      "product_name": "Beef Tenderloin (Raw)",
      "category": "red_meat",
      "nutritional_values": {
        "energy_kj": 489,
        "sugars_g": 0,
        "saturated_fat_g": 0.9,
        "salt_g": 0.1,
        "fiber_g": 0,
        "protein_g": 23.7,
        "fruits_vegetables_nuts_percent": 0
      },
      "official_result": {
        "negative_points": 1,
        "positive_points": 2,
        "final_score": -1,
        "grade": "A"
      },
      "note": "Red meat with stricter thresholds - still achieves A"
    },
    {
      "id": "OFF005",
      "product_name": "Pork Loin Chop (Raw)",
      "category": "red_meat",
      "nutritional_values": {
        "energy_kj": 653,
        "sugars_g": 0,
        "saturated_fat_g": 2.8,
        "salt_g": 0.1,
        "fiber_g": 0,
        "protein_g": 23.2,
        "fruits_vegetables_nuts_percent": 0
      },
      "official_result": {
        "negative_points": 3,
        "positive_points": 2,
        "final_score": 1,
        "grade": "B"
      },
      "note": "Red meat category - B grade at 1 point"
    },
    {
      "id": "OFF006",
      "product_name": "Cheese (Standard)",
      "category": "cheese",
      "nutritional_values": {
        "energy_kj": 1523,
        "sugars_g": 0.5,
        "saturated_fat_g": 19.8,
        "salt_g": 1.8,
        "fiber_g": 0,
        "protein_g": 24.0,
        "fruits_vegetables_nuts_percent": 0
      },
      "official_result": {
        "negative_points": 22,
        "positive_points": 7,
        "final_score": 15,
        "grade": "D"
      },
      "note": "Cheese category - protein points NOT capped at 5 when negative > 11"
    },
    {
      "id": "OFF007",
      "product_name": "Soft Cheese",
      "category": "cheese",
      "nutritional_values": {
        "energy_kj": 1344,
        "sugars_g": 2.6,
        "saturated_fat_g": 18.4,
        "salt_g": 1.6,
        "fiber_g": 0,
        "protein_g": 15.0,
        "fruits_vegetables_nuts_percent": 0
      },
      "official_result": {
        "negative_points": 21,
        "positive_points": 6,
        "final_score": 15,
        "grade": "D"
      },
      "note": "Lower protein cheese example"
    },
    {
      "id": "OFF008",
      "product_name": "Animal Fats",
      "category": "fats",
      "nutritional_values": {
        "energy_kj": 3036,
        "sugars_g": 0.9,
        "saturated_fat_g": 54.7,
        "total_fat_g": 81.3,
        "salt_g": 0.6,
        "fiber_g": 0,
        "protein_g": 0.7,
        "fruits_vegetables_nuts_percent": 0
      },
      "official_result": {
        "negative_points": 22,
        "positive_points": 0,
        "final_score": 22,
        "grade": "E"
      },
      "note": "Fats category uses total_fat (10 points) not saturated_fat"
    },
    {
      "id": "OFF009",
      "product_name": "Nuts and Seeds (Plain)",
      "category": "fats",
      "nutritional_values": {
        "energy_kj": 2513,
        "sugars_g": 11.2,
        "saturated_fat_g": 6.4,
        "total_fat_g": 49.7,
        "salt_g": 0,
        "fiber_g": 7.3,
        "protein_g": 17.2,
        "fruits_vegetables_nuts_percent": 0
      },
      "official_result": {
        "negative_points": 5,
        "positive_points": 11,
        "final_score": -6,
        "grade": "A"
      },
      "note": "Fats category can achieve A with high fiber and protein"
    },
    {
      "id": "OFF010",
      "product_name": "Orange Juice",
      "category": "beverages",
      "nutritional_values": {
        "energy_kj": 201,
        "sugars_g": 9,
        "saturated_fat_g": 0,
        "salt_g": 0,
        "fiber_g": 0,
        "protein_g": 0.9,
        "fruits_vegetables_nuts_percent": 100,
        "is_water": false
      },
      "official_result": {
        "negative_points": 10,
        "positive_points": 6,
        "final_score": 4,
        "grade": "C"
      },
      "note": "100% fruit juice - beverages use special thresholds"
    },
    {
      "id": "OFF011",
      "product_name": "Soft Drink with Sweeteners",
      "category": "beverages",
      "nutritional_values": {
        "energy_kj": 29,
        "sugars_g": 1.2,
        "saturated_fat_g": 0,
        "salt_g": 0,
        "fiber_g": 0,
        "protein_g": 0.1,
        "fruits_vegetables_nuts_percent": 0,
        "is_water": false,
        "contains_sweeteners": true
      },
      "official_result": {
        "negative_points": 5,
        "positive_points": 0,
        "final_score": 5,
        "grade": "C"
      },
      "note": "Sweeteners add 4 penalty points"
    },
    {
      "id": "OFF012",
      "product_name": "Regular Soft Drink",
      "category": "beverages",
      "nutritional_values": {
        "energy_kj": 176,
        "sugars_g": 10.6,
        "saturated_fat_g": 0,
        "salt_g": 0,
        "fiber_g": 0,
        "protein_g": 0,
        "fruits_vegetables_nuts_percent": 0,
        "is_water": false
      },
      "official_result": {
        "negative_points": 12,
        "positive_points": 0,
        "final_score": 12,
        "grade": "E"
      },
      "note": "High sugar beverage - typical cola"
    },
    {
      "id": "OFF013",
      "product_name": "Water",
      "category": "beverages",
      "nutritional_values": {
        "energy_kj": 0,
        "sugars_g": 0,
        "saturated_fat_g": 0,
        "salt_g": 0,
        "fiber_g": 0,
        "protein_g": 0,
        "fruits_vegetables_nuts_percent": 0,
        "is_water": true
      },
      "official_result": {
        "grade": "A"
      },
      "note": "Water automatically receives grade A"
    },
    {
      "id": "OFF014",
      "product_name": "Margarine",
      "category": "fats",
      "nutritional_values": {
        "energy_kj": 2144,
        "sugars_g": 0.8,
        "saturated_fat_g": 28.5,
        "total_fat_g": 56.9,
        "salt_g": 0.7,
        "fiber_g": 0.3,
        "protein_g": 0.5,
        "fruits_vegetables_nuts_percent": 0
      },
      "official_result": {
        "negative_points": 18,
        "positive_points": 0,
        "final_score": 18,
        "grade": "D"
      },
      "note": "Processed fat product"
    },
    {
      "id": "OFF015",
      "product_name": "Nut Butter",
      "category": "fats",
      "nutritional_values": {
        "energy_kj": 2601,
        "sugars_g": 6.9,
        "saturated_fat_g": 9.8,
        "total_fat_g": 52.7,
        "salt_g": 0.6,
        "fiber_g": 7.9,
        "protein_g": 21.9,
        "fruits_vegetables_nuts_percent": 0
      },
      "official_result": {
        "negative_points": 9,
        "positive_points": 12,
        "final_score": -3,
        "grade": "B"
      },
      "note": "High protein and fiber nut product"
    }
  ]
}