Parsing DICOM Part 10 headers locally for non-diagnostic use
Medical imaging datasets routinely embed full patient names, birth dates, medical record numbers, and clinical facility addresses inside structured binary metadata. Executing parseDicomElements inside image.worker.ts inspects .dcm and .dicom scans completely offline so sensitive patient records never leave your workstation.
Clinical disclaimer: This browser viewer is strictly informational and is not cleared for clinical diagnosis, screening, or treatment decisions. Clinical medical images must be reviewed exclusively on cleared PACS or diagnostic workstations calibrated to clinical radiology standards.
Checking the 128-byte preamble and local pixel privacy
Every compliant ISO 12052 archive starts with at least 132 bytes containing a 128-byte preamble followed by the ASCII DICM marker defined in the DICOM Standard PS3.10 Media Storage specification. Our parser also accepts preambless datasets beginning directly at Group 0002 or Group 0008 tags before extracting all header attributes with 0 bytes uploaded.
When working outside clinical radiology workflows with consumer PNG or JPEG attachments from a report, you can also strip hidden EXIF metadata from standard photos. Both image tools run solely in client browser memory with zero telemetry derived from user files.
Inspecting sample CT scans without transmitting medical files
Click Load sample DICOM to generate sample-ct-phantom.dcm, a 128 px square synthetic axial head CT dataset with 16 bits allocated and 12 bits stored, carrying synthetic patient DOE^JANE and odd-group block (0009,0010). Its calibrated values span -1000 air, +12 ventricle fluid, +38 parenchyma, +74 hyperdense focus, and +850 bone via RescaleIntercept = -1024.
How does interactive WW/WL windowing map Hounsfield values?
Interactive windowing multiplies raw stored pixels by RescaleSlope and adds RescaleIntercept before linearly mapping [WL - WW/2 .. WL + WW/2] onto 0..255 display levels per the DICOM Standard PS3.3 VOI LUT windowing specification. Clicking Brain, Soft Tissue, Lung, or Bone updates window width and level instantly on the canvas.
Switching CT radiologic presets and pointer-drag adjustments
Standard clinical teaching workflows adjust Window Width (WW) to control tissue contrast scale and Window Level (WL) to shift center brightness. Dragging horizontally across the slice shifts width by dx * 2, while vertical drags adjust center by -dy * 2 alongside one-click Auto window and Invert controls.
- Brain (40 / 80): Narrow
80width centered at40separates gray and white matter structures on head CT slices cleanly. - Soft Tissue (50 / 350): Moderate
350width highlights solid organ attenuation differences across abdominal and mediastinal studies. - Lung (-600 / 1500): Broad
1500width centered at-600reveals fine pulmonary vessels and bronchial walls simultaneously. - Bone (300 / 1800): Wide
1800window isolates cortical fracture lines and trabecular structures without washing out bone contrast.
Stepping multi-frame stacks and exporting PNG or JPG slices
Multi-frame cine and stacked volumes display a Frame range slider showing active slice position out of total frame count. Once contrast looks balanced, click Save slice PNG for lossless RGBA educational figures or Save slice JPG (94 quality) before reviewing teaching flashcards inside our offline Anki flashcard archive inspector.
De-identifying patient tags under DICOM PS3.15 rules
Switching to Tag inspector lists every parsed element with a PHI only checkbox that isolates Group 0010 and known identifiers, while Anonymize PHI scrubs elements per the DICOM Standard PS3.15 Attribute Confidentiality Profiles. Each scrubbed export updates Group 0002 lengths cleanly and outputs downloadable JSON and CSV audit logs.
| DICOM element or group | Default anonymization action | Optional control behavior | Compliance notes |
|---|---|---|---|
(0010,0010) & (0010,0020) |
Replaced with alias (ANONYMOUS) |
Replacement patient alias input | Truncates ID to 16 chars |
| Study / Series / Content Dates | Masked to 19000101 string |
Retain study year as YYYY0101 | Study times zeroed 000000 |
Group 0008 & 0010 PHI tags |
Cleared to empty length 0 |
Always active in Basic Profile | Removes accession, site, DOB |
| Odd-group private elements | Stripped prior to 7FE0,0010 |
Remove odd-group private tags | Drops vendor blocks like 0009 |
| SOP, Study, Series UIDs | Regenerated 2.25.<128-bit> UID |
Uses crypto.getRandomValues |
Sets (0012,0062) to YES |
After scrubbing imaging scans with Anonymize DICOM headers, clinical educators sharing companion PDF case histories should also permanently mask patient identifiers before exporting reports. Downloading both Download JSON audit and Download CSV audit documents every modified element for institutional compliance checks.
Transfer syntaxes, RLE decoding, and Big Endian boundaries
Medical scanners write voxel arrays across diverse byte orderings and lossless compression schemes defined in the DICOM Standard PS3.5 Transfer Syntax encoding. Knowing which transfer syntaxes decode pixels in-browser versus preserving compressed fragments helps avoid workflow surprises during dataset triage.
Handling Implicit, Explicit, and RLE Lossless streams
The decoder reads 1.2.840.10008.1.2 (Implicit VR Little Endian), 1.2.840.10008.1.2.1 (Explicit VR Little Endian), 1.2.840.10008.1.2.2 (Explicit VR Big Endian viewing), and 1.2.840.10008.1.2.5 (RLE Lossless 64 bytes header PackBits decoding). During de-identification, Implicit Little Endian headers automatically normalize to Explicit Little Endian 1.2.840.10008.1.2.1 with recomputed (0002,0000) meta length.
Explicit Big Endian 1.2.840.10008.1.2.2 files render pixels cleanly for visual review, yet Anonymize DICOM headers intentionally stops Big Endian rewriting with an error instructing you to convert to Little Endian first. Encapsulated JPEG or JPEG 2000 pixel frames cannot decode on the canvas offline, though Tag inspector and Anonymize PHI still scrub headers and preserve compressed fragments untouched.
Pairing de-identified teaching scans with research notes
Academic teams compiling de-identified radiology series for teaching repositories or systematic case reviews often normalize reference bibliographies alongside imaging downloads. Pairing scrubbed DICOM outputs with RIS & EndNote to BibTeX keeps both visual case archives and citation managers completely offline inside browser memory.