/** * Report Component * * Displays the final clinical assessment report and equity self-evaluation. * Designed to look like a high-fidelity EHR clinical note. */ import React from 'react'; import './Report.css'; const Report = ({ reportData, mstData, onStartOver }) => { if (!reportData || !mstData) return null; return (
{/* Clinical Report Section */}

📋 Clinical Assessment Report

{/* MST Card */}
Skin Tone (MST)
MST {mstData.mst_value} - {mstData.category}
{/* Stage Card */}
Wound Stage
{reportData.stage}
{/* Urgency Card */}
Urgency
{reportData.urgency}

Clinical Rationale

{reportData.rationale}

Recommended Care Plan

{reportData.care_plan.split('\n').map((line, i) => (
{line}
))}
{/* Equity Self-Evaluation Section (Auto-generated based on MST) */}

⚖️ Equity Self-Evaluation

The AI agent performed a self-check to ensure the assessment followed equitable standards for Monk Skin Tone (MST) criteria.

Identified patient as MST {mstData.mst_value} ({mstData.category})
Applied MST-specific visual guidance: "{mstData.visual_guidance}"
{mstData.mst_value >= 7 ? (
Equity Check Passed: Did NOT use "redness" or "erythema" as primary indicator for Deep skin tone. Relied on purple/blue/maroon discoloration and texture.
) : mstData.mst_value >= 4 ? (
Equity Check Passed: Used "redness" with caution. Verified with secondary signs (warmth, shiny skin) appropriate for Medium skin tone.
) : (
Standard Criteria Used: "Redness" / "Erythema" checks are valid for Light skin tone (MST 1-3).
)}
{/* Actions */}
); }; export default Report;