{
  "id": "fr_dpe_number",
  "kind": "datatype",
  "status": "draft",
  "name": "French energy performance diagnostic number (numéro DPE)",
  "doc": "Number of 13 characters that ADEME gives to an energy performance diagnostic (diagnostic de performance énergétique, DPE) registered in its observatory. ADEME does not publish its structure: in the open data the first two digits are the year of the diagnostic, then come two characters (a department in the numbering used before July 2021, 2A and 2B for Corsica), a letter, seven digits and a last character, which before July 2021 could be @.",
  "is_pii": false,
  "categories": [
    "realestate",
    "energy"
  ],
  "country": [
    "FR"
  ],
  "langs": [
    "fr"
  ],
  "classification": "identifier",
  "regexp": "^\\d{2}[0-9][0-9AB][A-Z]\\d{7}[0-9A-Z@]$",
  "examples": [
    {
      "value": "1682V1000961S",
      "description": "Diagnostic of 2016 in Tarn-et-Garonne",
      "valid": true
    },
    {
      "value": "1382V8000002I",
      "description": "Tertiary building, 2013",
      "valid": true
    },
    {
      "value": "1392P4000003A",
      "description": "Public building of Issy-les-Moulineaux",
      "valid": true
    },
    {
      "value": "1492P2000003@",
      "description": "Final @ of the numbering before July 2021",
      "valid": true
    },
    {
      "value": "1682V100096S",
      "description": "twelve characters",
      "valid": false
    },
    {
      "value": "16821000961S",
      "description": "no letter after the first four characters",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://www.ecologie.gouv.fr/sites/default/files/documents/Guide_pour_les_diagnostiqueurs_DPE.pdf"
    },
    {
      "type": "doc",
      "url": "https://data.ademe.fr/datasets/dpe03existant"
    },
    {
      "type": "wikipedia",
      "url": "https://fr.wikipedia.org/wiki/Diagnostic_de_performance_%C3%A9nerg%C3%A9tique"
    }
  ],
  "translations": {
    "fr": {
      "name": "Numéro DPE"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "frdpenumberbyname",
        "type": "field",
        "match": "regex",
        "file": "fr/fr_realestate.yaml"
      },
      {
        "rule": "frdpenumbervalue",
        "type": "data",
        "match": "regex",
        "file": "fr/fr_realestate.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/FR/realestate/fr_dpe_number.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/FR/realestate/fr_dpe_number.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/FR/realestate/fr_dpe_number.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/fr_dpe_number",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/fr_dpe_number.json"
  }
}