← Learn · Clinical Coding

Explainer 3 of 4 · Intermediate level · 12–15 min What do the levels mean?

Builds on: From notes to codes

Coding and your data

Applies to England. The rules and organisations described here are those of the NHS in England. Scotland, Wales and Northern Ireland organise and fund care differently: see how each nation works.

The clinical question

Your trust’s mortality indicator is higher than expected, and your patients look expensive in a GIRFT pack. Before anyone looks at clinical practice, what should be checked in the record?

The essentials

  • SHMI takes the diagnosis from the first episode that is not a symptom, and the comorbidities from that same episode only.
  • HSMR counts deaths in hospital only, and its original version adjusts for coded palliative care, so palliative care coding and depth of coding matter for both.
  • Uncoded episodes, symptom codes and missing conditions move indicators without any change in care.
  • Check the record before drawing conclusions about practice, and name long-term conditions in every episode’s notes.

One record, many uses

The coded record of a stay is used far beyond payment. Most of these uses compare your service with others, so an incomplete record does more than lose income: it makes your patients look different from how they were.

Mortality indicators

Expected deaths are worked out from each patient’s coded diagnosis and conditions.

Costs and benchmarks

Patient-level costs and national comparisons are grouped by HRG and specialty.

GIRFT and Model Health

Length of stay, outcomes and productivity, compared like for like using codes.

Commissioning and planning

Case mix and demand for services, from frailty to cancer.

Clinical audit and research

Finding the right patients, and describing them accurately.

Payment

For work paid per case, the price follows the group.

How SHMI reads the record

The Summary Hospital-level Mortality Indicator (SHMI) compares the number of patients who died, in hospital or within 30 days of discharge, with the number expected to die given their characteristics. Each stay is placed in one of about 140 diagnosis groups. The expected risk of death then depends on the patient’s age, sex, how they were admitted, when, and their recorded long-term conditions, summarised as a comorbidity score (the Charlson index).

Two rules, in use since May 2024, decide which parts of a long stay’s record count:

  • The diagnosis group comes from the first episode whose main diagnosis is not a symptom or sign. If every episode records only a symptom, the first episode is used.
  • The comorbidity score is worked out from the other conditions coded in that same episode, and no other.

Which episode counts?

The invented patient from explainer 1, admitted as an emergency and seen by three teams.

  1. Episode 1: acute medicineBreathlessnessOther conditions coded: noneA symptom, so SHMI looks at the next episode.
  2. Episode 2: respiratoryPneumoniaOther conditions coded: none recordedThe first diagnosis that is not a symptom. Used for the diagnosis group and the comorbidity score.
  3. Episode 3: older peoplePneumoniaOther conditions coded: COPD, heart failure, diabetes, dementiaNot used. These conditions do not count towards her expected risk.

Her expected risk of death is calculated as if she had no long-term conditions, because none were coded in the episode SHMI uses.

Illustrative patient and episodes, made up for teaching. Your trust’s rules and numbers will differ.

The fix is not complicated. Every team’s notes, from the first, should name the patient’s significant long-term conditions as well as the problem they are treating. The coder can only code each episode from its own documentation.

The other indicator: HSMR

Many trusts also watch the Hospital Standardised Mortality Ratio (HSMR), bought from commercial suppliers. It comes in two versions. Dr Foster replaced its original model with HSMR+ from late 2024. CHKS still calculates HSMR using the original method, alongside its own measure, RAMI. Like SHMI, both compare observed with expected deaths using the coded record. But they are built differently, so they can disagree. The Care Quality Commission monitors SHMI; trusts use HSMR alongside it, and it is worth knowing which version your trust buys.

SHMI and HSMR side by side

The same deaths, counted and adjusted in different ways.

Who produces it

SHMINHS England, as official statistics, published monthly.

HSMRCommercial suppliers, for trusts that subscribe: Dr Foster (HSMR+) and CHKS (original method).

Which deaths count

SHMIIn hospital or within 30 days of discharge.

HSMRIn hospital only, counted across a whole continuous stay, including transfers between hospitals.

Which stays count

SHMIMost admissions, in about 140 diagnosis groups. Day cases excluded.

HSMROnly the diagnosis groups that account for about 80% of deaths in hospital: 56 in the original, 41 in HSMR+. Day cases excluded.

Long-term conditions

SHMICharlson index, from the episode used.

