---
id: "ca_dguid"
kind: "datatype"
status: "draft"
is_pii: false
name: "Statistics Canada Dissemination Geography Unique Identifier (DGUID)"
regexp: "^(?:19|20)\\d{2}[AS]\\d{4}[0-9A-Z.]{1,12}$"
categories: ["geo", "government"]
country: ["CA"]
langs: ["en", "fr"]
quality: 90
url: "https://registry.apicrafter.io/datatype/ca_dguid"
---

# Statistics Canada Dissemination Geography Unique Identifier (DGUID) (`ca_dguid`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Identifier Statistics Canada gives every geographic area it publishes data for, so that an area of one type and one year is unique across its products. It has 10 to 21 characters: the four-digit vintage (the reference year of the geography), the type (A for administrative areas, S for statistical areas), a four-digit schema that names the kind of area (0000 Canada, 0002 province or territory, 0003 census division, 0500 economic region, 0011 forward sortation area) and the identifier of the area in that geography, 1 to 12 characters (the SGC code of casgc for provinces, census divisions and subdivisions). Census profiles, boundary files and the tables of the Common Output Data Repository carry it in a field named DGUID.

- Parent datatype: [`id`](https://registry.apicrafter.io/datatype/id.md)
- Personal data (PII): no
- Categories: Geographic identifiers (geo), Government related (government)
- Countries: Canada (CA)
- Languages: English (en), French (fr)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^(?:19|20)\d{2}[AS]\d{4}[0-9A-Z.]{1,12}$
```

## Examples

- `2011A000011124` — Canada, 2011
- `2011A000224` — Quebec, 2011
- `2011A00033520` — census division of Toronto, 2011
- `2011S05003530` — economic region of Toronto, 2011
- `2011A0011K1J` — forward sortation area K1J, 2011
- `3520` (invalid example) — the SGC code alone (casgc)
- `2011X000224` (invalid example) — the type is A or S

## Metacrafter rules

2 rules: 1 match the field name, 1 match values.

- `cadguidbyname` (field, `ca/ca_codes.yaml`)
- `cadguidvalue` (data, `ca/ca_codes.yaml`)

## Supported by tools

- [`metacrafter`](https://registry.apicrafter.io/tool/metacrafter.md)

## Translations

- fr: Identificateur unique des géographies de diffusion (IDUGD) de Statistique Canada
- ru: Уникальный идентификатор географии распространения Статистики Канады (DGUID)

## Sources

- doc: <https://www150.statcan.gc.ca/n1/pub/92f0138m/92f0138m2019001-eng.htm>

## Quality

Score 90/100. Missing: mapping (Wikidata, Schema.org, ...).

JSON: <https://registry.apicrafter.io/api/v1/datatypes/ca_dguid.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/CA/geo/ca_dguid.yaml>
