Software quality and security

radio-quiz.it · ← Back to Radiology Quiz · Italiano

This page explains how we protect data, how we check that cases and their scoring are correct, and how we test the software before every release. The checks described here are automatic and run again at every change: they are not promises, but tests the software must pass before it goes online.

Educational tool, not a medical device. Radiology Quiz is for training on anonymous cases. It is not certified as a medical device and must not be used for diagnosis, reporting or clinical decisions. The checks on this page concern educational correctness, privacy and software security, not clinical use.

Contents

  1. Privacy by design
  2. Correct cases and scoring
  3. How the software is tested
  4. Code quality
  5. Security
  6. How a new version is released
  7. Known limitations
  8. Tools used
  9. Reporting problems

1. Privacy by design

Case images

The desktop viewer

Artificial intelligence

How we test it

With synthetic DICOM files containing invented data (never real data). The tests check, searching the file's raw bytes too:

At every change, a thousand randomly generated files are added, with invented data in ever-different fields and formats, plus deliberately damaged files (truncated or with altered bytes). No patient data may get through in any of them. This test has already closed two gaps that hand-written tests did not see: a file with a wrong length could hide the name inside a technical field, and a free-comment field among the technical ones stayed in the file. A malformed file is now excluded.

2. Correct cases and scoring

3. How the software is tested

LevelWhat it checksWhen
Unit and regression testsAnonymization, scoring, scales, PDF and Word reports, analyses, server rules, permissions, translations. They are over 150 checks.before every release; also at every code change
Browser testsViewer and tools (windowing, measurements, ROI, MPR, cardiac MRI, T2*), student and teacher workflow, client viewer without network. The same tests run with Chrome, with the Safari engine (iPad, iPhone, Mac) and with Firefox.before every release
Full suiteComplete user journeys, phone, graphics cards, 3D analysis and AI in the browser. It takes about 17 minutes.for every group of changes
Accessibilityaxe-core with the WCAG 2.0, 2.1 and 2.2 rules, levels A and AA, on 17 pages; keyboard use; 200% zoom without horizontal scrolling.in the full suite
PerformanceSize of what is downloaded on opening, with upper limits: a change that makes the page heavier than the limits does not pass.before every release
Scoring rulesOn thousands of randomly generated cases and answers we check rules that must always hold: the score is between 0 and 100, an extra correct answer never lowers it, a wrong one never raises it, the order of answers does not matter, writing a wrong finding instead of the right one does not count as having found it.at every code change
Absurd requests to the serverHundreds of requests with missing, wrong or malicious data to every server function, with and without login: it must always answer with a clear error, without crashing and without showing other people's data.at every code change
Missing, interrupted or slow networkWe simulate the connection dropping while a student sends an answer, a connection cut halfway and a very slow network: choices and report are kept, a clear message appears, the second attempt succeeds, pressing several times never sends twice.before every major release
Viewer memoryWe open 24 of the largest CT and MRI exams one after the other and measure the memory used by the page after each: it must not grow case after case, so the browser neither slows down nor crashes, even on tablets.before every major release
Loading timesWith Lighthouse, as from a mid-range phone on slow 4G: home, an open case and information pages, on the real site and in test. If a change makes a page slower or heavier, the check reports it.before every major release
Offline viewer updateWhoever installed the client viewer gets the new version without losing recent exams, settings and choices already made, and keeps using it without network before and after the update. Only site files stay in the browser storage, never exam data.before every major release
Digital slidesPublic DICOM slides and purpose-built ones (3-channel fluorescence on 3 focal planes, sparse tiles, label and overview) open in Chrome, Safari and Firefox: tissue visible, calibration in µm, planes and channels that change the image, label shown only after confirmation. In the offline viewer no network requests; on the site the slide is read in pieces (a few MB even for a 1.7 GB file) and the student sees it only after answering. Tools: exact 10× and 40× magnification, rotation, keyboard, history, areas and ellipses with area and perimeter compared with the expected value, counting in high-power fields with density per mm², annotations saved, exported to DICOM and read back identical also with highdicom, colours (DAB only, brightness) and reset, snapshot, two slides side by side at the same scale, JPEG 2000 decoding in web workers, detail only when still on a slow network.before every major release; on the site every day
Lung nodule volumeThe semiautomatic volume is measured on 140 nodules from 30 CT scans, clicking at the centre given by the AI second reading, and compared with the AI volume: it must stay within twice or half in at least 60% of nodules (65% today; before version 1.270 it was 4%). Follow-up over time on two CT scans one year apart and the reading trace shown after the answer are checked too.before every major release
Dates and time zonesAssignment deadlines end at 23:59 Rome time with the correct daylight saving time; reminders and reviews are counted on the calendar across the clock change, at month end, at year end and on 29 February, whatever the server time zone.at every code change
Security scanOWASP ZAP visits the pages and server functions in test, also with teacher access, and tries the most common attacks: code injection, cross-site scripting, exposed folders and files, insecure cookies and headers.before every major release
Cloud configurationRead-only check of storage (not public, encrypted), continuous database backup, two-factor authentication, access keys and HTTPS-only distribution.before every major release
Links and librariesEvery week we check that the external links cited in the cases (DOI, image archives, licences) still work. The libraries used are watched automatically: if a known vulnerability appears, an alert arrives with the fix.every week and automatically
Screenshot comparisonEleven pages (home, case list, viewer, phone, client, information pages, English, dark theme) captured and compared pixel by pixel with the last good version: this catches visual breakage that functional tests miss.for every group of changes
Testing the testsThousands of small errors are deliberately introduced into anonymization and answer scoring, and we count how many the tests catch. Errors that go unnoticed point to the checks to add.periodically
TranslationsEvery interface text has its English translation, with the same structure and placeholders.before every release
Check on the live siteAfter the release, on the real site: the page opens, without a code access stays closed, images of a case that was not opened stay closed, a student cannot read the answers or see other accounts. The security headers are checked too, and that non-public files (code repository, backups, tests) cannot be reached. The same check, with the expiry of the certificate and of the domain and the records that make emails arrive (SPF, DKIM, DMARC), is repeated automatically every day.after every release and every day

