{
  "id": "eu_erasmus_code",
  "kind": "datatype",
  "status": "draft",
  "name": "Erasmus institution code",
  "doc": "Code of a higher education institution that holds the Erasmus Charter for Higher Education. It has three parts, a country part of three characters (one letter and two spaces, two letters and one space, or the three letters IRL or LUX), an abbreviation of the city in capital letters and hyphens, and a number of two or three digits, as in E MADRID03 for the Universidad Complutense de Madrid and PL WARSZAW02 for the Warsaw University of Technology. The city part tells where the code was issued. Tables and web pages often keep one space or none after the country letters (I MILANO03), and the regexp takes these spellings too. Mobility tables of universities give it for the home or host institution of a student.",
  "parent": "id",
  "is_pii": false,
  "categories": [
    "education"
  ],
  "country": [
    "EU"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^(?:IRL|LUX|[A-Z]{2} ?|[A-Z] {0,2})[A-Z][A-Z-]*[A-Z]\\d{2,3}$",
  "examples": [
    {
      "value": "E  MADRID03",
      "description": "Universidad Complutense de Madrid",
      "valid": true
    },
    {
      "value": "PL WARSZAW02",
      "description": "Politechnika Warszawska",
      "valid": true
    },
    {
      "value": "F  STRASBO48",
      "description": "Université de Strasbourg",
      "valid": true
    },
    {
      "value": "I MILANO03",
      "description": "Università Cattolica del Sacro Cuore, written with one space",
      "valid": true
    },
    {
      "value": "03MADRID",
      "description": "the number first",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://eche-list.erasmuswithoutpaper.eu/docs/01_ECHE_DATA/02_ERASMUS.md"
    },
    {
      "type": "doc",
      "url": "https://wikis.ec.europa.eu/display/NAITDOC/ECHE+-+Erasmus+Charter+for+Higher+Education"
    }
  ],
  "translations": {
    "es": {
      "name": "Código Erasmus de institución"
    },
    "ru": {
      "name": "Код учреждения в программе Erasmus"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "erasmuscodebyname",
        "type": "field",
        "match": "regex",
        "file": "common/sdmx.yaml"
      },
      {
        "rule": "erasmuscodevalue",
        "type": "data",
        "match": "func",
        "file": "common/sdmx.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/EU/education/eu_erasmus_code.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/EU/education/eu_erasmus_code.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/EU/education/eu_erasmus_code.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/eu_erasmus_code",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/eu_erasmus_code.json"
  }
}