{
  "id": "eu_waste_code",
  "kind": "datatype",
  "status": "draft",
  "name": "European List of Waste code (EWC)",
  "doc": "Six-digit code of a waste type in the European List of Waste (Commission Decision 2000/532/EC, as amended by Decision 2014/955/EU and, for battery waste, Delegated Decision (EU) 2025/934). The first pair is one of 20 chapters by the source or kind of waste, the second pair a subchapter and the third the entry; entries ending in 99 are wastes not otherwise specified. An asterisk after the code marks a hazardous waste. Codes are written in pairs separated by spaces (20 03 01) or as six digits (200301); a bare six-digit number needs column context.",
  "is_pii": false,
  "categories": [
    "environment",
    "government"
  ],
  "country": [
    "EU"
  ],
  "langs": [
    "common"
  ],
  "classification": "categorical",
  "regexp": "^(?:0[1-9]|1\\d|20)(?: (?:0[1-9]|1[0-4]) (?:0[1-9]|[1-9]\\d)|(?:0[1-9]|1[0-4])(?:0[1-9]|[1-9]\\d))\\*?$",
  "examples": [
    {
      "value": "20 03 01",
      "description": "Mixed municipal waste; List of Waste, Decision 2000/532/EC",
      "valid": true
    },
    {
      "value": "15 01 10*",
      "description": "Packaging containing residues of or contaminated by hazardous substances (hazardous); List of Waste",
      "valid": true
    },
    {
      "value": "170504",
      "description": "Soil and stones other than those mentioned in 17 05 03, written without spaces; List of Waste",
      "valid": true
    },
    {
      "value": "21 01 01",
      "description": "There is no chapter 21; the chapters run from 01 to 20",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://eur-lex.europa.eu/eli/dec/2000/532/oj"
    },
    {
      "type": "doc",
      "url": "https://eur-lex.europa.eu/eli/dec/2014/955/oj"
    }
  ],
  "translations": {
    "ru": {
      "name": "Код Европейского перечня отходов (EWC)",
      "doc": "Шестизначный код вида отходов в Европейском перечне отходов (Решение Комиссии 2000/532/EC). Пары цифр обозначают главу, подглаву и позицию; звёздочка после кода означает опасные отходы."
    }
  },
  "quality": {
    "score": 80,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)",
      "detector coverage"
    ]
  },
  "source": {
    "path": "data/datatypes/EU/environment/eu_waste_code.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/EU/environment/eu_waste_code.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/EU/environment/eu_waste_code.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/eu_waste_code",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/eu_waste_code.json"
  }
}