{
  "id": "ca_wsc_drainage_area_code",
  "kind": "datatype",
  "status": "draft",
  "name": "Canadian drainage area code (Water Survey of Canada, SDAC)",
  "doc": "Code of a drainage area of Canada in the hierarchy of the Water Survey of Canada, which Statistics Canada publishes as the Standard Drainage Area Classification (SDAC 2003): two digits for one of the 11 major drainage areas (05 Nelson River, 08 Pacific), a letter added for one of the 164 sub-drainage areas (05L) and a second letter for one of the 974 sub-sub-drainage areas (05LJ). Hydrometric station numbers begin with the sub-sub-drainage area code (ca_wsc_station_number). The National Hydro Network and the watershed layers of Agriculture and Agri-Food Canada hold it in fields named WSCMDA, WSCSDA, WSCSSDA, FDA, SUB_EC or SUBSUBBASI.",
  "parent": "id",
  "is_pii": false,
  "categories": [
    "environment",
    "geo"
  ],
  "country": [
    "CA"
  ],
  "langs": [
    "en",
    "fr"
  ],
  "classification": "categorical",
  "regexp": "^(?:0[1-9]|1[01])(?:[A-Z]{1,2})?$",
  "examples": [
    {
      "value": "05LJ",
      "description": "a sub-sub-drainage area of the Nelson River drainage area",
      "valid": true
    },
    {
      "value": "05L",
      "description": "sub-drainage area Lake Winnipegosis and Lake Manitoba",
      "valid": true
    },
    {
      "value": "05",
      "description": "major drainage area Nelson River",
      "valid": true
    },
    {
      "value": "08MF",
      "valid": true
    },
    {
      "value": "12",
      "description": "there are eleven major drainage areas",
      "valid": false
    },
    {
      "value": "5LJ",
      "description": "the major drainage area has two digits",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://www.statcan.gc.ca/en/subjects/standard/sdac/sdacinfo1"
    },
    {
      "type": "doc",
      "url": "https://wateroffice.ec.gc.ca/station_metadata/station_list_help_e.html"
    }
  ],
  "translations": {
    "fr": {
      "name": "Code d'aire de drainage du Canada (CTAD)"
    },
    "ru": {
      "name": "Код водосборного бассейна Канады (WSC, SDAC)"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "cawscdrainageareacodebyname",
        "type": "field",
        "match": "regex",
        "file": "ca/ca_codes.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/CA/environment/ca_wsc_drainage_area_code.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/CA/environment/ca_wsc_drainage_area_code.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/CA/environment/ca_wsc_drainage_area_code.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/ca_wsc_drainage_area_code",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/ca_wsc_drainage_area_code.json"
  }
}