Skip to content

Commit

Permalink
Updated the enum list for diseases in tested disease for AHF
Browse files Browse the repository at this point in the history
  • Loading branch information
Flava177 committed Nov 14, 2024
1 parent a304767 commit 18660ba
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,13 @@ public List<FinalClassification> getDiseaseFinalClassifications(Disease disease)

private void handleAHF(){

List<Disease> testedDiseases = Arrays.stream(Disease.AHF_DISEASES.toArray(new Disease[0]))
.filter(c -> fieldVisibilityCheckers.isVisible(Disease.class, c.name()))
.collect(Collectors.toList());

List<Item> itemList = DataUtils.toItems(testedDiseases);
getContentBinding().pathogenTestTestedDisease.initializeSpinner(itemList);


getContentBinding().pathogenTestSampleTests.setOnValueChangeListener(selectedValues -> {
List<String> selectedItems = getContentBinding().pathogenTestSampleTests.getSelectedValues();
Expand Down

0 comments on commit 18660ba

Please sign in to comment.