HSMRCharlson index in the original. HSMR+ uses a longer list (the Elixhauser-Bottle index) plus a frailty score built from coded conditions.

Other adjustments

SHMIAge, sex, admission method, month of admission.

HSMRAlso deprivation, source of admission and the number of previous admissions.

Palliative care

SHMINot adjusted; the share of stays with palliative care coding is published alongside.

HSMRThe original adjusts: a stay counts as palliative if Z51.5 is coded in any diagnosis field or it is under the palliative medicine treatment function. HSMR+ does not adjust.

Sources: NHS England SHMI methodology; CHKS, Understanding your hospital performance metrics, July 2024; Dr Foster (then Telstra Health UK) descriptions of HSMR+, 2024.

For coding, the same points apply as for SHMI, with three additions:

  • Palliative care coding moves the original HSMR. Where palliative care is not recorded consistently, the trust’s expected deaths are lower than its peers’. Agree with your palliative care team and coders how specialist palliative input is documented and coded.
  • HSMR+ draws on more of the coded record, including conditions linked to frailty, so depth of coding matters even more.
  • HSMR counts only deaths in hospital. Where patients die, in hospital, at home or in a hospice, affects HSMR but not SHMI. When the two indicators move apart, that difference is often the place to start.

Four things that move a mortality indicator without any change in care

In the recordLong-term conditions written only in a later episode, or not at all

Shows up asExpected deaths too low, so each death counts for more against the trust.

In the recordSymptoms as the main diagnosis throughout a stay

Shows up asStays grouped by symptom, often with a lower expected risk than the condition really treated.

In the recordEpisodes not coded by the deadline (an invalid main diagnosis)

Shows up asSince May 2024 these sit in their own group, with no comorbidity adjustment. NHS England found this ranged from none to almost a quarter of stays between trusts.

In the recordPalliative care not recorded, or recorded inconsistently

Shows up asSHMI does not adjust for palliative care, because trusts record it so differently. It publishes the share of stays and deaths with palliative care coding alongside, to help read the result.

Do not confuse these

A signal, not a verdict

A SHMI “higher than expected” means more patients died than the model expected. It does not say why. The first questions are about the record: depth of coding, symptom codes, uncoded episodes, palliative care recording and how same day emergency care is counted. Then case-note review. A good record means that when the indicator does flag something, it is worth acting on.

Benchmarks, costs and plans

The same record feeds every comparison of your service with others. The common problems are few, and most start in the notes or in the patient administration system.

In the recordEpisodes under the wrong consultant or specialty, often after a transfer that was never entered

Shows up asOne consultant’s outcomes, lengths of stay and costs include another team’s patients.

In the recordLow depth of coding: few diagnoses recorded for each episode

Shows up asPatients look simpler than peers’, so their stays and costs look high for their group in GIRFT packs, Model Health and patient-level costing.

In the recordFrailty, dementia or social circumstances not recorded

Shows up asCase mix adjustment misses them, and plans for older people’s services underestimate the need.

In the recordProcedures in clinic not recorded

Shows up asThe work looks like simple attendances, and demand for procedures is invisible to planners.

Go deeper: what the Charlson index counts

The Charlson index scores long-term conditions known to affect the risk of dying, such as heart failure, chronic lung disease, diabetes with complications, dementia, kidney and liver disease, and cancer, each with a weight. It is a different list from the one the HRG grouper uses for complexity. A condition can count for one and not the other, which is another reason to record every condition that affected care rather than guess which ones matter.

Two consequences of the May 2024 rules are worth repeating to colleagues. The score uses only the episode that gives the diagnosis group. And stays with an invalid main diagnosis get no comorbidity adjustment at all.

Go deeper: reading your trust’s mortality data

Most trusts have a mortality or information lead who can show SHMI by diagnosis group. Useful questions:

  • Which diagnosis groups contribute most of the gap between observed and expected deaths?
  • For those groups, what share of stays have a symptom as the main diagnosis, and what is our depth of coding against peers?
  • What share of stays are uncoded at the deadline, and in which specialties?
  • How does our palliative care coding compare with similar trusts?
  • Have we changed how same day emergency care is recorded?

Ask the same questions of HSMR if your trust subscribes to it, and find out which version it is, and ask whether the two indicators tell the same story. When they disagree, it is often a clue to a data question rather than a contradiction.

