Skip to content

Feature 14231 mumps symptoms & exposure change - #14259

Merged
KarnaiahPesula merged 10 commits into
developmentfrom
feature-14231-mumps-symptoms-change
Jul 31, 2026
Merged

Feature 14231 mumps symptoms & exposure change#14259
KarnaiahPesula merged 10 commits into
developmentfrom
feature-14231-mumps-symptoms-change

Conversation

@KarnaiahPesula

@KarnaiahPesula KarnaiahPesula commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Fixes #

Summary by CodeRabbit

  • New Features
    • Added comprehensive mumps case, symptom, complication, and clinical manifestation support.
    • Added cluster tracking for mumps, including cluster identifiers and expanded cluster types.
    • Added fields for salivary swelling, orchitis, pancreatitis, complications, and other general symptoms.
    • Added respiratory droplet exposure classification.
  • Bug Fixes
    • Improved symptom and complication visibility and labeling in case forms.
    • Expanded exposure settings and disease-specific field handling.
    • Added unknown and not-applicable options for cluster classification.

# Conflicts:
#	sormas-api/src/main/java/de/symeda/sormas/api/symptoms/SymptomsDto.java
#	sormas-backend/src/main/java/de/symeda/sormas/backend/symptoms/Symptoms.java
#	sormas-backend/src/main/java/de/symeda/sormas/backend/symptoms/SymptomsFacadeEjb.java
#	sormas-backend/src/main/resources/sql/sormas_schema.sql
#	sormas-ui/src/main/java/de/symeda/sormas/ui/symptoms/SymptomsForm.java
@KarnaiahPesula KarnaiahPesula linked an issue Jul 31, 2026 that may be closed by this pull request
@coderabbitai

coderabbitai Bot commented Jul 31, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The PR adds mumps support across epidemiology, exposure, clinical manifestations, symptoms, backend persistence, schema migration, and UI forms. It also adds respiratory droplet exposure support and cluster identifier handling.

Changes

Mumps epidemiology and exposure contracts

