Skip to main content

radreport

Turn English-language radiology report text into structured data with Python or from the command line. Radreport runs locally and has no runtime dependencies.

PyPI Python License DOI

Install

python -m pip install radreport

The examples here reflect the source checkout. To use the latest changes, run python -m pip install . from the repository root.

Try it with a synthetic report

from radreport import RecommendationExtractor, ReportParser

text = """FINDINGS:
A right upper lobe nodule measures 8 x 6 mm.
IMPRESSION:
Follow-up CT in 6 months is recommended.
"""

report = ReportParser().parse(text, modality="CT")
RecommendationExtractor().extract(report)

print(report.all_measurements[0].dimensions_mm)  # [8.0, 6.0]
print(report.recommendations[0].interval)         # 6 months

Use report.to_json() for the structured report or report.to_flat_dict() for one row in a research dataset.

Command line

radreport report.txt --recommend
radreport - --recommend < report.txt
radreport reports/*.txt --deidentify --recommend --format csv -o cohort.csv
radreport current.txt --compare prior.txt --modality CT
radreport report.txt --template ct_chest
radreport --list-templates
radreport report.txt --fhir --modality CT

Batch JSON is an array whenever multiple inputs are supplied. If some inputs fail, the command still writes successful results, prints diagnostics to stderr, and exits with status 1. See the CLI reference for flags and output formats.

Guides

Task Guide
Extract sections, anatomy, and measurements Parsing
Pull out follow-up intervals and modalities Follow-up recommendations
Surface mentions of critical findings for review Critical findings
Compare measured findings across studies Prior-study comparison
Check report wording against a checklist Templates
Redact common identifiers before processing De-identification
Export a FHIR DiagnosticReport FHIR export

See the Python API reference and the runnable synthetic end-to-end example.

The follow-up benchmarks cover chest X-rays and multiple other report types and include a protocol for measuring reviewer time.

Use and limitations

Radreport accepts plain text. Rules and terminology are tuned for English, and outputs are intended for research, integration work, and human review. Template coverage measures textual mentions. Comparison labels reflect heuristic matching between reports.

Review redacted text before sharing it. CLI de-identification also substitutes numbered labels for input filenames. The Python redaction audit contains the original matched text, and a FHIR --patient-id is copied into the output when provided. See known limitations for details by feature.

Contributing

See CONTRIBUTING.md for local setup and how to report a parsing issue with a synthetic example. Changes are documented in the changelog. If you use Radreport in research, see CITATION.cff. The code is available under the MIT license.

Metadata

Release files for radreport 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for radreport 0.7.0
File Size Uploaded Provenance Actions
radreport-0.7.0.tar.gz 50.9 kB With provenance Details for radreport-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for radreport 0.7.0
File Interpreter ABI Platform Actions
radreport-0.7.0-py3-none-any.whl Python 3 none any Details for radreport-0.7.0-py3-none-any.whl

Total release size: 90.6 kB

Release files / radreport-0.7.0.tar.gz

Download URL radreport-0.7.0.tar.gz
Size 50.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d617d2f27abfc61db16f4730088a10b8d7714bf0f9d7c753834170f76ffa2791
BLAKE2b-256 checksum
How to use checksums
56ba4679b7c874bc9eaff1f1d1d9c70f2a10fc574893bf71206accae3ddacf48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Release files / radreport-0.7.0-py3-none-any.whl

Download URL radreport-0.7.0-py3-none-any.whl
Size 39.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9e0ef5b4f97731fb7db512624ec7b8b8f88902d5049e1ec4702469603a2121e5
BLAKE2b-256 checksum
How to use checksums
cf379fdc72357a20e4cd6fc23a86a79aa8dc477de9bf092bb19a8418a504ff7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Security for radreport 0.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for radreport-0.7.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.7.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page