← Learn · Clinical Coding

Explainer 1 of 4 · Foundation level · 10–12 min What do the levels mean?

From notes to codes

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 discharge summary says a patient’s abdominal pain is “likely” biliary colic and lists her sodium of 119. What will the coded record say about her?

The essentials

  • Coders code what is written, from this stay’s record, and cannot interpret results or infer from treatment.
  • “Probable” is coded as the condition; “likely” in a differential is coded as the symptom.
  • Every team’s notes need to name the conditions that affected their care.

Start here

If clinical coding is new to you, watch One NHS Finance’s six-minute animation first. It explains what coders do, spells and consultant episodes, the two classifications used for diagnoses and procedures, and four habits that make notes codable. This series picks up where it ends, with worked cases of what coding changes.

What a coder does with your notes

Every admission and day case in England is turned into a set of standard codes after the patient goes home: ICD-10 codes for diagnoses and OPCS-4 codes for procedures. Trained clinical coders do this, working from what the clinical team wrote. They are skilled and they follow detailed national standards, but they are not clinicians, and the standards stop them filling gaps with clinical judgement.

  1. The patient is dischargedThe record is complete: notes, operation notes, results, letters and the discharge summary.
  2. A coder reads the recordOften under time pressure, and often starting with the discharge summary.
  3. Codes are assignedThe main condition treated comes first, then other conditions that affected care, then procedures.
  4. The record is submitted nationallyUsually within weeks of discharge, to monthly deadlines.
  5. The codes are used for yearsFor payment, costing, mortality indicators, national benchmarks, planning and research.

One stay, several episodes

A hospital stay is a spell. Each period under one consultant within it is a finished consultant episode, and each episode is coded separately, from its own documentation. A patient who moves between three teams has three coded episodes.

One stay, three coded episodes

An invented patient, aged 84, admitted as an emergency. Each block is one consultant episode.

  1. Episode 1: Acute medicine. Admitted with breathlessness and confusion. Diagnosis not yet clear.
  2. Episode 2: Respiratory. Pneumonia confirmed and treated. Acute kidney injury treated with fluids.
  3. Episode 3: Older people. Rehabilitation and discharge planning. Delirium resolving.

Two things follow. First, what is written in the early episodes matters a great deal. The national mortality indicator takes the diagnosis from the first episode whose main diagnosis is not a symptom, and counts only the long-term conditions coded in that same episode: explainer 3, Coding and your data, shows what that does to a real stay. Second, every team’s notes need to carry the diagnoses and conditions that affected their care. A diagnosis made on day six does not travel back to the first episode by itself.

Five rules that decide what gets coded

These come from the national coding standards. Each card shows what was written, what a coder can code from it, and why.

Written“Na 118. IV fluids, diuretic stopped. Recheck in the morning.”

CodedNothing for the sodium

Coders do not interpret results. A number is not a diagnosis until someone writes the diagnosis.

Written“Hyponatraemia (Na 118) due to diuretic. Fluids, diuretic stopped.”

CodedHyponatraemia, and the drug that caused it

Named, linked to a cause and treated. That is codable.

Written“Probable myocardial infarction.”

CodedMyocardial infarction

“Probable” counts. “Probable”, “presumed”, “working diagnosis” and “treat as” are coded as the condition being treated.

Written“Abdominal pain: likely appendicitis.”

CodedAbdominal pain

“Likely” does not. The national standard treats “likely” as a differential, so the symptom is coded. “?”, “query” and “impression” do not count either: the coder codes the symptom or sends a query. If you have reached a diagnosis, write it.

Written“PMH: as per previous admission.”

CodedNothing

This stay only. Coders are told not to look through previous admissions for conditions. List what matters in this stay’s notes.

Written“AF: apixaban held for surgery, restarted day 2.”

CodedAtrial fibrillation

Only conditions that affect care. Inactive history and background are not coded. Say how a condition changed what you did.

The fifth rule is the simplest: when the record is unclear, the coder should ask the responsible consultant. Answering coding queries promptly is part of getting the record right, not an administrative extra.

Worth knowing

Your trust may have local rules

Trusts can agree local coding policies on how particular terms or recurring documentation are treated, provided they do not contravene the national standard, and must record them in a local policy manual. Some have agreed how a term their clinicians commonly use should be read, and in some trusts what counts can differ between the electronic patient record and handwritten notes, for example where an EPR field or drop-down is accepted as a confirmed diagnosis. Ask your coding manager what your trust’s local policy says, for both, before assuming a word will or will not be coded.

Do not confuse these

A true record, never an inflated one

The aim is a record that describes the patient accurately: every condition that affected care, and nothing that did not. Writing conditions to raise income, or recording diagnoses that were not made, is wrong and is checked for. The usual problem is the reverse: sick patients recorded as if they were well, because the notes did not say what the team knew.

Right codes can still tell the wrong story

National standards describe three ways a coded record must be right. Coding audits look at all three, and so should you when you check your own service.

Each code

Every diagnosis and procedure has the correct code.

All the codes

Every condition that affected care is there. A list of individually correct codes can still describe the stay wrongly if a major condition is missing.

The order

The main condition treated comes first, because the first code drives how the stay is grouped and compared.

Go deeper: one stay, coded two ways

The patient from the episode diagram, coded from two versions of the same notes. Nothing about her care differs; only what was written down.

Notes say what happened in passing
  • Main condition: breathlessness (a symptom)
  • Other conditions: hypertension
  • Not coded: pneumonia written only as “?chest”; kidney injury shown only in results; delirium recorded as “confused”

