Skip to content

feat: Add Additional Metadata Fields to Patient, Specimen and Segment Panels#345

Merged
igoroctaviano merged 3 commits intomasterfrom
feat/339
Oct 27, 2025
Merged

feat: Add Additional Metadata Fields to Patient, Specimen and Segment Panels#345
igoroctaviano merged 3 commits intomasterfrom
feat/339

Conversation

@igoroctaviano
Copy link
Collaborator

Changes Made

Screenshot 2025-10-23 at 21 57 23 Screenshot 2025-10-23 at 21 57 52 Screenshot 2025-10-23 at 21 57 58

Right Panel (Patient Component)

Added the following fields to the top-corner section of the right panel:

  • PatientAge - Displays the patient's age
  • AdmittingDiagnoses - Shows admitting diagnoses description
  • PrimaryAnatomicStructureModifier - Displays primary anatomic structure modifier sequence

SEG Segment Panel (SegmentItem Component)

Added the following fields to the SEG segment panel:

  • SegmentationType - Shows the segmentation type from metadata
  • AlgorithmType - Displays the algorithm type with CodeMeaning

SpecimenItem Component Enhancement

Enhanced the specimen display to properly handle PrimaryAnatomicStructureModifierSequence by:

  • Searching within the PrimaryAnatomicStructureSequence for modifier sequences
  • Extracting and displaying modifier information when available

Files Modified

  • slim/src/components/Patient.tsx - Added patient metadata fields
  • slim/src/components/SegmentItem.tsx - Added segmentation metadata fields
  • slim/src/components/SpecimenItem.tsx - Enhanced specimen modifier handling

Testing

  • All changes compile successfully without TypeScript errors
  • No linting errors introduced
  • Fields display correctly when metadata is available

This enhancement provides users with more comprehensive metadata information in both the patient information panel and segmentation details panel.

@deepsource-io
Copy link

deepsource-io bot commented Oct 24, 2025

Here's the code health analysis summary for commits f061971..ff79e10. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource JavaScript LogoJavaScript❌ Failure
❗ 6 occurences introduced
View Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
4.4% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@igoroctaviano igoroctaviano merged commit 61a3081 into master Oct 27, 2025
6 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants