Primary vs secondary diagnosis is about the role each illness plays in a period of care. The primary diagnosis is the main condition treated or investigated. Secondary diagnoses record other relevant conditions, following the coding rules.
The choice matters. The data must show what happened during that period of care. You cannot always pick the first condition in the notes. Nor should you choose the one that sounds most serious.
This guide focuses on diagnosis coding in NHS hospital care in England. It uses UK ICD-10 rules, not American billing rules.
What is a primary diagnosis?
The 2026 National Clinical Coding Standards for ICD-10 set out the primary diagnosis rule in DGCS.1. You must identify the main condition that the team treated or investigated in the relevant episode. If no diagnosis has been established, the main symptom, finding or problem may be used, subject to the rules for uncertain diagnoses.
An episode is a period of care. In admitted patient care, it may be a period under one consultant. A hospital stay can include more than one such episode. The main condition may change between episodes.
Imagine a patient comes to hospital for treatment of pneumonia. Their notes also record a long-term condition that is relevant to their care. Pneumonia would be the main condition in this simple example. The other condition may need a separate code.
Follow the facts of the case, not the order in which the doctor wrote the notes. A list of conditions alone may not tell you which one belongs first.
What is a secondary diagnosis?
A secondary diagnosis adds detail about the patient’s health during the stay. It may describe another illness, a complication or a chronic condition. A chronic condition is one that lasts over time.
A comorbidity is a condition that exists alongside another condition. You need to check the rules for recording it. Do not assume that every condition mentioned in old notes should be coded for the current episode. Equally, do not omit a condition simply because it was not the main reason for care.
Some rules require extra codes to give a full picture of a condition. This is one reason that reading the coding standards matters. The number of diagnosis fields alone does not tell you whether the coded record is complete.
Medical language can be hard to follow at first. Skill Up’s Medical and Healthcare: Medical Terminology – CPD Accredited bundle includes training in clinical vocabulary and records. It can help you build the language skills needed to read notes.
Primary vs secondary diagnosis: what is the difference?
Both kinds of diagnosis need evidence from the source record. The key difference lies in how each condition relates to care during the episode.
| Feature | Primary diagnosis | Secondary diagnosis |
|---|---|---|
| Role | Main condition treated or investigated | Other relevant diagnosis or required additional detail |
| Position | First diagnosis field or fields | Later diagnosis fields, subject to rules |
| Selection | Follow the main condition rule | Follow relevance and other coding rules |
| Example | Pneumonia treated during an episode | Relevant coexisting diabetes |
| Evidence | Clinical record for the episode | Supported detail in the relevant record |
The table is a quick guide. Some cases need more than one code to express the main condition. Specific coding rules can also affect the order. Do not use the table as a substitute for the standards.
How do you choose the diagnosis that goes first?
Start with the relevant episode and read the full account of the care. Check the final clinical statement and the treatment or tests that took place. Then apply the main condition rule.
Here is a simple way to work through the decision as a learner.
· Identify the episode and its source notes.
· Find the main condition treated or investigated.
· Check if the clinician recorded a clear or uncertain diagnosis.
· Seek clarification if the facts are unclear.
· Apply the relevant coding rules and check the final order.
This sequence is a study aid. Always check the detailed standards for the type of case you are coding. You must not make a diagnosis yourself when a clinical statement is missing.
What if the diagnosis is not certain?
The UK rules do not treat every uncertain diagnosis in the same way. A working diagnosis is not the same as a list of possible causes. The current standards cover this in DGCS.2.
When the notes are unclear, seek advice from the responsible clinician. If you cannot get advice, follow the applicable standard. A condition recorded as the working diagnosis and treated or investigated as such may be coded under that rule. A list of possible causes without further evidence may instead lead to coding the main symptom.
Consider a fictional record that says only that a patient has abdominal pain. Several possible causes are listed, but none is established or recorded as the condition being treated. You should not select one of those causes simply because it seems likely to you.
Now imagine the clinician clearly records a working diagnosis and treats the patient on that basis. The coding decision may differ. Check the exact wording and the standard rather than using a blanket rule for all uncertain conditions.
Keep any clarification within the approved work system. Do not send real patient data to public tools for help with choosing a code.
How does diagnosis sequencing work in practice?
These made-up cases help you decide which condition goes first. They do not give a complete set of codes for a real patient record.
Case 1: A chest infection with another condition
A patient has pneumonia and receives treatment for it during the episode. Their diabetes is also relevant and is recorded by the clinical team.
Pneumonia is the main condition in this example. Diabetes is an additional diagnosis, subject to the detailed rules. Check the type in the notes before you pick a code.
Case 2: The main condition changes between episodes
A patient has an episode of care for a fracture. Later, a new consultant takes responsibility for a separate episode in which a different condition is the main focus of treatment.
You need to review each episode on its own facts. The first diagnosis from the earlier episode does not automatically remain first in the next one. Check the notes for the care delivered under each consultant.
Case 3: A past condition appears in the notes
A patient receives care for a current illness. Their notes mention a past condition that has resolved. There is no clear record of it being active now.
Do not code the old condition as active just because it appears in the history. Check whether a history code or other code is required by the relevant rules. Ask for advice if the evidence is unclear.
Try worked hospital coding cases for further practice with code selection.
Why does the order matter for hospital data?
The order helps staff see what the care was mainly about. It can affect the way hospital activity is grouped. Relevant other diagnoses may also affect the group under the applicable rules.
The NHS grouping logic guidance explains how some diagnoses contribute to complexity scores. Not every additional diagnosis changes a group. Read how diagnoses affect HRG grouping for the wider context.
The aim is to get the data right. Do not choose the first diagnosis based on the payment you think it might generate. You need to follow the record and the standards in every case.
How can you avoid common diagnosis selection mistakes?
Read beyond the first page when the relevant facts are recorded elsewhere. A discharge summary may be useful, but it may not hold all the information you need. The RDaSH clinical coding policy gives examples of source records used in its services.
Before you finish a practice case, ask yourself these questions:
· Have I identified the correct episode?
· Is the main condition supported by the clinical record?
· Have I checked all relevant other diagnoses?
· Did I confirm the codes and their order against the rules?
· Have I asked for help with unclear clinical information?
Keep a note of why you chose each diagnosis. When you get feedback, compare the reason for your choice with the relevant rule. This helps you build a repeatable method.
The Clinical Coding & Medical Administration course includes modules on medical records and National Clinical Coding Standards ICD-10. It offers further study of the link between documentation and coding, rather than authorising you to code NHS records without training.
You can practise by writing three short fictional cases with different main conditions. Ask a trainer to check your reasons. Focus on the evidence before trying to work faster.
For a guided start, the Online Clinical Coding Course covers the basic rules and clinical terms used in hospital coding.
92% OFFLearn to sequence diagnoses with confidence
For aspiring clinical coders who want to learn the ICD-10 rules behind choosing and ordering diagnoses in NHS records.
- General Coding Standards of ICD-10
- Introduction to OPCS-4 and SNOMED CT
- 10 hours of online learning
Practise choosing the main diagnosis
Skill Up’s Online Clinical Coding Course includes General Coding Standards of ICD-10 and Introduction to OPCS-4. This CPD training offers a starting point for your studies, not the National Clinical Coding Qualification or employer sign-off.
Frequently asked questions
What is a secondary diagnosis example?
A patient receives care for pneumonia and also has diabetes that is relevant to the episode. In this fictional case, diabetes may be a secondary diagnosis. The exact code depends on the facts in the notes. Check the rules to see if you need more detail.
What is a primary diagnosis example?
A patient is treated for a confirmed chest infection during a hospital episode. If that infection is the main condition treated or investigated, it is the primary diagnosis in this simple example. The coder must check the full record and any relevant rules before choosing the final code.
When coding a diagnosis, what comes first?
In NHS morbidity coding, the first diagnosis field or fields represent the main condition treated or investigated in the episode. Other diagnoses follow the coding rules. Where no clear diagnosis exists, apply the rules for symptoms and uncertain diagnoses rather than guessing a disease.
Do you code incidental findings?
Not every finding mentioned in a record needs a code. Check whether the finding is relevant to the episode and whether a national coding standard requires it to be recorded. Do not infer a diagnosis from an isolated test result. Seek clarification through the approved process when necessary.