Looks like a fitter patient with a vague problem

Notes name what the team knew
  • Main condition: pneumonia
  • Other conditions: acute kidney injury, delirium, chronic obstructive pulmonary disease, type 2 diabetes, hypertension

Describes the patient the team actually treated

The first record makes her look less unwell than she was. Her twelve-day stay will look long for her group, her cost high for her group, and her risk of dying low. The next two explainers follow that record into the price the trust is paid, its costs, and its mortality indicators.

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

Go deeper: what the coder actually sees

Coders work from the record available to them, which varies by trust: an electronic record, scanned notes, or both. In many trusts the discharge summary is the first and sometimes main source, because it is the one document meant to summarise the stay. Things that commonly go uncoded:

  • Diagnoses that exist only in results, observation charts or prescriptions.
  • Comorbidities in a clerking proforma that nobody carries into the summary.
  • Conditions written as abbreviations or question marks that the coder cannot safely interpret.
  • Diagnoses written on a different team’s documentation that the coder never reaches.

Reports are different: when a consultant, or a designated colleague such as a radiologist or microbiologist, writes a definitive diagnosis on a report, that diagnosis can be coded. A report that only describes findings cannot.

Go deeper: answering a coding query

When the record is unclear, the coder sends a query to the responsible consultant: is this pneumonia or a chest infection, was this anaemia treated, which side was operated on? Queries work best when they are answered quickly, in writing, with the diagnosis stated plainly. A query that sits unanswered may mean the episode is coded with what the coder can see, or misses the monthly deadline. Some trusts let coders query the team directly through the electronic record; others route queries through a coding manager. Find out which yours does, and who covers when you are away.

Worth knowing

Read your notes as a coder would

A coder cannot ask “what did they mean?” at every line. Before you sign a discharge summary, read it as someone who was not there: is the main condition named, are the conditions that changed your care listed, and is anything left as a question mark that you have since answered?

Apply it

Read three of your discharge summaries as a coder

Pick three recent discharge summaries you wrote or signed. For each, list what a coder could code using the five rules: the main condition, other conditions that affected care, and procedures. Then list what you know happened that a coder could not code. Look for patterns: results without diagnoses, “likely” and question marks, history by reference.

See a model answer

In short: most clinicians find the same two or three gaps in every summary. Those gaps are your template change.

An invented answer from a respiratory registrar:

  • Summary 1, pneumonia. Codable: pneumonia, COPD. Missed: acute kidney injury (creatinine shown, never named) and type 2 diabetes (on the drug list only).
  • Summary 2, COPD exacerbation. Codable: COPD exacerbation. Missed: “?pneumonia” never resolved in writing; frailty described as “lives alone, uses frame” with no score or diagnosis.
  • Summary 3, pleural effusion. Codable: pleural effusion, the drain. Missed: the cause (“likely malignant, awaiting cytology”), heart failure “as per previous letters”.

Patterns: results without diagnoses; question marks left open; history by reference. Changes: a “conditions treated this stay” line in the summary template, and an agreement with the specialty coder to query open question marks.

Illustrative. Patients and summaries are invented.

What would you do?

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

1. After two days of analgesia and observation, you have concluded that a patient’s abdominal pain is biliary colic. An ultrasound will be done as an outpatient. What do you write as the diagnosis in the discharge summary?
  • A. Fine if you were genuinely unsure, but “likely” means the symptom is coded. You have concluded it is biliary colic, so the record will understate what you knew.
  • B. Right. Write the diagnosis you reached. The coded record then matches the patient you treated.
  • C. The stay is coded from what is written at discharge. A blank leaves the coder only the symptom.
  • D. Not yet confirmed. Never write a diagnosis that has not been made.
2. An 82-year-old’s sodium was 119 on admission. You gave fluids and stopped her diuretic, and it has recovered. You are writing her discharge summary. What do you write about the sodium?
  • A. Coders must not interpret results. Without a named diagnosis, nothing is coded.
  • B. Right. Named, linked to a cause and to what you did. It is coded, and the record shows the sicker patient you treated.
  • C. Still a number and a treatment, not a diagnosis. Coders do not work backwards from either.
  • D. Coders are told not to search previous admissions. Each stay is coded from its own record.

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

    "Confused" is a symptom. "Delirium due to urinary tract infection" is two coded conditions that explain a longer stay.

  • Mental health

    In an acute admission, a documented diagnosis such as dementia or depression that changed care is coded. "Low mood" or "memory poor" is not a diagnosis.

  • Nursing

    Pressure ulcers, falls and malnutrition found on nursing assessment should be named in the medical notes or discharge summary, which coders rely on most.

  • Therapy

    Write the functional problem and its cause, such as "reduced mobility after fractured neck of femur", so the reason for a longer stay is on the record.

Back at work: things to try

  1. Read your next three discharge summaries as a coder would, before you sign them.
  2. Replace “likely” and question marks with a diagnosis once you have reached one, and say so in writing.
  3. Find out how coding queries reach you, and answer the next one the same day.
For educators Teaching this?
Use it for
Resident doctors’ induction or teaching, or a specialty meeting before a coding audit.
Listen for
"The coders will pick it up from the bloods." They cannot: results are not coded until a clinician names the diagnosis.
Ask the group
Which conditions do we treat every week but rarely name in the discharge summary?
Time
Six-minute film, 10 minutes to read; 20 minutes for the discharge summary exercise.

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.