---
id: "gb_hrg_code"
kind: "datatype"
status: "draft"
is_pii: false
name: "Healthcare Resource Group code (HRG4)"
regexp: "^[A-Z]{2}\\d{2}[A-Z]$"
categories: ["medical"]
country: ["GB"]
langs: ["common"]
quality: 90
url: "https://registry.apicrafter.io/datatype/gb_hrg_code"
---

# Healthcare Resource Group code (HRG4) (`gb_hrg_code`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Code of a Healthcare Resource Group of the NHS, a group of hospital treatments that use similar resources, used for payment and reference costs in England and in Northern Ireland statistics. An HRG4 code has five characters: two letters for the chapter and subchapter (AA for the nervous system), two digits and a letter for the split by complexity, such as AA22G or AA26H. HRG4 is maintained by the National Casemix Office of NHS England.

- Personal data (PII): no
- Categories: Medical/pharma identifiers (medical)
- Countries: United Kingdom (GB)
- Languages: Common to most languages (common)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^[A-Z]{2}\d{2}[A-Z]$
```

## Examples

- `AA22G` — Cerebrovascular accident, nervous system infections or encephalopathy, CC score 0-4
- `AA26H`
- `AA2G` (invalid example)

## Metacrafter rules

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

- `gbhrgcodebyname` (field, `gb/gb_b14.yaml`)

## Supported by tools

- [`metacrafter`](https://registry.apicrafter.io/tool/metacrafter.md)

## Translations

- ru: Код группы ресурсов здравоохранения (HRG)

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/Healthcare_Resource_Group>

## Quality

Score 90/100. Missing: mapping (Wikidata, Schema.org, ...).

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