Skip to content

Feature 14230 mumps disease changes - #14245

Merged
KarnaiahPesula merged 7 commits into
developmentfrom
feature-14230-mumps-disease-changes
Jul 30, 2026
Merged

Feature 14230 mumps disease changes#14245
KarnaiahPesula merged 7 commits into
developmentfrom
feature-14230-mumps-disease-changes

Conversation

@KarnaiahPesula

@KarnaiahPesula KarnaiahPesula commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Fixes #

Summary by CodeRabbit

  • New Features
    • Added MUMPS disease support with default disease timing parameters and updated disease color styling.
    • Added a “reporting excluded” field for MUMPS cases.
    • Added pregnancy-related contact fields (pregnant, postpartum, trimester) with visibility controlled by the person’s sex and pregnancy answer.
    • Expanded clinical/lab option captions and reference values (e.g., cluster identifier, pathogen test details, additional symptom options).
  • Bug Fixes
    • Improved shigellosis background styling for consistent rendering.

@KarnaiahPesula KarnaiahPesula linked an issue Jul 28, 2026 that may be closed by this pull request
7 tasks
@coderabbitai

coderabbitai Bot commented Jul 28, 2026

Copy link
Copy Markdown

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 1d81e4ae-b4db-4cb0-8708-fdd691037b85

📥 Commits

Reviewing files that changed from the base of the PR and between 92dd400 and 150a60a.

📒 Files selected for processing (10)
  • sormas-api/src/main/java/de/symeda/sormas/api/caze/CaseDataDto.java
  • sormas-api/src/main/java/de/symeda/sormas/api/i18n/Captions.java
  • sormas-api/src/main/resources/captions.properties
  • sormas-api/src/main/resources/enum.properties
  • sormas-backend/src/main/java/de/symeda/sormas/backend/caze/Case.java
  • sormas-backend/src/main/java/de/symeda/sormas/backend/caze/CaseFacadeEjb.java
  • sormas-backend/src/main/resources/sql/sormas_schema.sql
  • sormas-ui/src/main/java/de/symeda/sormas/ui/caze/CaseDataForm.java
  • sormas-ui/src/main/java/de/symeda/sormas/ui/utils/CssStyles.java
  • sormas-ui/src/main/webapp/VAADIN/themes/sormas/views/disease.scss

📝 Walkthrough

Walkthrough

Adds Mumps disease configuration and reference data, persists Mumps reporting exclusion and contact pregnancy fields, extends disease defaults, and updates case/contact forms plus disease styling.

Changes

Mumps medical data

