{
  "id": "opscode",
  "kind": "datatype",
  "status": "stable",
  "name": "OPS procedure code (Operationen- und Prozedurenschlüssel)",
  "doc": "Code of a medical procedure in the OPS, the German procedure classification that the Federal Institute for Drugs and Medical Devices (BfArM) publishes every year and that hospitals use for DRG billing. A code has up to six characters, written as a chapter digit (1, 3, 5, 6, 8 or 9), a hyphen, three characters and, after a dot, up to two more, as in 5-314.11. The first three characters are digits; the others can also be lowercase letters, with x for other and y for unspecified procedures. Data files sometimes leave out the hyphen and the dot.",
  "is_pii": false,
  "categories": [
    "medical"
  ],
  "country": [
    "DE"
  ],
  "langs": [
    "de"
  ],
  "classification": "categorical",
  "regexp": "^[135689]-?[0-9]{2}[0-9a-z](?:\\.?[0-9a-z]{1,2})?$",
  "examples": [
    {
      "value": "5-314.11",
      "description": "Resektion der Trachea mit End-zu-End-Anastomose",
      "valid": true
    },
    {
      "value": "5-314.1",
      "description": "Resektion der Trachea",
      "valid": true
    },
    {
      "value": "1-790",
      "description": "Polysomnographie (Wikidata example of P1691)",
      "valid": true
    },
    {
      "value": "2-314.11",
      "description": "There is no chapter 2",
      "valid": false
    },
    {
      "value": "2024",
      "description": "A year, not a procedure code",
      "valid": false
    }
  ],
  "mappings": {
    "wikidata": "P1691"
  },
  "links": [
    {
      "type": "doc",
      "url": "https://www.bfarm.de/DE/Kodiersysteme/Klassifikationen/OPS-ICHI/OPS/_node.html"
    },
    {
      "type": "wikipedia",
      "url": "https://de.wikipedia.org/wiki/Operationen-_und_Prozedurenschl%C3%BCssel"
    },
    {
      "type": "wikidata",
      "url": "https://www.wikidata.org/wiki/Property:P1691"
    }
  ],
  "translations": {
    "de": {
      "name": "OPS-Kode"
    },
    "ru": {
      "name": "Код процедуры OPS",
      "doc": "Код медицинской процедуры в немецком классификаторе OPS, который ежегодно издаёт BfArM, - цифра главы, дефис, три символа и до двух символов после точки, например 5-314.11."
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "deopsfield",
        "type": "field",
        "match": "text",
        "file": "de/de_med.yaml"
      },
      {
        "rule": "deopsvalue",
        "type": "data",
        "match": "ppr",
        "file": "de/de_med.yaml"
      }
    ]
  },
  "quality": {
    "score": 100,
    "missing": []
  },
  "source": {
    "path": "data/datatypes/DE/medical/opscode.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/DE/medical/opscode.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/DE/medical/opscode.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/opscode",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/opscode.json"
  }
}