{
  "id": "cupscode",
  "kind": "datatype",
  "status": "stable",
  "name": "Código CUP/CUPS según el nombre del campo",
  "doc": "ES datatype for 'Código CUP/CUPS según el nombre del campo' (cupscode) from rules in context 'medical'. CUPS (Catálogo Único de Procedimientos Sanitarios) codes are used in Spain to identify medical procedures. Format: 5 digits (3+2) optionally followed by a dot and 2-3 additional digits.",
  "is_pii": false,
  "categories": [
    "medical"
  ],
  "country": [
    "ES"
  ],
  "langs": [
    "es"
  ],
  "classification": "identifier",
  "regexp": "^[0-9]{3}[0-9]{2}(\\.[0-9]{2,3})?$",
  "examples": [
    {
      "value": "12345",
      "description": "CUPS code with 5 digits (3+2 format)",
      "valid": true
    },
    {
      "value": "12345.67",
      "description": "CUPS code with 5 digits and 2-digit extension",
      "valid": true
    },
    {
      "value": "12345.678",
      "description": "CUPS code with 5 digits and 3-digit extension",
      "valid": true
    }
  ],
  "detected_by": {
    "tools": [
      "metacrafter",
      "pythonstdnum"
    ],
    "metacrafter_rules": [
      {
        "rule": "escupfield",
        "type": "field",
        "match": "text",
        "file": "es/es_med.yaml"
      },
      {
        "rule": "escupvalue",
        "type": "data",
        "match": "ppr",
        "file": "es/es_med.yaml"
      }
    ]
  },
  "quality": {
    "score": 65,
    "missing": [
      "negative example",
      "source link",
      "mapping (Wikidata, Schema.org, ...)",
      "translation"
    ]
  },
  "source": {
    "path": "data/datatypes/ES/medical/cupscode.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/ES/medical/cupscode.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/ES/medical/cupscode.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/cupscode",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/cupscode.json"
  }
}