The Path
Module 8 · Patient monitoring·10 min
MDC, LOINC and UCUM codes
The language of devices, the language of the patient record, and the bridge between them.
Jean Lambert’s heart rate has two names. For the monitor, it is 147842, an MDC code. For the EHR and for FHIR, it is 8867-4, a LOINC code. And “beats per minute” is written a third way in UCUM. Three languages, one measurement.
Here is a 9:33 message as it leaves the interface engine at the Leleux Clinic: the central station sent the MDC codes, the engine added the LOINC and UCUM codes next to them. To keep it short, only the monitor and three measurements are kept, in flattened form.
The interface engine has enriched the central station’s message. Click OBX-3: the MDC code first, then the LOINC code as the alternate identifier.
MDC: the language of devices
MDC codes come from the ISO/IEEE 11073-10101 standard, the nomenclature for medical devices. They were designed for machines: a monitor, a pump, a ventilator. Each code has two forms:
- a number (
147842), what software reads; - a reference ID (
MDC_ECG_HEART_RATE), readable by a human and language-independent.
The number is calculated. The IHE profile gives the formula: block × 65,536 + term. For heart rate: 2 × 65,536 + 16,770 = 147,842. In our examples, devices sit in block 1 (69965 = 1 × 65,536 + 4,429), measurements in block 2, units in block 4 (264864 = 4 × 65,536 + 2,720).
MDC is very precise. It tells the heart rate derived from the ECG (147842) apart from the pulse counted by the oximeter (149530, MDC_PULS_OXIM_PULS_RATE). For a machine, they are two different measurements.
To file manufacturers’ codes under shared MDC terms, with their units, IHE maintains a harmonized nomenclature, RTM (Rosetta Terminology Mapping). It is freely available in NIST’s RTMMS database. To go from MDC to LOINC, LOINC publishes its own table, the LOINC/IEEE Medical Device Code Mapping Table, with its download files. And to check a code on the fly, the public terminology server tx.fhir.org also knows the MDC system.
LOINC: the language of the record
LOINC comes from the world of results: the lab, reports, vital signs in the chart. Its codes are more general and describe what is measured, not the device measuring it. FHIR picked it as the required code for vital signs.
UCUM: units, in the middle
UCUM codes units in a computable way: mm[Hg], Cel, /min, %. The IHE profile prefers MDC units in OBX-6 and accepts UCUM. FHIR requires UCUM. Hence the pair in our message: 266016^MDC_DIM_MMHG^MDC^mm[Hg]^mm[Hg]^UCUM.
The mapping table
| Measurement | MDC (device) | LOINC (record) | UCUM |
|---|---|---|---|
| Heart rate | 147842 MDC_ECG_HEART_RATE |
8867-4 |
/min |
| SpO2 | 150456 MDC_PULS_OXIM_SAT_O2 |
59408-5 (FHIR: 2708-6) |
% |
| Respiratory rate | 151562 MDC_RESP_RATE |
9279-1 |
/min |
| Non-invasive systolic pressure | 150021 MDC_PRESS_BLD_NONINV_SYS |
76534-7 |
mm[Hg] |
| Non-invasive diastolic pressure | 150022 MDC_PRESS_BLD_NONINV_DIA |
76535-4 |
mm[Hg] |
| Non-invasive mean pressure | 150023 MDC_PRESS_BLD_NONINV_MEAN |
76536-2 |
mm[Hg] |
| Invasive arterial systolic pressure | 150037 MDC_PRESS_BLD_ART_ABP_SYS |
76215-3 |
mm[Hg] |
| Body temperature | 150364 MDC_TEMP_BODY |
8310-5 |
Cel |
SpO2 shows that the bridge is not always obvious. 59408-5 means “saturation by pulse oximetry”, the closest to the device. Yet the FHIR vital signs profile requires 2708-6, which is more general, and lets you add 59408-5 next to it.
Blood pressure follows the same logic. For NIBP, the table gives the method-specific LOINC codes (“by Noninvasive”), as for invasive pressure. On the FHIR side, the blood pressure profile groups systolic and diastolic into one Observation, code 85354-9, with two components carrying the generic codes 8480-6 and 8462-4.
Where the two codes go
In v2, a coded field has room for two codes: components 1 to 3 for the first, 4 to 6 for the alternate identifier. The IHE profile plans for it: MDC first, another system as the alternate. When no MDC term exists, IHE’s order of preference is LOINC, then SNOMED CT, then a local code agreed between both parties (like the sleep lab’s ^L).
Central station
speaks MDC
Engine
builds the bridge
EHR
reads LOINC
FHIR API
vital signs profile
- ORU · 147842
- ACK · CA
- ORU · 147842 + 8867-4
- ACK · CA
- Observation · 8867-4
And in FHIR?
The vital signs profile requires LOINC and allows other codes alongside. The official oxygen saturation example in the FHIR specification does exactly that:
"code": {
"coding": [
{ "system": "http://loinc.org", "code": "2708-6", "display": "Oxygen saturation in Arterial blood" },
{ "system": "http://loinc.org", "code": "59408-5", "display": "Oxygen saturation in Arterial blood by Pulse oximetry" },
{ "system": "urn:iso:std:iso:11073:10101", "code": "150456", "display": "MDC_PULS_OXIM_SAT_O2" }
]
},
"valueQuantity": { "value": 95, "unit": "%", "system": "http://unitsofmeasure.org", "code": "%" }
Check your understanding
1 of 4How does the MDC code 147842 break down?
+50 XPPass the quiz (3 correct answers) to complete the lesson.
Reviewed and checked on 28 September 2026