Layer / File(s) Summary
Epidemiology and exposure contract updates
sormas-api/.../epidata/*, sormas-api/.../exposure/*, sormas-api/.../symptoms/ClinicalManifestation.java
Adds cluster types, mumps applicability, cluster identifiers, respiratory droplet exposure, and disease-specific clinical manifestation mappings.

Mumps symptom contract

Layer / File(s) Summary
Mumps symptom fields and mappings
sormas-api/.../symptoms/SymptomsDto.java
Adds mumps-specific symptoms, complication fields, validation annotations, disease mappings, and accessors.

Backend persistence and schema

Layer / File(s) Summary
Entity, facade, and schema persistence
sormas-backend/.../epidata/*, sormas-backend/.../symptoms/*, sormas-backend/src/main/resources/sql/sormas_schema.sql
Stores and maps cluster identifiers and mumps symptom fields. Adds schema migration entries and columns.

User-interface integration

Layer / File(s) Summary
Epidemiology and symptom form behavior
sormas-ui/.../epidata/EpiDataForm.java, sormas-ui/.../symptoms/SymptomsForm.java, sormas-ui/.../caze/CaseSymptomSideViewComponent.java
Adds mumps cluster fields, updates symptom visibility and onset tracking, and handles YesNoUnknown complication values.

Estimated code review effort: 4 (Complex) | ~45 minutes

Possibly related PRs

Suggested reviewers: roldy, raulbob

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 16.67% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check ⚠️ Warning The description retains the template but does not provide the required related issue number after “Fixes #”. Add the related issue number after “Fixes #” in the pull request description.
✅ Passed checks (3 passed)
Check name Status Explanation
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.
Title check ✅ Passed The title clearly identifies the main mumps symptom and exposure changes, although it omits some cluster-related details.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature-14231-mumps-symptoms-change

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: 4

🤖 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/symptoms/SymptomsDto.java`:
- Around line 5898-5949: Update the `@Order` annotations for the mumps-related
getters in SymptomsDto, starting with getNoComplications and continuing through
getOtherGeneralSymptomsText, so each uses a unique unused order value and does
not duplicate getWateryDiarrhea’s `@Order`(370). Keep the getter and setter
behavior unchanged.

In `@sormas-backend/src/main/resources/sql/sormas_schema.sql`:
- Around line 17007-17027: Update the schema migration around the version 657
changes to add matching clusterIdentifier columns to both epidata and
epidata_history, using the type compatible with the EpiData entity mapping. Keep
the existing symptom-column changes and schema version entries intact.
- Around line 17016-17025: Update the othergeneralsymptomstext column
definitions in both symptoms and symptoms_history to varchar(512), matching
FieldConstraints.CHARACTER_LIMIT_DEFAULT and the validation in SymptomsDto and
Symptoms; leave the other migration columns unchanged.

In `@sormas-ui/src/main/java/de/symeda/sormas/ui/symptoms/SymptomsForm.java`:
- Around line 1056-1060: Remove the duplicate MACULOPAPULAR_RASH entry from
unconditionalSymptomFieldIds in SymptomsForm, keeping the existing earlier entry
and all other symptom identifiers unchanged so addListenerForOnsetFields
registers only one listener for it.
🪄 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: 59647353-453f-414f-b22a-a8360cc5f353

📥 Commits

Reviewing files that changed from the base of the PR and between 8ffdb16 and 4842bca.

📒 Files selected for processing (14)
  • sormas-api/src/main/java/de/symeda/sormas/api/epidata/ClusterType.java
  • sormas-api/src/main/java/de/symeda/sormas/api/epidata/EpiDataDto.java
  • sormas-api/src/main/java/de/symeda/sormas/api/exposure/ExposureCategory.java
  • sormas-api/src/main/java/de/symeda/sormas/api/exposure/ExposureSetting.java
  • sormas-api/src/main/java/de/symeda/sormas/api/symptoms/ClinicalManifestation.java
  • sormas-api/src/main/java/de/symeda/sormas/api/symptoms/SymptomsDto.java
  • sormas-backend/src/main/java/de/symeda/sormas/backend/epidata/EpiData.java
  • sormas-backend/src/main/java/de/symeda/sormas/backend/epidata/EpiDataFacadeEjb.java
  • sormas-backend/src/main/java/de/symeda/sormas/backend/symptoms/Symptoms.java
  • sormas-backend/src/main/java/de/symeda/sormas/backend/symptoms/SymptomsFacadeEjb.java
  • sormas-backend/src/main/resources/sql/sormas_schema.sql
  • sormas-ui/src/main/java/de/symeda/sormas/ui/caze/CaseSymptomSideViewComponent.java
  • sormas-ui/src/main/java/de/symeda/sormas/ui/epidata/EpiDataForm.java
  • sormas-ui/src/main/java/de/symeda/sormas/ui/symptoms/SymptomsForm.java

Comment thread sormas-api/src/main/java/de/symeda/sormas/api/symptoms/SymptomsDto.java Outdated
Comment thread sormas-backend/src/main/resources/sql/sormas_schema.sql Outdated
Comment thread sormas-backend/src/main/resources/sql/sormas_schema.sql Outdated

@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-backend/src/main/resources/sql/sormas_schema.sql`:
- Line 17018: Update the MUMPS exposurecategories migration to merge
RESPIRATORY_DROPLET into the existing value rather than replacing it with a
fixed list. Preserve all site-specific additions and removals while avoiding
duplicate RESPIRATORY_DROPLET entries.
- Line 17018: Update the diseaseconfiguration migration statement for disease
'MUMPS' to also set changedate when changing exposurecategories, ensuring
clients detect and receive the updated configuration.
- Line 17028: Remove the UPDATE targeting diseaseconfiguration_history for
MUMPS. Apply the exposurecategories change only to the current
diseaseconfiguration table, following the established migration pattern and
preserving existing historical rows.
🪄 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: 3c29b128-cd63-4c81-a28a-4cda915d41ca

📥 Commits

Reviewing files that changed from the base of the PR and between 4842bca and f8802c6.

📒 Files selected for processing (3)
  • sormas-api/src/main/java/de/symeda/sormas/api/symptoms/SymptomsDto.java
  • sormas-backend/src/main/resources/sql/sormas_schema.sql
  • sormas-ui/src/main/java/de/symeda/sormas/ui/symptoms/SymptomsForm.java
💤 Files with no reviewable changes (1)
  • sormas-ui/src/main/java/de/symeda/sormas/ui/symptoms/SymptomsForm.java
🚧 Files skipped from review as they are similar to previous changes (1)
  • sormas-api/src/main/java/de/symeda/sormas/api/symptoms/SymptomsDto.java

Comment thread sormas-backend/src/main/resources/sql/sormas_schema.sql Outdated
Comment thread sormas-backend/src/main/resources/sql/sormas_schema.sql Outdated
@KarnaiahPesula
KarnaiahPesula requested review from raulbob and roldy July 31, 2026 10:53
@KarnaiahPesula KarnaiahPesula changed the title Feature 14231 mumps symptoms change Feature 14231 mumps symptoms & exposure change Jul 31, 2026
@KarnaiahPesula
KarnaiahPesula merged commit 9978e5c into development Jul 31, 2026
7 checks passed
@KarnaiahPesula
KarnaiahPesula deleted the feature-14231-mumps-symptoms-change branch July 31, 2026 11:33
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 - symptoms change

2 participants