{
  "id": "sdmx_age",
  "kind": "datatype",
  "status": "draft",
  "name": "SDMX age code",
  "doc": "Code of an age or an age band written with the syntax of the SDMX guidelines for code lists. Y stands for years, a number after it is an age (Y15), T joins the ends of a band (Y15T24 for 15 to 24 years) and the operators GE, GT, LE and LT after an underscore give an open band (Y_GE65 for 65 years or more, Y_LT5 for under 5). The guidelines allow the syntax and do not impose it; statistical offices that follow it, such as the statistics institute of the Canary Islands, give these codes in the age dimension of their tables (EDAD_CODE). Eurostat writes its bands with a hyphen (Y15-24), see eurostat_age_class. The regexp covers ages in years; the total _T and codes in months or days are left out.",
  "is_pii": false,
  "categories": [
    "government",
    "science"
  ],
  "langs": [
    "common"
  ],
  "classification": "categorical",
  "regexp": "^Y(?:\\d{1,3}(?:T\\d{1,3})?|_(?:GE|GT|LE|LT)\\d{1,3})$",
  "examples": [
    {
      "value": "Y15T24",
      "description": "15 to 24 years",
      "valid": true
    },
    {
      "value": "Y_GE65",
      "description": "65 years or more",
      "valid": true
    },
    {
      "value": "Y_LT5",
      "description": "under 5 years",
      "valid": true
    },
    {
      "value": "Y15-24",
      "description": "the Eurostat spelling",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://sdmx.org/wp-content/uploads/SDMX_Guidelines_for_CDCL-1.docx"
    },
    {
      "type": "doc",
      "url": "https://registry.sdmx.org/sdmx/v2/structure/codelist/SDMX/CL_AGE/+"
    }
  ],
  "translations": {
    "es": {
      "name": "Código de edad (SDMX)"
    },
    "ru": {
      "name": "Код возраста по синтаксису SDMX"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "sdmxagebandvalue",
        "type": "data",
        "match": "func",
        "file": "common/sdmx.yaml"
      },
      {
        "rule": "sdmxagebyname",
        "type": "field",
        "match": "regex",
        "file": "common/sdmx.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/any/government/sdmx_age.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/government/sdmx_age.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/government/sdmx_age.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/sdmx_age",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/sdmx_age.json"
  }
}