{
  "id": "gb_hrg_code",
  "kind": "datatype",
  "status": "draft",
  "name": "Healthcare Resource Group code (HRG4)",
  "doc": "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.",
  "is_pii": false,
  "categories": [
    "medical"
  ],
  "country": [
    "GB"
  ],
  "langs": [
    "common"
  ],
  "classification": "categorical",
  "regexp": "^[A-Z]{2}\\d{2}[A-Z]$",
  "examples": [
    {
      "value": "AA22G",
      "description": "Cerebrovascular accident, nervous system infections or encephalopathy, CC score 0-4",
      "valid": true
    },
    {
      "value": "AA26H",
      "valid": true
    },
    {
      "value": "AA2G",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Healthcare_Resource_Group"
    }
  ],
  "translations": {
    "ru": {
      "name": "Код группы ресурсов здравоохранения (HRG)"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "gbhrgcodebyname",
        "type": "field",
        "match": "regex",
        "file": "gb/gb_b14.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/GB/medical/gb_hrg_code.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/GB/medical/gb_hrg_code.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/GB/medical/gb_hrg_code.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/gb_hrg_code",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/gb_hrg_code.json"
  }
}