Skip to content

Conversation

@raulbob
Copy link
Contributor

@raulbob raulbob commented Dec 8, 2025

Fixes missing MDR check on therapy tab for tuberculosis

Summary by CodeRabbit

  • New Features
    • Enhanced tuberculosis case processing to automatically flag multidrug-resistant (MDR) and extensively drug-resistant (XDR) tuberculosis cases when identified in external laboratory messages for improved case tracking and management.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link

coderabbitai bot commented Dec 8, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

A single Java file was modified to add MDR/XDR tuberculosis flag assignment within the Luxembourg-specific post-build processing logic for TB cases, following an existing pattern of therapy attribute updates based on external message fields.

Changes

Cohort / File(s) Summary
Tuberculosis MDR/XDR Flag Processing
sormas-api/src/main/java/de/symeda/sormas/api/externalmessage/processing/labmessage/AbstractLabMessageProcessingFlow.java
Added MDR/XDR tuberculosis flag assignment on TherapyDto within Luxembourg-specific TB post-build logic, mirroring existing Beijing lineage flag pattern

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

This is a straightforward, localized change that adds a single flag assignment following an established pattern. The modification is contained within a single file and involves setting a therapy attribute based on external message data—a well-understood operation within the existing codebase.

Poem

🐰 A tuberculosis flag so bright,
Luxembourg cases now done right,
MDR and XDR marked with care,
Following patterns already there!

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch bufix-tuberculosis_lab_message_mdr

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 4f0b2d6 and 1c9b68d.

📒 Files selected for processing (1)
  • sormas-api/src/main/java/de/symeda/sormas/api/externalmessage/processing/labmessage/AbstractLabMessageProcessingFlow.java (1 hunks)

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@raulbob raulbob merged commit f6b1a94 into development Dec 8, 2025
4 of 9 checks passed
@raulbob raulbob deleted the bufix-tuberculosis_lab_message_mdr branch December 8, 2025 18:09
@sormas-vitagroup
Copy link
Contributor

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