{
  "id": "year_quarter",
  "kind": "datatype",
  "status": "draft",
  "name": "Quarter with its year",
  "doc": "A quarter of a calendar or fiscal year written with the year: 2021Q4, 2021Q04 (the report identifiers of the Australian Independent Parliamentary Expenses Authority), 2021-Q4, 2021 Q4 or Q4 2021. A quarter number alone is quarter; the SDMX time period 2021-Q4 is sdmx_reporting_period; a quarter given by its last month (Sep-17) is yearmonth_english.",
  "is_pii": false,
  "categories": [
    "datetime"
  ],
  "langs": [
    "common"
  ],
  "classification": "categorical",
  "regexp": "^(?:(?:1[89]|20)\\d{2}[- ]?Q0?[1-4]|Q[1-4][- ](?:1[89]|20)\\d{2})$",
  "examples": [
    {
      "value": "2021Q04",
      "description": "IPEA report identifier of October to December 2021",
      "valid": true
    },
    {
      "value": "2022Q03",
      "valid": true
    },
    {
      "value": "2021 Q4",
      "valid": true
    },
    {
      "value": "Q4 2021",
      "valid": true
    },
    {
      "value": "2021Q5",
      "valid": false
    },
    {
      "value": "4",
      "description": "a quarter without its year: quarter",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Calendar_year#Quarters"
    }
  ],
  "translations": {
    "ru": {
      "name": "Квартал года"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "yearquartervalue",
        "type": "data",
        "match": "func",
        "file": "common/periods.yaml"
      },
      {
        "rule": "esyearquartervalue",
        "type": "data",
        "match": "func",
        "file": "es/es_datetime.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/any/datetime/year_quarter.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/datetime/year_quarter.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/datetime/year_quarter.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/year_quarter",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/year_quarter.json"
  }
}