{
  "id": "casrn",
  "kind": "datatype",
  "status": "draft",
  "name": "CAS Registry Number",
  "doc": "Identifier that the Chemical Abstracts Service (CAS) gives to a chemical substance: two to seven digits, a hyphen, two digits, a hyphen and a check digit.",
  "is_pii": false,
  "categories": [
    "chemistry"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^[1-9]\\d{1,6}-\\d{2}-\\d$",
  "examples": [
    {
      "value": "7732-18-5",
      "description": "Water",
      "valid": true
    },
    {
      "value": "64-17-5",
      "description": "Ethanol",
      "valid": true
    },
    {
      "value": "50-00-0",
      "description": "Formaldehyde",
      "valid": true
    },
    {
      "value": "7732-18-57",
      "description": "One character too many",
      "valid": false
    }
  ],
  "mappings": {
    "autotype": "cas",
    "bioregistry": "cas",
    "stdnum": "casrn",
    "wikidata": "P231"
  },
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/CAS_Registry_Number"
    },
    {
      "type": "wikidata",
      "url": "https://www.wikidata.org/wiki/Property:P231"
    },
    {
      "type": "other",
      "url": "https://arthurdejong.org/python-stdnum/doc/2.2/stdnum.casrn.html"
    }
  ],
  "detected_by": {
    "tools": [
      "autotype",
      "dataprep",
      "pythonstdnum"
    ]
  },
  "quality": {
    "score": 95,
    "missing": [
      "translation"
    ]
  },
  "source": {
    "path": "data/datatypes/any/chemistry/casrn.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/chemistry/casrn.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/chemistry/casrn.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/casrn",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/casrn.json"
  }
}