Skip to content

Conversation

@adamrefaey
Copy link
Collaborator

Change

  • Add ReportMetadata interface and internationalize missing reference ranges message in reports
  • Introduced ReportMetadata interface in frontend/src/common/models/medicalReport.ts to encapsulate metadata related to medical reports.
  • Added internationalized message for missing reference ranges in English, Spanish, and French translation files.
  • Updated AiAnalysisTab component to display a notice when reference ranges are missing.

Does this PR introduce a breaking change?

{...}

What needs to be documented once your changes are merged?

{...}

Additional Comments

{...}

…anges message in reports

- Introduced ReportMetadata interface in frontend/src/common/models/medicalReport.ts to encapsulate metadata related to medical reports.
- Added internationalized message for missing reference ranges in English, Spanish, and French translation files.
- Updated AiAnalysisTab component to display a notice when reference ranges are missing.
@adamrefaey adamrefaey requested review from GuidoBR and Copilot April 25, 2025 16:03
@adamrefaey adamrefaey self-assigned this Apr 25, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a ReportMetadata interface to encapsulate medical report metadata and internationalizes the message displayed when reference ranges are missing.

  • Added ReportMetadata interface in the medical report models.
  • Added an internationalized MissingReferenceRangesNotice component.
  • Updated the AiAnalysisTab component to conditionally render the MissingReferenceRangesNotice.

Reviewed Changes

Copilot reviewed 3 out of 6 changed files in this pull request and generated no comments.

File Description
frontend/src/pages/Reports/components/MissingReferenceRangesNotice.tsx Added a new component to display a notice when reference ranges are missing.
frontend/src/pages/Reports/components/AiAnalysisTab.tsx Updated to conditionally render MissingReferenceRangesNotice.
frontend/src/common/models/medicalReport.ts Introduced ReportMetadata interface and updated MedicalReport.
Files not reviewed (3)
  • frontend/src/common/utils/i18n/resources/en/reportDetail.json: Language not supported
  • frontend/src/common/utils/i18n/resources/es/report.json: Language not supported
  • frontend/src/common/utils/i18n/resources/fr/report.json: Language not supported
Comments suppressed due to low confidence (1)

frontend/src/pages/Reports/components/MissingReferenceRangesNotice.tsx:12

  • [nitpick] The CSS class 'low-confidence-notice' is used in a component intended to display a notice for missing reference ranges. Consider renaming it to 'missing-reference-ranges-notice' for increased clarity.
<div className="low-confidence-notice">

@GuidoBR GuidoBR merged commit 618d4d6 into main Apr 25, 2025
1 check passed
@adamrefaey adamrefaey deleted the ADE-66 branch April 25, 2025 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants