Datatypes › Government related
SDMX age code
ID sdmx_age
This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).
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.
- Categories
- Government related, Scientific
- Countries
- Global (not tied to a country)
- Languages
- Common to most languages
- Quality
- 90/100 · missing: mapping (Wikidata, Schema.org, ...)
- Metacrafter rules
- 2 rules (1 by field name, 1 by value)
sdmxagebandvaluedata, common/sdmx.yamlsdmxagebynamefield, common/sdmx.yaml
- Supported by tools
- metacrafter
Regular expression
^Y(?:\d{1,3}(?:T\d{1,3})?|_(?:GE|GT|LE|LT)\d{1,3})$
Python re syntax.
Test a value
Examples
| Value | Description |
|---|---|
| Y15T24 | 15 to 24 years |
| Y_GE65 | 65 years or more |
| Y_LT5 | under 5 years |
| Y15-24 invalid | the Eurostat spelling |
Translations
| Language | Name | Description |
|---|---|---|
| Spanish | Código de edad (SDMX) | |
| Russian | Код возраста по синтаксису SDMX |
Sources
- doc: sdmx.org/wp-content/uploads/SDMX_Guidelines_for_CDCL-1.docx
- doc: registry.sdmx.org/sdmx/v2/structure/codelist/SDMX/CL_AGE/+
Use this record
- Page URL:
https://registry.apicrafter.io/datatype/sdmx_age - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/government/sdmx_age.yamlon GitHub