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

#13157 - Disable Contact Management for RSV Cases #13178

Conversation

sergiupacurariu
Copy link
Contributor

Fixes #13157

@sormas-vitagroup
Copy link
Contributor

@@ -233,6 +237,12 @@ protected ComboBox addDiseaseField(String fieldId, boolean showNonPrimaryDisease
newItem.getItemProperty(SormasFieldGroupFieldFactory.CAPTION_PROPERTY_ID).setValue(value.toString());
}
});

//
Copy link
Contributor

Choose a reason for hiding this comment

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

please delete the empty comment

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed

@@ -233,6 +237,12 @@ protected ComboBox addDiseaseField(String fieldId, boolean showNonPrimaryDisease
newItem.getItemProperty(SormasFieldGroupFieldFactory.CAPTION_PROPERTY_ID).setValue(value.toString());
}
});

//
if (hideFollowUpDisabledDiseases) {
Copy link
Contributor

Choose a reason for hiding this comment

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

this should be done before statement

Copy link
Contributor Author

Choose a reason for hiding this comment

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

moved above the above statement

@@ -503,6 +513,16 @@ protected void addNonPrimaryDiseasesTo(ComboBox diseaseField) {
}
}

protected void removeFollowUpDisabledDiseases(ComboBox diseaseField) {
Copy link
Contributor

Choose a reason for hiding this comment

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

please merge this with the above function to avoid requesting and iterating over disease configurations

Copy link
Contributor

Choose a reason for hiding this comment

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

this doesn't allow changing the followupEnabled from the DB because you always take the default value of the enum, you should use disease configuration instances to check wether followup is enabled or not.
So the filtering should be done on the backend

Copy link
Contributor Author

Choose a reason for hiding this comment

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

update the method to retrieve the followUpEnabled diseases

@sormas-vitagroup
Copy link
Contributor

@leventegal-she leventegal-she merged commit 8fe745c into development Nov 11, 2024
5 of 8 checks passed
@leventegal-she leventegal-she deleted the feature-13157_Disable_contact_management_for_RSV_cases branch November 11, 2024 13:01
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.

Disable Contact Management for RSV Cases [0.5]
3 participants