Skip to content

Commit

Permalink
#13204 - RSV disease variants - add support for similar Customizable …
Browse files Browse the repository at this point in the history
…disease values
  • Loading branch information
SergiuPacurariu committed Dec 19, 2024
1 parent 3bc290d commit 3988839
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public class PathogenTestDto extends PseudonymizableDto {
public static final String TESTED_DISEASE = "testedDisease";
public static final String TESTED_DISEASE_VARIANT = "testedDiseaseVariant";
public static final String TESTED_DISEASE_VARIANT_DETAILS = "testedDiseaseVariantDetails";
public static final String TESTED_PATHOGEN_VALUE = "testedPathogenValue";
public static final String TESTED_PATHOGEN = "testedPathogen";
public static final String TESTED_PATHOGEN_DETAILS = "testedPathogenDetails";
public static final String TYPING_ID = "typingId";
public static final String TEST_TYPE = "testType";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public Predicate buildCriteriaFilter(EnvironmentSampleCriteria criteria, Environ
filter = CriteriaBuilderHelper.and(
cb,
filter,
cb.equal(joins.getPathogenTests().get(PathogenTestDto.TESTED_PATHOGEN_VALUE), criteria.getTestedPathogen().getValue()));
cb.equal(joins.getPathogenTests().get(PathogenTest.TESTED_PATHOGEN_VALUE), criteria.getTestedPathogen().getValue()));
}
if (criteria.getReportDateFrom() != null && criteria.getReportDateTo() != null) {
filter = CriteriaBuilderHelper
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public class PathogenTestForm extends AbstractEditForm<PathogenTestDto> {
fluidRowLocs(PathogenTestDto.PCR_TEST_SPECIFICATION, "") +
fluidRowLocs(PathogenTestDto.TESTED_DISEASE, PathogenTestDto.TESTED_DISEASE_DETAILS) +
fluidRowLocs(PathogenTestDto.TESTED_DISEASE_VARIANT, PathogenTestDto.TESTED_DISEASE_VARIANT_DETAILS) +
fluidRowLocs(PathogenTestDto.TESTED_PATHOGEN_VALUE, PathogenTestDto.TESTED_PATHOGEN_DETAILS) +
fluidRowLocs(PathogenTestDto.TESTED_PATHOGEN, PathogenTestDto.TESTED_PATHOGEN_DETAILS) +
fluidRowLocs(PathogenTestDto.TYPING_ID, "") +
fluidRowLocs(PathogenTestDto.TEST_DATE_TIME, PathogenTestDto.LAB) +
fluidRowLocs("", PathogenTestDto.LAB_DETAILS) +
Expand Down Expand Up @@ -260,7 +260,7 @@ protected void addFields() {
TextField diseaseVariantDetailsField = addField(PathogenTestDto.TESTED_DISEASE_VARIANT_DETAILS, TextField.class);
diseaseVariantDetailsField.setVisible(false);

ComboBox testedPathogenField = addCustomizableEnumField(PathogenTestDto.TESTED_PATHOGEN_VALUE);
ComboBox testedPathogenField = addCustomizableEnumField(PathogenTestDto.TESTED_PATHOGEN);
TextField testedPathogenDetailsField = addField(PathogenTestDto.TESTED_PATHOGEN_DETAILS, TextField.class);
testedPathogenDetailsField.setVisible(false);
FieldHelper.updateItems(testedPathogenField, FacadeProvider.getCustomizableEnumFacade().getEnumValues(CustomizableEnumType.PATHOGEN, null));
Expand Down

0 comments on commit 3988839

Please sign in to comment.