---
id: "opscode"
kind: "datatype"
status: "stable"
is_pii: false
categories: ["medical"]
country: ["DE"]
langs: ["de"]
quality: 100
url: "http://registry.apicrafter.io/datatype/opscode"
---

# OPS procedure code (Operationen- und Prozedurenschlüssel) (`opscode`)

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.

- Personal data (PII): no
- Categories: Medical/pharma identifiers (medical)
- Countries: Germany (DE)
- Languages: German (de)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^[135689]-?[0-9]{2}[0-9a-z](?:\.?[0-9a-z]{1,2})?$
```

## Examples

- `5-314.11` — Resektion der Trachea mit End-zu-End-Anastomose
- `5-314.1` — Resektion der Trachea
- `1-790` — Polysomnographie (Wikidata example of P1691)
- `2-314.11` (invalid example) — There is no chapter 2
- `2024` (invalid example) — A year, not a procedure code

## Mappings

- wikidata: `P1691`

## Metacrafter rules

2 rules: 1 match the field name, 1 match values.

- `deopsfield` (field, `de/de_med.yaml`)
- `deopsvalue` (data, `de/de_med.yaml`)

## Supported by tools

- `metacrafter`

## Translations

- de: OPS-Kode
- ru: Код процедуры OPS: Код медицинской процедуры в немецком классификаторе OPS, который ежегодно издаёт BfArM, - цифра главы, дефис, три символа и до двух символов после точки, например 5-314.11.

## Sources

- doc: <https://www.bfarm.de/DE/Kodiersysteme/Klassifikationen/OPS-ICHI/OPS/_node.html>
- wikipedia: <https://de.wikipedia.org/wiki/Operationen-_und_Prozedurenschl%C3%BCssel>
- wikidata: <https://www.wikidata.org/wiki/Property:P1691>

## Quality

Score 100/100.

JSON: <http://registry.apicrafter.io/api/v1/datatypes/opscode.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/DE/medical/opscode.yaml>
