Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#13156 Hide Case Classification for RSV and Automatically Set Default… #13164

Merged

Conversation

leventegal-she
Copy link
Contributor

… Values

Fixes #13156

@sormas-vitagroup
Copy link
Contributor

@@ -2066,7 +2066,8 @@ private void updateTasksOnCaseChanged(Case newCase, CaseDataDto existingCase) {
@PermitAll
public void onCaseSampleChanged(Case associatedCase) {
// Update case classification if the feature is enabled
if (configFacade.getCaseClassificationCalculationMode(associatedCase.getDisease()).isAutomaticEnabled()) {
if (configFacade.getCaseClassificationCalculationMode(associatedCase.getDisease()).isAutomaticEnabled()
& associatedCase.getDisease() != Disease.RESPIRATORY_SYNCYTIAL_VIRUS) {
Copy link
Contributor

Choose a reason for hiding this comment

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

the above condition will be hard to follow if the number of diseases with this attributes start to grow. Shouldn't we have a single place where we test the disease?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can be changed when it gets hard to follow, at the moment we don't know how it will be

@sergiupacurariu
Copy link
Contributor

will this disease features be applied only on Luxembourg servers?

@leventegal-she
Copy link
Contributor Author

will this disease features be applied only on Luxembourg servers?

For all servers

@leventegal-she leventegal-she merged commit 536f9c8 into development Oct 25, 2024
7 of 12 checks passed
@leventegal-she leventegal-she deleted the change-#13156-hide-case-classification-for-RSV branch October 25, 2024 18:12
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.

Hide Case Classification for RSV and Automatically Set Default Values [1]
3 participants