#13972 - Enhance Yersiniosis health conditions form and person form - #14253
Conversation
- added HealthConditions highIronLevel fields - added Student occupation for person enable for Yersiniosis
📝 WalkthroughWalkthroughThe change adds Yersiniosis-specific health-condition storage and display, including a Luxembourg-only high iron level field. It also adds Student occupation handling, updates occupation-detail behavior, and adds Yersiniosis disease styling. ChangesYersiniosis enhancements
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 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-ui/src/main/java/de/symeda/sormas/ui/person/PersonEditForm.java`:
- Around line 410-428: Restrict the occupation options populated by
getEnumValues in PersonEditForm so STUDENT is available for YERSINIOSIS only on
Luxembourg-configured servers. Apply the filtering before or during
occupationTypeField item setup, while preserving all other occupation values and
existing caption behavior.
🪄 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: 371decb3-3894-46ba-b038-aee1718ce67e
📒 Files selected for processing (7)
sormas-api/src/main/java/de/symeda/sormas/api/clinicalcourse/HealthConditionsDto.javasormas-api/src/main/resources/enum.propertiessormas-backend/src/main/java/de/symeda/sormas/backend/clinicalcourse/HealthConditions.javasormas-backend/src/main/java/de/symeda/sormas/backend/clinicalcourse/HealthConditionsMapper.javasormas-backend/src/main/resources/sql/sormas_schema.sqlsormas-ui/src/main/java/de/symeda/sormas/ui/clinicalcourse/HealthConditionsForm.javasormas-ui/src/main/java/de/symeda/sormas/ui/person/PersonEditForm.java
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 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-ui/src/main/webapp/VAADIN/themes/sormas/views/disease.scss`:
- Around line 683-691: Update the background-disease-yersiniosis palette to use
an approved color with sufficient contrast against the existing white labels,
and validate that both its default and background-darker variants remain
readable. If retaining `#ddef07` is required, update DiseaseTileComponent to
render dark text for Yersiniosis instead.
🪄 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: be825a65-b5ab-4f2b-9202-2dbb6829d62b
📒 Files selected for processing (2)
sormas-ui/src/main/java/de/symeda/sormas/ui/utils/CssStyles.javasormas-ui/src/main/webapp/VAADIN/themes/sormas/views/disease.scss
Fixes #13972
Summary by CodeRabbit
New Features
Bug Fixes
Style