FHIR

CodeableConcept and Coding in FHIR: how one concept carries several codes

Nearly every coded element in FHIR is a CodeableConcept: a list of codings from different code systems plus the original text. How system, code and display work, why you keep the lab's local code next to LOINC, and the mistakes that make data unreadable.

by Published 2 min read

Short answer: In FHIR, a Coding is one code from one code system: a system (the URL of the code system), a code and a human display. A CodeableConcept is the concept as a whole: a list of Codings that mean the same thing in different systems, plus text, the words the clinician or the lab actually used. Diagnoses, tests, medicines and allergies are all CodeableConcepts.

Why several codings

A lab may send its own local code and a LOINC code for the same test; a diagnosis may carry SNOMED CT and ICD-10. Keeping all of them lets each receiving system pick the one it understands, and keeping text preserves what was written.

"code": {
  "coding": [
    {"system": "http://loinc.org", "code": "2160-0", "display": "Creatinine [Mass/volume] in Serum or Plasma"},
    {"system": "https://lab.example.org/codes", "code": "CREA"}
  ],
  "text": "Creatinine"
}

Mistakes to avoid

  • A code without a system: the code is meaningless outside your database.
  • Invented system URLs for standard terminologies: LOINC is http://loinc.org, SNOMED CT http://snomed.info/sct, UCUM http://unitsofmeasure.org.
  • Dropping the original text when you map to a standard code.
  • Treating display as the identifier: systems match on system + code.

In Anpheros

Anpheros keeps the original name from the report as text and adds the standard coding (LOINC, ATC, ICD-10, SNOMED CT) so data stays readable to people and systems. Developers: FHIR code systems and normalizing medical data.

Sources

Frequently asked questions

What is the difference between Coding and CodeableConcept?

A Coding is one code from one system; a CodeableConcept is a concept with one or more Codings and the original text.

What is the system URL for LOINC?

http://loinc.org

Should I keep local codes?

Yes, next to the standard coding. They help trace data back to the source.

Is display used to match codes?

No. Matching uses system and code; display is for people.

Anpheros Platform

Try it free in the sandbox

Your first FHIR call in 5 minutes. An HL7 FHIR R4 API with the patient's consent built in: try it in the sandbox, then connect your own app or clinic system.

Free · 30 synthetic patients · no card

This guide is for information and does not replace medical advice. For decisions about your health, talk to your doctor. In an emergency, call your local emergency number (112 in Europe).
Written by
The Anpheros team

Anpheros builds a medical record that the patient controls and can share with any clinic, on an HL7 FHIR R4 platform, based in the EU. These guides help you understand and organise your health; they do not replace your doctor.

About Anpheros →
Anpheros

The more you log, the clearer your record

Your health history in one place, under your control.

Symptom diaryPatterns show over time
Emergency cardQR in your phone's Wallet
All your resultsLabs and reports together
You decideWho sees what, and for how long
Create your free account

Free · Works in your browser · No card