Tests run on a local simulator of the site, with test accounts. On the real site only the check in the last row is used, with a test account created and deleted immediately afterwards.

4. Code quality

5. Security

6. How a new version is released

  1. Changes pass the automatic checks before entering the code repository; then the tests run again on GitHub.
  2. The release runs all the tests again: if a single one fails, it stops and the site stays as it was.
  3. The site's files are minified, checked again and uploaded; every version has a sequential number.
  4. Right afterwards, a check on the real site verifies access, permissions and images.

7. Known limitations

8. Tools used for the checks

All open source. They are only used to check the software and are not distributed with the site. The site's libraries are listed in Licenses and credits.

ToolLicensePurpose
Node.js test runnerMITunit and regression tests
Playwright with ChromiumApache-2.0browser tests
axe-coreMPL-2.0accessibility (WCAG)
ESLintMITerrors in JavaScript code
c8ISCtest coverage
gitleaksMITfinding passwords and keys in the code
ShellCheckGPL-3.0script errors
Tesseract OCRApache-2.0text burned into images
pydicomMITchecks of DICOM files on the preparation computer
LighthouseApache-2.0loading times
OWASP ZAPApache-2.0security scan
fast-checkMITproperty-based tests on random data
istanbulBSD-3-Clausecode instrumentation for browser coverage
StrykerJSApache-2.0testing the tests (mutation testing)
pixelmatchISCscreenshot comparison
esbuildMITfile minification and performance measurement

9. Reporting problems

Found an error in a case, a security problem or data that should not be there? Write to info@radio-quiz.it; for privacy, to privacy@radio-quiz.it. Security reports are handled with priority: please do not disclose them before the problem is fixed.

Page updated November 2026.