File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
sormas-api/src/main/java/de/symeda/sormas/api/caze
sormas-ui/src/main/java/de/symeda/sormas/ui/configuration Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -643,6 +643,8 @@ public class CaseDataDto extends SormasToSormasShareableDto implements IsCase {
643643 private String department ;
644644
645645 private NotifierReferenceDto notifier ;
646+ @ Diseases (value = {
647+ Disease .TUBERCULOSIS })
646648 private RadiographyCompatibility radiographyCompatibility ;
647649 private String otherDiagnosticCriteria ;
648650
Original file line number Diff line number Diff line change @@ -945,6 +945,11 @@ private void generateCases() {
945945 valid = false ;
946946 }
947947
948+ if (config .getDisease () == null ) {
949+ errorMessage .append ("You must set a valid value for field 'Disease of the cases' in 'Generate Cases'" ).append ("<br>" );
950+ valid = false ;
951+ }
952+
948953 if (valid ) {
949954 generateCases (config );
950955 } else {
You can’t perform that action at this time.
0 commit comments