Part 2: Interoperability

6 Imaging informatics

What is inside a DICOM file besides the picture?

About 70 minutesPending final reviewLast checked 2026-11-30

In plain language

  • Medical images such as CT scans travel between scanners, archives and viewers in one standard format called DICOM.
  • A DICOM file holds the picture plus a header full of details, including the patient's name, ID and the date of the scan.
  • Removing names from the header is not enough to make an image anonymous. Text can be stamped into the picture, and a head scan can show a face.

The core sections below build on these ideas. Sections marked "Going deeper" are optional and go further.

Why this matters for you

What it means for each role
Students
Images are the largest and most identifiable kind of health data, and the main fuel for medical AI.
Physicians and residents
Understanding windowing, accession numbers and critical-result workflows helps you find and act on imaging.
Nurses and allied health
Imaging orders, worklists and urgent results pass through your hands, especially on stroke pathways.
Researchers and analysts
De-identifying images is harder than de-identifying tables. Burned-in text and faces are common traps.
IT and administration
PACS, worklists, DICOMweb and de-identification pipelines are core imaging infrastructure.

From an order to an image

At 11:05, because of yesterday’s arm weakness, Mira’s doctor orders a head CT. A possible TIA with new atrial fibrillation usually puts a patient on a stroke pathway, where a CT angiogram of the head and neck often follows, and AI software may flag a blocked large vessel to the stroke team within minutes.

The order moves from the EHR to the radiology information system (RIS), usually as an HL7 order message (ORM or OMI). In many hospitals, including MENA Academic Hospital, the RIS is now a module of the EHR itself. The RIS gives the exam an accession number, the ID that ties the order, the images and the report together. It schedules the exam and publishes it on a modality worklist, so the scanner (the modality: CT, MRI, ultrasound and so on) shows Mira’s name and ID without anyone retyping them. The scanner reports progress back (a message called MPPS), acquires the images and sends them to the picture archiving and communication system (PACS). The radiologist reads them there, usually dictating into speech-recognition software, and the report goes back to the EHR. The signed report is also sent to NABIDH, Dubai’s health information exchange, so that other providers caring for Mira, such as her primary care doctor, can read it; NABIDH can also hold links to the images themselves. If a result is urgent, such as a bleed, the radiologist must also make sure a clinician hears it directly: a critical result cannot wait in an inbox. Timely communication of critical results is also a requirement of JCI accreditation, which most Dubai hospitals hold. IHE (Integrating the Healthcare Enterprise) publishes profiles such as Scheduled Workflow that describe how these steps fit together across vendors.

Every image in that chain is a DICOM object. DICOM is both a file format and a network protocol. It has been the universal standard for medical imaging since the early 1990s, so a scanner from one vendor can send to a PACS from another. Its newer web services, called DICOMweb, let applications search for, retrieve and store images over HTTP, much as FHIR does for clinical data. Most new web viewers and imaging AI tools connect this way.

Inside a DICOM file

A DICOM file is a list of data elements, each identified by a tag written as (group,element). For example, (0010,0010) is the patient’s name and (0008,0060) is the modality. Usually the last and largest element, (7FE0,0010), holds the pixels. Each study, series and image also gets a UID, a long, globally unique identifier made of numbers and dots.

Going deeper Value representations

Each element has a value representation (VR) that says what kind of data it holds: PN for a person name, DA for a date, UI for a globally unique identifier, US for a small unsigned integer, and OW for raw 16-bit words such as pixel data. A file can state the VR explicitly next to each tag, or leave it implicit, so the reader has to look it up in the data dictionary. The transfer syntax UID in the file header says which, and whether the pixels are compressed.

Text elements depend on Specific Character Set (0008,0005). A scanner in Dubai may receive a patient’s name in Arabic as well as in English, although most worklists still send English only. The element names the encoding with a code such as ISO_IR 127 (Arabic) or ISO_IR 192 (UTF-8, which covers every script). The lab’s file uses ISO_IR 192. A viewer or AI pipeline that ignores this element shows the name as garbled characters, and patient matching between systems can fail. Issuer of Patient ID (0010,0021) says which hospital’s record number this is, the same job as the assigning authority in Module 4’s HL7 PID segment.