Layer / File(s) Summary
Disease reference data and defaults
sormas-api/.../Disease.java, sormas-api/.../Captions.java, sormas-api/.../enum.properties, sormas-api/.../captions.properties, sormas-backend/.../DiseaseConfigurationFacadeEjb.java
Adds Mumps configuration, clinical and genotype values, captions, exposure data, and disease-dependent incubation and contagious-period defaults.
Case and contact data persistence
sormas-api/.../caze/CaseDataDto.java, sormas-api/.../contact/ContactDto.java, sormas-backend/.../caze/*, sormas-backend/.../contact/*, sormas-backend/.../sql/sormas_schema.sql
Adds reporting exclusion and pregnancy-related fields to DTOs and entities, maps them through facades, and adds database columns for current and historical records.
Disease-specific and sex-specific forms
sormas-ui/.../ui/caze/*, sormas-ui/.../ui/contact/*
Displays reporting exclusion for Mumps cases and adds pregnancy and trimester fields to contact medical information, with visibility based on person sex.
Mumps disease styling
sormas-ui/.../CssStyles.java, sormas-ui/.../disease.scss
Maps Mumps to a disease CSS class, adds Mumps and Yersiniosis colors, and adjusts Shigellosis color variants.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Sequence Diagram(s)

sequenceDiagram
  participant CaseCreateForm
  participant CaseDataDto
  participant CaseFacadeEjb
  participant Case
  participant Database
  CaseCreateForm->>CaseCreateForm: show reportingExcluded for MUMPS
  CaseCreateForm->>CaseDataDto: submit reportingExcluded
  CaseDataDto->>CaseFacadeEjb: provide case data
  CaseFacadeEjb->>Case: set reportingExcluded
  Case->>Database: persist reportingexcluded
Loading

Possibly related issues

Possibly related PRs

Suggested reviewers: roldy, raulbob

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description only contains the template placeholder and lacks the required issue number after Fixes #. Replace the placeholder with the actual issue number and add a brief summary of the change if needed.
Docstring Coverage ⚠️ Warning Docstring coverage is 4.55% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and matches the main Mumps-related changes in the pull request.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature-14230-mumps-disease-changes

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@sormas-api/src/main/java/de/symeda/sormas/api/Disease.java`:
- Line 101: Update the MUMPS entry in Disease to set defaultFollowUpDuration to
25, matching defaultMaxIncubationPeriod and ensuring contact follow-up covers
the full incubation window.

In `@sormas-ui/src/main/java/de/symeda/sormas/ui/caze/CaseCreateForm.java`:
- Around line 599-605: Keep reportingExcluded synchronized with disease changes:
in CaseCreateForm’s disease visibility logic, clear the reportingExcluded value
when hiding the field for non-Mumps diseases. In CaseDataForm’s disease-change
listener, update the field visibility whenever the disease changes and clear
reportingExcluded outside Mumps; apply these changes at
sormas-ui/src/main/java/de/symeda/sormas/ui/caze/CaseCreateForm.java lines
599-605 and sormas-ui/src/main/java/de/symeda/sormas/ui/caze/CaseDataForm.java
line 734.

In `@sormas-ui/src/main/java/de/symeda/sormas/ui/contact/ContactDataForm.java`:
- Around line 584-594: Update the male branch in ContactDataForm’s trimester
visibility logic to clear CaseDataDto.TRIMESTER along with the existing
sex-inapplicable fields before or while hiding it. Ensure male contacts cannot
retain or submit values for postpartum, pregnant, or trimester, while preserving
the current visibility behavior for non-male contacts.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: a987e689-aed2-4eff-b090-11abea244674

📥 Commits

Reviewing files that changed from the base of the PR and between 0bff92e and b6a79e1.

📒 Files selected for processing (17)
  • sormas-api/src/main/java/de/symeda/sormas/api/Disease.java
  • sormas-api/src/main/java/de/symeda/sormas/api/caze/CaseDataDto.java
  • sormas-api/src/main/java/de/symeda/sormas/api/contact/ContactDto.java
  • sormas-api/src/main/java/de/symeda/sormas/api/i18n/Captions.java
  • sormas-api/src/main/resources/enum.properties
  • sormas-backend/src/main/java/de/symeda/sormas/backend/caze/Case.java
  • sormas-backend/src/main/java/de/symeda/sormas/backend/caze/CaseFacadeEjb.java
  • sormas-backend/src/main/java/de/symeda/sormas/backend/contact/Contact.java
  • sormas-backend/src/main/java/de/symeda/sormas/backend/contact/ContactFacadeEjb.java
  • sormas-backend/src/main/java/de/symeda/sormas/backend/disease/DiseaseConfigurationFacadeEjb.java
  • sormas-backend/src/main/resources/sql/sormas_schema.sql
  • sormas-ui/src/main/java/de/symeda/sormas/ui/caze/CaseCreateForm.java
  • sormas-ui/src/main/java/de/symeda/sormas/ui/caze/CaseDataForm.java
  • sormas-ui/src/main/java/de/symeda/sormas/ui/contact/ContactController.java
  • sormas-ui/src/main/java/de/symeda/sormas/ui/contact/ContactDataForm.java
  • sormas-ui/src/main/java/de/symeda/sormas/ui/utils/CssStyles.java
  • sormas-ui/src/main/webapp/VAADIN/themes/sormas/views/disease.scss

Comment thread sormas-api/src/main/java/de/symeda/sormas/api/Disease.java Outdated
Comment thread sormas-ui/src/main/java/de/symeda/sormas/ui/caze/CaseCreateForm.java Outdated
@KarnaiahPesula
KarnaiahPesula requested review from raulbob and roldy July 29, 2026 08:41
# Conflicts:
#	sormas-api/src/main/resources/captions.properties
#	sormas-api/src/main/resources/enum.properties
#	sormas-backend/src/main/resources/sql/sormas_schema.sql
#	sormas-ui/src/main/java/de/symeda/sormas/ui/utils/CssStyles.java
#	sormas-ui/src/main/webapp/VAADIN/themes/sormas/views/disease.scss
@KarnaiahPesula
KarnaiahPesula merged commit bf9285e into development Jul 30, 2026
7 checks passed
@KarnaiahPesula
KarnaiahPesula deleted the feature-14230-mumps-disease-changes branch July 30, 2026 14:41
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.

Mumps - Disease enum and case changes

2 participants