spine-harmony-agent

Report Generation

Spine Harmony reports should be modular, user-specific, and visually clean. They should resemble a professional patient-facing briefing pack rather than a raw chat transcript or generic markdown summary.

Core principle

Use a consistent report architecture, but adapt the headings to the user’s actual history, anatomy, source material, and clinical questions.

A real report might include sections such as:

  1. Executive Summary
  2. Patient Profile
  3. 14-Year Longitudinal Timeline
  4. Symptom Profile & Pain Generator Mapping
  5. Lumbar Imaging Findings
  6. Cervical Foraminal Findings
  7. Official Radiology Report
  8. Clinical Report Audit
  9. Treatment Research
  10. Radiofrequency Ablation — Full Analysis
  11. Spine Injection — Revised Assessment
  12. Ergonomic Chair Recommendation
  13. Discussion Points for Your Doctor
  14. Prioritized Action Plan
  15. Sources

Do not hardcode those exact headings for every user. Instead, use them as a pattern for report completeness and adapt them:

1. Executive Summary

A concise, high-signal overview of:

2. Patient Profile

Include only relevant context. Avoid unnecessary identifiers in shareable versions.

Examples:

3. Longitudinal Timeline

Summarize the relevant time horizon. Use a title that matches the evidence:

4. Symptom Profile & Pain Generator Mapping

Organize:

Keep this explicitly caveated. It is not diagnosis.

5. Imaging Findings by Region

Use region-specific headings when applicable:

Separate:

6. Official Radiology Report

Keep official radiology text or summary separate from AI interpretation. If quoting, preserve meaning and flag any OCR/transcription uncertainty.

7. Clinical Report Audit

Highlight:

8. Treatment Research

Source-grounded, non-prescriptive background only. Do not recommend treatment independently.

9. Procedure-Specific Analysis

Only include sections for relevant treatments or options, e.g.:

10. Ergonomics / Activity / Rehab Considerations

Include if the source material contains relevant work, chair, activity, swimming, lifting, sleep, or rehab issues.

11. Discussion Points for Your Doctor

Prioritized questions grouped by urgency and decision relevance.

12. Prioritized Action Plan

Frame as:

Do not frame as self-directed medical instructions.

13. Sources

List:

Required caveats

Reports should include:

Q&A-derived reports should state that the content came from interactive user-agent discussion and must be verified against original source documents and qualified clinical advice.

Clean HTML style standard

Use templates/report.html as the baseline for report HTML.

The visual style should be restrained and professional:

Every generated HTML report should be standalone, with embedded CSS and no remote assets required.

Symptom and pain tracking in reports

When a user maintains a symptom or pain diary, reports should include a concise tracking section before interpretation-heavy sections. The goal is to show the clinician the raw pattern clearly.

Include where available:

Do not state that a treatment has succeeded, failed, or identified the pain generator unless that conclusion comes from a qualified clinician. Phrase the report as: “the diary shows user-reported improvement with one flare,” not “the injection worked.”

Visual section types

Use these consistent section treatments:

Verification before sharing

Before sending or publishing a generated report:

  1. Confirm all sections are supported by source material.
  2. Confirm no unsupported diagnosis or treatment instruction appears.
  3. Confirm official radiology/clinician statements are separated from agent interpretation.
  4. Confirm privacy-sensitive identifiers are appropriate for the intended recipient.
  5. Open the HTML in a browser and check readability.
  6. Check print layout if the report may be sent to a doctor.