Skip to main content

Report Generation Module

The Report Generation module automatically creates preliminary diagnostic reports based on analysis results.


🎯 Purpose

Provide clinicians with structured, readable summaries to accelerate diagnosis and documentation.


🔍 How It Works

  • Aggregates data from detection, classification, and measurement modules.
  • Uses natural language generation (NLG) tailored for medical contexts.
  • Supports customizable templates and language options.

⚙️ Key Parameters

ParameterTypeDescriptionDefault
templatestringReport style template IDdefault
languagestringReport language (e.g., en, fr)en
include_imagesbooleanWhether to embed annotated images in reportfalse
tip
  • Customize templates to fit your clinical workflow and branding.
  • Enable include_images for richer, more informative reports.

📦 Output Format

Sample JSON output:

{
"report_id": "RPT123456",
"text": "Preliminary analysis indicates a 32.5 mm dilation of the aorta, consistent with aneurysm.",
"language": "en",
"images_included": false
}

🛠️ Usage Example

curl -X POST "https://api.neolens.ai/v1/report-generation" \
-H "Authorization: Bearer <API_KEY>" \
-F "analysis_id=ANL987654" \
-F "template=default" \
-F "language=en" \
-F "include_images=true"

⚠️ Limitations

  • Generated reports are preliminary and should be reviewed by specialists.
  • Language nuances may require manual adjustment.
  • Image embedding increases report size and transmission time.