Go deeper: several short episodes at the start of a stay

NHS England changed the rule in 2024 because more trusts now have models of care with several short episodes early in a stay: an emergency department decision unit, an acute medical unit, a short-stay ward, then the specialty. The diagnosis may not be known until the third episode or later. The new rule finds it wherever it first appears, but the comorbidity score still comes only from that episode. In practice, the team that first records a diagnosis should also record the patient’s long-term conditions, even if they look after the patient for a few hours.

Apply it

Look at five deaths’ coded records

With your mortality or coding lead, take five recent deaths in your specialty. For each, find which episode SHMI used, its main diagnosis and the other conditions coded in that episode. Compare that with what you know about the patient. Note anything missing, anything in the wrong episode, and whether palliative care was recorded where it applied.

See a model answer

In short: a good answer finds where the record and the patient differ, and which team’s documentation could have closed the gap.

An invented answer from an acute physician:

  • Three of five used an acute medical unit episode with a confirmed diagnosis but no long-term conditions coded. The conditions appeared in the specialty episode or nowhere.
  • One used a symptom (falls) for the whole stay: the cause, a urinary infection with delirium, was in the notes as “?UTI” and “confused”.
  • One was coded well, including palliative care.

Change: a mandatory “active long-term conditions” line in the acute medical unit post-take note, and a monthly ten-minute review of uncoded or symptom-coded deaths with the coding team.

Illustrative. Patients and findings are invented.

What would you do?

Two short situations. Choose the best answer, then read why each option is right or wrong.

1. You are the acute medical unit consultant. You confirm pneumonia in a patient who will move to the respiratory ward within hours. You know she has COPD and heart failure. What do you write in your post-take note?
  • A. SHMI takes the diagnosis and the comorbidity score from the first episode with a confirmed diagnosis: yours. Conditions recorded later will not count.
  • B. Right. Your episode is the one SHMI uses, so the conditions need to be in your notes for her expected risk to be right.
  • C. Coders code from this stay’s record, not earlier letters.
  • D. Each episode is coded from its own documentation.
2. Your trust’s SHMI moves to “higher than expected”. A colleague says this proves care has got worse. What is the most useful first step?
  • A. Reviewing deaths matters, but starting there skips the quickest checks and may miss the cause.
  • B. Right. The indicator is only as good as the record. Ruling data in or out first tells you where to look in the care.
  • C. A higher than expected SHMI deserves attention. It is a signal, not proof either way.
  • D. Codes must reflect what was documented. The fix for under-recording is better notes, not extra codes.

Same idea in other services

The worked example uses one service. Here is how the same idea looks elsewhere. Illustrative: check how your own service is funded.

  • Medicine

    Acute medical units and short-stay wards often record the first confirmed diagnosis. Name the patient’s long-term conditions there too.

  • Mental health

    Dementia counts towards the comorbidity score. "Memory problems" does not.

  • Nursing

    Frailty, pressure ulcers and malnutrition found on admission assessment belong in the first episode’s medical record, not only in nursing documentation.

  • Community

    Plans for community services draw on hospital-coded case mix. Unrecorded frailty and dementia understate the need those services meet.

Back at work: things to try

  1. Write the patient’s significant long-term conditions in your notes whenever you record a diagnosis, even for a short episode.
  2. Ask your mortality lead for SHMI by diagnosis group, with the share of symptom-coded and uncoded stays.
  3. Check that the patients counted against you in benchmarking reports are really yours.
For educators Teaching this?
Use it for
Mortality and morbidity meetings, specialty governance, or acute medicine and emergency teams with short early episodes.
Listen for
"The respiratory team will document the comorbidities." If the diagnosis is first confirmed earlier, SHMI uses that earlier episode.
Ask the group
In our patients’ first episodes, how often do we write the long-term conditions as well as the diagnosis?
Time
12 minutes to read; 45 minutes for the five-deaths review.

New to teaching clinicians? Read Teaching clinicians about finance. Everything on Clinical.finance is free to use in your own teaching; a link back is appreciated. If you teach finance to clinical colleagues, the Finance and Clinical Educators (FACE) network brings together people doing the same.

Sources and further reading

Written by Ak Maheswaran, Consultant Anaesthetist

Current at 19 November 2026Last reviewed 19 November 2026Policy and payment rules change: check the linked sources before relying on this page.

Spotted an error, or something missing? Tell me.