CT pixels are stored as integers. The header then gives a rescale slope and intercept to convert them into Hounsfield units (HU), where water is 0 and air is -1000. Your screen can show only a few hundred shades of grey, while a CT spans thousands of HU. So viewers apply a window: a center and a width that pick which slice of the HU range is spread across black to white. A brain window shows subtle grey and white matter, and a bone window shows fractures. It is the same data shown two ways.

Lab: the DICOM Inspector

This is a synthetic head CT slice for Mira: a simplified but structurally valid DICOM file built for this course.

Try this: first predict the HU value of the fluid in the ventricles at the centre of the brain. Then use the tissue buttons, or point at the image, to check. Switch between the brain and bone window presets and say what each one hides. Finally, turn on the de-identification profile and watch which elements change. When the header is clean, look at the top-left corner of the image.

Point at the image, or choose a tissue below, to read Hounsfield units.

Mira's head CT (synthetic): 0 elements, 0 that identify the patient or the visit.

TagVRNameValue

De-identification is harder than deleting names

Research archives and AI training sets need images without identifiers. The DICOM standard defines confidentiality profiles that list, element by element, what to remove, blank or replace. UIDs are replaced rather than deleted, so that images from one study still link together. In this lab the replacement is a simple hash of the original, which anyone with the original could recompute. Real systems use a secret mapping held by an “honest broker”. Blanking every date also breaks research that needs time intervals, so the standard offers an option to keep dates or shift them consistently. A de-identified file should also say so: Patient Identity Removed (0012,0062) is set to YES, and De-identification Method (0012,0063) records which profile was used. But three problems survive a clean header:

  • Burned-in text. Some devices, especially ultrasound and secondary-capture screenshots, stamp names and IDs into the pixels. The header element Burned In Annotation (0028,0301) is meant to warn about this, but it is often missing or wrong. Only pixel scrubbing (the standard’s Clean Pixel Data option) or optical character recognition finds the text reliably.
  • Faces. A head CT or MRI can be rendered in 3D into a recognisable face. Researchers have shown that face-recognition software can match such renders to photographs. Brain imaging archives now often remove facial features before sharing.
  • Free text. Descriptions, comments and private vendor tags can contain anything a technologist typed. That is why the basic profile removes Study Description and Series Description too.

From the Failure Museum: the model that recognised the hospital

In 2018, researchers trained a deep-learning model to detect pneumonia on chest X-rays from three hospital systems. They found that it could also tell, almost perfectly, which hospital system an image came from, and within one hospital, which department, such as portable films taken at the bedside. It may have done this from equipment differences, from markers on the film, or from other signals invisible to people. Pneumonia was far more common in some of those settings, so recognising the source was a shortcut that raised measured accuracy. When the model was tested on hospitals it had not been trained on, its performance was significantly lower in three of five comparisons.

Lesson: an image carries more than anatomy. Metadata, burned-in markers and acquisition differences can leak into a model and teach it the wrong thing. Imaging AI must be validated on external data, and its training sets must be curated as carefully as they are de-identified.

Check your understanding

Answer every question, then check. Each answer comes with an explanation. Score 80% or more to mark the module complete. Your progress is saved only in this browser.

1. Which DICOM tag holds the patient's name?
2. A CT is displayed with window center 40 and width 80. What range of Hounsfield units is shown as shades of grey?
3. Every identifying header element has been removed or blanked. Why might the image still identify the patient?
4. What is DICOMweb?
5. Put Mira's head CT in the right order: (a) images stored in PACS, (b) order placed in the EHR, (c) exam appears on the scanner's modality worklist, (d) radiologist's report returns to the EHR, (e) RIS schedules the exam.
6. In the pneumonia model study described in this module, what did the model partly learn?

0 of 6 answered

Sources

  1. NEMA. Digital Imaging and Communications in Medicine (DICOM) Standard, current edition
  2. DICOM PS3.15, Annex E: Attribute Confidentiality Profiles
  3. DICOMweb overview
  4. Schwarz CG, Kremers WK, Therneau TM, et al. Identification of anonymized MRI research participants with face-recognition software. N Engl J Med. 2019;381:1684-1686.
  5. Zech JR, Badgeley MA, Liu M, et al. Variable generalization performance of a deep learning model to detect pneumonia in chest radiographs: a cross-sectional study. PLoS Med. 2018;15(11):e1002683.
  6. IHE Radiology Technical Framework: Scheduled Workflow (SWF.b)