{
  "id": "usda_ndb_number",
  "kind": "datatype",
  "status": "draft",
  "name": "USDA Nutrient Databank number (NDB number)",
  "doc": "Five-digit number of a food in the USDA National Nutrient Database for Standard Reference (SR, now SR Legacy in FoodData Central), such as 09003 for raw apples. Files that store it as a number lose the leading zero, so four-digit values occur. FoodData Central gives each SR Legacy food its own FDC ID (usda_fdc_id) and keeps the NDB number as an attribute.",
  "is_pii": false,
  "categories": [
    "agriculture"
  ],
  "country": [
    "US"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^\\d{4,5}$",
  "examples": [
    {
      "value": "09003",
      "description": "Apples, raw, with skin; FDC ID 171688",
      "valid": true
    },
    {
      "value": "15167",
      "description": "Oyster; Wikidata example",
      "valid": true
    },
    {
      "value": "9003",
      "description": "The same apple record with the leading zero lost, as in the FoodData Central API",
      "valid": true
    },
    {
      "value": "81100500",
      "description": "Eight-digit FNDDS food code",
      "valid": false
    }
  ],
  "mappings": {
    "wikidata": "P1978"
  },
  "links": [
    {
      "type": "doc",
      "url": "https://www.ars.usda.gov/ARSUserFiles/80400525/Data/SR-Legacy/SR-Legacy_Doc.pdf"
    },
    {
      "type": "doc",
      "url": "https://fdc.nal.usda.gov/"
    },
    {
      "type": "wikidata",
      "url": "https://www.wikidata.org/wiki/Property:P1978"
    }
  ],
  "translations": {
    "ru": {
      "name": "Номер продукта в базе питательных веществ USDA (NDB number)",
      "doc": "Пятизначный номер продукта в Национальной базе данных питательных веществ Минсельхоза США (SR Legacy)."
    }
  },
  "quality": {
    "score": 90,
    "missing": [
      "detector coverage"
    ]
  },
  "source": {
    "path": "data/datatypes/US/agriculture/usda_ndb_number.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/US/agriculture/usda_ndb_number.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/US/agriculture/usda_ndb_number.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/usda_ndb_number",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/usda_ndb_number.json"
  }
}