Clinical coding examples show how coders turn documented illnesses and procedures into standard codes. In NHS hospital care, ICD-10 records diagnoses and OPCS-4 records interventions. The two systems serve different purposes, so a single hospital episode may need codes from both.
Here are five fictional cases to practise reading notes, searching the classification and checking your answer. They are simplified exercises, not complete coded records or instructions for treating patients.
How do you code a hospital case?
Start by reading the record for the relevant episode of care. Identify the documented diagnosis and any procedures. Search the appropriate index, then check the result in the tabular list and the national standards. Record your reasons and raise any uncertainty before finalising the record.
The NHS Classifications Browser provides the classification resources and standards. In England, OPCS-4.11 applies from 1 April 2026 to relevant episodes finishing on or after that date. Use the release that applies to the episode, not simply the newest one you can find.
| Source evidence | Classification to check |
|---|---|
| Confirmed illness | ICD-10 |
| Documented operation | OPCS-4 |
| Symptom with no established diagnosis | ICD-10, subject to applicable rules |
| Procedure site or method | OPCS-4 supplementary coding rules |
Keep the source text beside your proposed answer. A code title may look right at first but have notes that change your choice. The index gives you a starting point, not permission to skip those checks.
Five worked clinical coding examples
Each exercise isolates a small part of a hospital record. Assume the diagnosis shown is the main condition of the episode unless stated otherwise. These examples show candidate codes and reasoning; extra codes may be required by the full record and current standards.
Case 1: Pneumonia without a recorded organism
A discharge summary states that the patient was admitted and treated for pneumonia. The final diagnosis does not name an organism or a specific type of pneumonia. There is no documented operation in this exercise.
Search the index for pneumonia. The candidate is J18.9, pneumonia, unspecified. Check that the notes do not support a more specific type. Do not guess which organism caused the illness based on the medicine given.
The important point is that the documented diagnosis drives the choice. A coder does not need to make a new clinical diagnosis. If another source record supplies a more specific diagnosis, review it under the applicable rules before completing the case.
Case 2: Essential hypertension
The consultant records essential hypertension as the main condition investigated in a fictional episode. No associated heart or kidney disease is stated. The candidate ICD-10 code is I10, essential (primary) hypertension.
Search under hypertension and check the relevant tabular entry. Do not add a code for heart disease simply because high blood pressure can be linked to it. The record must support the condition and any links required by the coding rules.
Medical terms can make this step difficult for beginners. The Skill Up Medical and Healthcare: Medical Terminology – CPD Accredited bundle provides further study of clinical vocabulary and records.
Case 3: Cataract extraction with lens implant
An operation note describes a phacoemulsification of the lens with insertion of a prosthetic lens. The documented diagnosis is an unspecified cataract. A candidate diagnosis code for the stated information is H26.9.
For the intervention, search the OPCS index for phacoemulsification and check C71.2, phacoemulsification of lens with insertion of prosthetic replacement, in the applicable release. Read the notes for any extra coding needed to show the site or side of the operation.
This example shows why the operation note matters. A diagnosis code cannot tell you which surgical method was used. The word cataract alone does not justify a specific procedure code. Equally, the planned operation does not prove that the procedure was completed.
Case 4: Diagnostic colonoscopy
A fictional operation report records a diagnostic fibreoptic colonoscopy. It states that no biopsy or other intervention took place. The episode record names a symptom as the reason for investigation, with no established diagnosis at the end of care.
A procedure candidate is H22.1, diagnostic fibreoptic endoscopic examination of colon and biopsy of lesion of colon, only if biopsy is documented. In this case no biopsy took place, so the candidate is H22.9, unspecified diagnostic endoscopic examination of colon (which includes colonoscopy NEC), rather than H22.1. Confirm it in the current OPCS-4.11 tabular list.
For the diagnosis side, the exact symptom must be known before a code can be selected. Avoid inventing a bowel disorder because the patient had a test. Apply the symptom and uncertain diagnosis rules to the full episode record.
Case 5: Type 2 diabetes recorded without complications
A fictional record identifies type 2 diabetes without complications as the main condition treated. The candidate is E11.9. The exercise does not document a procedure. Check the diabetes entry and the national standards for any required additional information.
Now change the case: the clinical notes mention a possible complication, but the final diagnosis is unclear. Do not reuse the original answer without checking. Review the source evidence and ask for clarification through the approved route when needed.
Read the diagnosis sequencing rules for more on ordering conditions in a complete record.
What should you check before accepting a code?
A good answer must be traceable to both the notes and the rules. Check the episode, the release, the index entry and the full tabular entry. Then review any instruction for extra codes or a required order. This short routine helps you spot errors before submitting your work.
· Match the diagnosis to the final clinical evidence.
· Check what procedure actually took place.
· Confirm the release for the episode date.
· Read inclusion, exclusion and additional coding notes.
· Ask for clarification when the evidence is unclear.
Use the ICD-10 chapter reference to help locate the relevant part of the classification.
How can you check your practice cases?
Use the national ICD-10 coding standards when you review each answer. Start with the notes. Read them twice if you need to. Then check each proposed code and write down the reason for your choice. Ask a tutor to look at any gaps.
For case one, try a new set of notes that names the cause of the illness. Does your code still fit? For case three, change the notes so that the planned lens implant did not take place. Would the same code still be right? Check the index again. This is a useful way to test your work.
How can you practise without real patient records?
Use fictional notes that contain enough detail to support a decision. Make a worksheet with the source phrase, candidate code, rule checked and final answer. Ask a trainer to review the reasoning, then repeat the case after feedback. Do not copy real patient details into personal study tools.
Try writing two versions of the same case. In one, record a confirmed illness. In the other, record only a symptom. Notice what changes in your search and what stays the same. This helps you avoid memorising code numbers without knowing how to use them.
The Medical Secretary Certificate includes study of medical records and terminology. It may suit learners interested in the administrative side of documentation as well as coding.
Keep an error log as you practise. Write down whether each mistake came from reading the notes, using the wrong release, skipping a rule or entering a code incorrectly. Then plan your next practice session around one of those skills.
For a structured starting point, the Online Clinical Coding Course introduces diagnosis and procedure classification. It can support further study before supervised workplace training.
92% OFFTurn practice cases into real coding skills
For aspiring clinical coders who want structured training in the ICD-10 and OPCS-4 standards used in NHS hospitals.
- General Coding Standards of ICD-10
- Introduction to OPCS-4 and SNOMED CT
- 10 hours of online learning
Put your coding practice into action
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 are some examples of medical coding?
Examples include recording pneumonia with ICD-10 J18.9 when no organism or more specific type is documented, or recording a completed hospital procedure using OPCS-4. The exact choice depends on the source notes, applicable classification release and national standards. Real cases may require additional codes.
Is clinical coding difficult?
Clinical coding can be challenging because you need to interpret medical terms, apply detailed rules and recognise when notes lack information. It becomes more manageable through structured practice, feedback and familiarity with the classification. Beginners should work with fictional cases before handling real records in supervised training.
How to learn clinical coding?
Start with medical terminology, anatomy and the purpose of ICD-10 and OPCS-4. Practise using an index and tabular list rather than memorising isolated codes. Use fictional records, keep a note of your reasoning and seek feedback. Employer training is important for applying national standards to live NHS records.
What is the role of a clinical coder?
A clinical coder translates documented diagnoses and procedures into standard classification codes for healthcare data. In NHS hospital services, coders use relevant national standards and source records to support accurate reporting. They seek clarification where needed rather than making clinical diagnoses themselves or choosing codes to increase payment.