Design a Telepathology or Telehealth Diagnostics

Hard45 min
1 / 29
System design answer

Design a Telepathology or Telehealth Diagnostics

Hard45 min29 sections
understanding•9 min read

Problem Statement: Gigapixel Diagnosis Over the Network

What a telepathology platform really is, why it is not a video-call product, and the four planes the design must keep separate.

What we are being asked to build

A pathologist makes the final diagnosis for most cancers by looking at thin slices of tissue on glass slides. Telepathology replaces the microscope with a screen: a slide scanner in the lab turns each glass slide into a whole-slide image (WSI), and a pathologist who may be in another building, city or country opens that image in a browser, zooms from a thumbnail down to single cells, marks regions, asks a colleague for a second opinion, and signs a report that lands in the patient's record.

This sounds like a file-sharing product until you look at the file. A 15 mm x 15 mm piece of tissue scanned at 40x (about 0.25 micrometre per pixel) is roughly 60,000 x 60,000 pixels. That is 3.6 gigapixels, or about 10.8 GB of raw RGB data for one slide. After JPEG compression and a multi-resolution pyramid it is still around 1 GB, and one patient case has several slides. Nobody can download that before looking at it, so the system has to behave like a map application: cut the image into tiles, keep many zoom levels, and send only the few dozen tiles that the screen needs right now.

Why this is harder than telemedicine calls

Most prep material answers this question with video visits and chat. That misses the hard part. In pathology the image is the medical evidence. A slow or wrong tile is not a bad user experience, it is a risk to a diagnosis. The design therefore has four separate concerns:

  1. Image plane: ingest multi-gigabyte files from lab scanners, verify every byte, and serve tiles in tens of milliseconds to any region.
  2. Clinical record plane: cases, specimens, draft and final reports, with strong consistency and an electronic signature. This is the part that integrates with the laboratory information system (LIS) and the hospital EMR.
  3. Collaboration plane: shared viewports, live annotations and voice or video for consults and tumor boards.
  4. Trust plane: HIPAA and GDPR controls, an audit trail for every access, and regulatory limits on what software may be used for primary diagnosis.

Real systems that set the bar

The Philips IntelliSite Pathology Solution was the first whole-slide imaging system the US FDA allowed for primary diagnosis, in April 2017. Leica Biosystems followed with the Aperio AT2 DX. Paige Prostate received FDA De Novo authorization in September 2021 as the first AI software to help pathologists detect cancer on prostate biopsy slides. On the cloud side, AWS HealthImaging, the Google Cloud Healthcare API and Azure Health Data Services all offer managed DICOM storage with DICOMweb access. These are the anchors for our design choices.

The one-line framing for the interviewer

"This is a regulated, gigapixel image streaming system with a strongly consistent clinical record attached. I will treat image bytes as immutable and cacheable, clinical state as transactional, collaboration as ephemeral, and I will keep a human pathologist as the only actor who can sign a diagnosis."

Key Highlights

  • •One slide at 40x is about 60,000 x 60,000 px: 3.6 gigapixels and 10.8 GB raw, around 1.2 GB after JPEG and pyramid
  • •The viewer works like a map: 512 px tiles across 8 zoom levels, only the visible 40 to 60 tiles are fetched
  • •Four planes: immutable image bytes, transactional clinical record, ephemeral collaboration, auditable trust controls
  • •Philips IntelliSite (FDA, April 2017) and Paige Prostate (FDA De Novo, September 2021) are the regulatory anchors
  • •Scanners upload through DICOM gateways and HTTPS into AWS HealthImaging, Google Cloud Healthcare API or Azure DICOM service
Say 'It Is Google Maps for Tissue' Early
In the first two minutes, state that a slide is a gigapixel pyramid served as tiles, not a file to download. This one sentence tells the interviewer you understand why the design is dominated by ingest bandwidth, tile latency and cache behaviour rather than by request counts.
Do Not Design a Video Visit App
Spending the interview on WebRTC video calls, chat and appointment booking answers a different question. Video is a small add-on for consults. The marks are in gigapixel image handling, clinical record integrity and compliance.

Section Rescue Kit

Buzzwords to use:

Whole-Slide Image (WSI)Primary Diagnosis

Safe statements:

  • "Before I pick any service, let me separate the image bytes, which are immutable and cacheable, from the clinical record, which must be transactional."
  • "I will keep the pathologist as the only actor who can finalize a diagnosis and treat every algorithm as decision support."
Design a Telepathology or Telehealth Diagnostics - System Design | WinJob | WinJob