Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Commit 95d3bd1

Browse files
lgallgal
authored andcommitted
Merge remote-tracking branch 'origin/development' into 3360_handle-missing-uuids
2 parents 4d0db6a + 1c07278 commit 95d3bd1

157 files changed

Lines changed: 2025 additions & 295 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/>
88
</a>
99
<br/>
10-
<a href="https://github.com/hzi-braunschweig/SORMAS-Project/blob/development/LICENSE"><img alt="License" src="https://img.shields.io/badge/license-GPL%20v3-blue"/></a> <a href="https://github.com/hzi-braunschweig/SORMAS-Project/releases/latest"><img alt="Latest Release" src="https://img.shields.io/github/v/release/hzi-braunschweig/SORMAS-Project"/></a> <img alt="Development Build Status" src="https://github.com/hzi-braunschweig/SORMAS-Project/workflows/Java%20CI%20with%20Maven/badge.svg?branch=development"/> <a href="https://gitter.im/SORMAS-Project"><img alt="Gitter" src="https://badges.gitter.im/SORMAS-Project/dev-support.svg"/></a>
10+
<a href="https://github.com/hzi-braunschweig/SORMAS-Project/blob/development/LICENSE"><img alt="License" src="https://img.shields.io/badge/license-GPL%20v3-blue"/></a> <a href="https://github.com/hzi-braunschweig/SORMAS-Project/releases/latest"><img alt="Latest Release" src="https://img.shields.io/github/v/release/hzi-braunschweig/SORMAS-Project"/></a> <img alt="Development Build Status" src="https://github.com/hzi-braunschweig/SORMAS-Project/workflows/Java%20CI%20with%20Maven/badge.svg?branch=development"/> <a href="https://gitter.im/SORMAS-Project"><img alt="Gitter" src="https://badges.gitter.im/SORMAS-Project/dev-support.svg"/></a> <a href="https://twitter.com/SORMASDev"><img alt="Twitter" src="https://img.shields.io/twitter/follow/SORMASDev?label=%40SORMASDev&style=social"/></a>
1111
</p>
1212
<br/>
1313

@@ -17,7 +17,7 @@
1717
You can give SORMAS a try on our play server at https://sormas.helmholtz-hzi.de!
1818

1919
#### How Can I Get Involved?
20-
Read through our [*Contributing Readme*](CONTRIBUTING.md) and contact us at [email protected] or join our [developer chat on Gitter](https://gitter.im/SORMAS-Project) to learn how you can help to drive the development of SORMAS forward and to get development support from our core developers. SORMAS is a community-driven project, and we'd love to have you on board! If you want to contribute to the code, please strictly adhere to the [*Development Environment*](DEVELOPMENT_ENVIRONMENT.md) guide to ensure that everything is set up correctly. Please also make sure that you've read the [*Development Contributing Guidelines*](CONTRIBUTING.md#development-contributing-guidelines) before you start to develop.
20+
Read through our [*Contributing Readme*](CONTRIBUTING.md) and contact us at [email protected] or join our [developer chat on Gitter](https://gitter.im/SORMAS-Project) to learn how you can help to drive the development of SORMAS forward and to get development support from our core developers. SORMAS is a community-driven project, and we'd love to have you on board! If you want to contribute to the code, please strictly adhere to the [*Development Environment*](DEVELOPMENT_ENVIRONMENT.md) guide to ensure that everything is set up correctly. Please also make sure that you've read the [*Development Contributing Guidelines*](CONTRIBUTING.md#development-contributing-guidelines) before you start to develop, and either follow or regularly check our Twitter account <a href="https://twitter.com/SORMASDev" target="_blank">@SORMASDev</a> to stay up to date with our schedule, new releases, guideline changes and other announcements.
2121

2222
#### How Can I Report a Bug or Request a Feature?
2323
If you want to report a **security issue**, please follow our guideline for [*Responsible Disclosure*](SECURITY.md).

sormas-api/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<parent>
33
<groupId>de.symeda.sormas</groupId>
44
<artifactId>sormas-base</artifactId>
5-
<version>1.54.0-SNAPSHOT</version>
5+
<version>1.55.0-SNAPSHOT</version>
66
<relativePath>../sormas-base</relativePath>
77
</parent>
88
<modelVersion>4.0.0</modelVersion>

sormas-api/src/main/java/de/symeda/sormas/api/event/EventActionExportDto.java

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ public class EventActionExportDto implements Serializable {
3636
private String eventTitle;
3737
private String eventDesc;
3838
private String eventDate;
39+
private Date eventEvolutionDate;
40+
private String eventEvolutionComment;
3941
private EventStatus eventStatus;
42+
private RiskLevel eventRiskLevel;
4043
private EventInvestigationStatus eventInvestigationStatus;
4144
private ActionMeasure actionMeasure;
4245
private String actionTitle;
@@ -52,7 +55,10 @@ public EventActionExportDto(
5255
String eventDesc,
5356
Date eventStartDate,
5457
Date eventEndDate,
58+
Date eventEvolutionDate,
59+
String eventEvolutionComment,
5560
EventStatus eventStatus,
61+
RiskLevel eventRiskLevel,
5662
EventInvestigationStatus eventInvestigationStatus,
5763
ActionMeasure actionMeasure,
5864
String actionTitle,
@@ -71,7 +77,10 @@ public EventActionExportDto(
7177
this.eventTitle = eventTitle;
7278
this.eventDesc = eventDesc;
7379
this.eventDate = EventHelper.buildEventDateString(eventStartDate, eventEndDate);
80+
this.eventEvolutionDate = eventEvolutionDate;
81+
this.eventEvolutionComment = eventEvolutionComment;
7482
this.eventStatus = eventStatus;
83+
this.eventRiskLevel = eventRiskLevel;
7584
this.eventInvestigationStatus = eventInvestigationStatus;
7685
this.actionMeasure = actionMeasure;
7786
this.actionTitle = actionTitle;
@@ -105,46 +114,61 @@ public String getEventDate() {
105114
}
106115

107116
@Order(4)
117+
public Date getEventEvolutionDate() {
118+
return eventEvolutionDate;
119+
}
120+
121+
@Order(5)
122+
public String getEventEvolutionComment() {
123+
return eventEvolutionComment;
124+
}
125+
126+
@Order(6)
108127
public EventStatus getEventStatus() {
109128
return eventStatus;
110129
}
111130

112-
@Order(5)
131+
@Order(7)
132+
public RiskLevel getEventRiskLevel() {
133+
return eventRiskLevel;
134+
}
135+
136+
@Order(8)
113137
public EventInvestigationStatus getEventInvestigationStatus() {
114138
return eventInvestigationStatus;
115139
}
116140

117-
@Order(6)
141+
@Order(9)
118142
public ActionMeasure getActionMeasure() {
119143
return actionMeasure;
120144
}
121145

122-
@Order(7)
146+
@Order(10)
123147
public String getActionTitle() {
124148
return actionTitle;
125149
}
126150

127-
@Order(8)
151+
@Order(11)
128152
public Date getActionCreationDate() {
129153
return actionCreationDate;
130154
}
131155

132-
@Order(9)
156+
@Order(12)
133157
public Date getActionChangeDate() {
134158
return actionChangeDate;
135159
}
136160

137-
@Order(10)
161+
@Order(13)
138162
public ActionStatus getActionStatus() {
139163
return actionStatus;
140164
}
141165

142-
@Order(11)
166+
@Order(14)
143167
public ActionPriority getActionPriority() {
144168
return actionPriority;
145169
}
146170

147-
@Order(12)
171+
@Order(15)
148172
public UserReferenceDto getActionLastModifiedBy() {
149173
return actionLastModifiedBy;
150174
}

sormas-api/src/main/java/de/symeda/sormas/api/event/EventActionIndexDto.java

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ public class EventActionIndexDto implements Serializable {
3636
public static final String EVENT_START_DATE = "eventStartDate";
3737
public static final String EVENT_END_DATE = "eventEndDate";
3838
public static final String EVENT_STATUS = "eventStatus";
39+
public static final String EVENT_RISK_LEVEL = "eventRiskLevel";
3940
public static final String EVENT_INVESTIGATION_STATUS = "eventInvestigationStatus";
41+
public static final String EVENT_EVOLUTION_DATE = "eventEvolutionDate";
4042
public static final String ACTION_TITLE = "actionTitle";
4143
public static final String ACTION_CREATION_DATE = "actionCreationDate";
4244
public static final String ACTION_CHANGE_DATE = "actionChangeDate";
@@ -50,7 +52,9 @@ public class EventActionIndexDto implements Serializable {
5052
private Date eventStartDate;
5153
private Date eventEndDate;
5254
private EventStatus eventStatus;
55+
private RiskLevel eventRiskLevel;
5356
private EventInvestigationStatus eventInvestigationStatus;
57+
private Date eventEvolutionDate;
5458
private String actionTitle;
5559
private Date actionCreationDate;
5660
private Date actionChangeDate;
@@ -65,8 +69,10 @@ public EventActionIndexDto(
6569
Date eventStartDate,
6670
Date eventEndDate,
6771
EventStatus eventStatus,
72+
RiskLevel eventRiskLevel,
6873
EventInvestigationStatus eventInvestigationStatus,
6974
ActionMeasure actionMeasure,
75+
Date eventEvolutionDate,
7076
String actionTitle,
7177
Date actionCreationDate,
7278
Date actionChangeDate,
@@ -84,8 +90,11 @@ public EventActionIndexDto(
8490
this.eventStartDate = eventStartDate;
8591
this.eventEndDate = eventEndDate;
8692
this.eventStatus = eventStatus;
93+
this.eventRiskLevel = eventRiskLevel;
8794
this.eventInvestigationStatus = eventInvestigationStatus;
8895
this.actionTitle = EventHelper.buildEventActionTitleString(actionMeasure, actionTitle);
96+
this.eventEvolutionDate = eventEvolutionDate;
97+
this.actionTitle = actionTitle;
8998
this.actionCreationDate = actionCreationDate;
9099
this.actionChangeDate = actionChangeDate;
91100
this.actionStatus = actionStatus;
@@ -134,6 +143,14 @@ public void setEventStatus(EventStatus eventStatus) {
134143
this.eventStatus = eventStatus;
135144
}
136145

146+
public RiskLevel getEventRiskLevel() {
147+
return eventRiskLevel;
148+
}
149+
150+
public void setEventRiskLevel(RiskLevel eventRiskLevel) {
151+
this.eventRiskLevel = eventRiskLevel;
152+
}
153+
137154
public EventInvestigationStatus getEventInvestigationStatus() {
138155
return eventInvestigationStatus;
139156
}
@@ -142,6 +159,14 @@ public void setEventInvestigationStatus(EventInvestigationStatus eventInvestigat
142159
this.eventInvestigationStatus = eventInvestigationStatus;
143160
}
144161

162+
public Date getEventEvolutionDate() {
163+
return eventEvolutionDate;
164+
}
165+
166+
public void setEventEvolutionDate(Date eventEvolutionDate) {
167+
this.eventEvolutionDate = eventEvolutionDate;
168+
}
169+
145170
public String getActionTitle() {
146171
return actionTitle;
147172
}

sormas-api/src/main/java/de/symeda/sormas/api/event/EventCriteria.java

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,13 @@ public class EventCriteria extends BaseCriteria implements Serializable {
4545
public static final String SURVEILLANCE_OFFICER = "surveillanceOfficer";
4646
public static final String FREE_TEXT = "freeText";
4747
public static final String EVENT_STATUS = "eventStatus";
48+
public static final String RISK_LEVEL = "riskLevel";
4849
public static final String EVENT_INVESTIGATION_STATUS = "eventInvestigationStatus";
4950
public static final String DISTRICT = "district";
5051
public static final String REGION = "region";
5152

5253
private EventStatus eventStatus;
54+
private RiskLevel riskLevel;
5355
private EventInvestigationStatus eventInvestigationStatus;
5456
private Disease disease;
5557
private UserRole reportingUserRole;
@@ -63,6 +65,9 @@ public class EventCriteria extends BaseCriteria implements Serializable {
6365
private Date eventDateFrom;
6466
private Date eventDateTo;
6567
private DateFilterOption dateFilterOption = DateFilterOption.DATE;
68+
private Date eventEvolutionDateFrom;
69+
private Date eventEvolutionDateTo;
70+
private DateFilterOption evolutionDateFilterOption = DateFilterOption.DATE;
6671
private UserReferenceDto surveillanceOfficer;
6772
private String freeText;
6873
private EventSourceType srcType;
@@ -95,6 +100,19 @@ public void setEventStatus(EventStatus eventStatus) {
95100
this.eventStatus = eventStatus;
96101
}
97102

103+
public RiskLevel getRiskLevel() {
104+
return riskLevel;
105+
}
106+
107+
public EventCriteria riskLevel(RiskLevel riskLevel) {
108+
this.riskLevel = riskLevel;
109+
return this;
110+
}
111+
112+
public void setRiskLevel(RiskLevel riskLevel) {
113+
this.riskLevel = riskLevel;
114+
}
115+
98116
public EventInvestigationStatus getEventInvestigationStatus() {
99117
return eventInvestigationStatus;
100118
}
@@ -268,6 +286,40 @@ public DateFilterOption getDateFilterOption() {
268286
return dateFilterOption;
269287
}
270288

289+
public EventCriteria eventEvolutionDateBetween(Date eventEvolutionDateFrom, Date eventEvolutionDateTo, DateFilterOption evolutionDateFilterOption) {
290+
this.eventEvolutionDateFrom = eventEvolutionDateFrom;
291+
this.eventEvolutionDateTo = eventEvolutionDateTo;
292+
this.evolutionDateFilterOption = evolutionDateFilterOption;
293+
return this;
294+
}
295+
296+
public EventCriteria eventEvolutionDateFrom(Date eventEvolutionDateFrom) {
297+
this.eventEvolutionDateFrom = eventEvolutionDateFrom;
298+
return this;
299+
}
300+
301+
public Date getEventEvolutionDateFrom() {
302+
return eventEvolutionDateFrom;
303+
}
304+
305+
public EventCriteria eventEvolutionDateTo(Date eventEvolutionDateTo) {
306+
this.eventEvolutionDateTo = eventEvolutionDateTo;
307+
return this;
308+
}
309+
310+
public Date getEventEvolutionDateTo() {
311+
return eventEvolutionDateTo;
312+
}
313+
314+
public EventCriteria evolutionDateFilterOption(DateFilterOption evolutionDateFilterOption) {
315+
this.evolutionDateFilterOption = evolutionDateFilterOption;
316+
return this;
317+
}
318+
319+
public DateFilterOption getEvolutionDateFilterOption() {
320+
return evolutionDateFilterOption;
321+
}
322+
271323
public EventCriteria surveillanceOfficer(UserReferenceDto surveillanceOfficer) {
272324
this.surveillanceOfficer = surveillanceOfficer;
273325
return this;
@@ -311,6 +363,11 @@ public void setTypeOfPlace(TypeOfPlace typeOfPlace) {
311363
this.typeOfPlace = typeOfPlace;
312364
}
313365

366+
public EventCriteria typeOfPlace(TypeOfPlace typeOfPlace) {
367+
setTypeOfPlace(typeOfPlace);
368+
return this;
369+
}
370+
314371
public ActionStatus getActionStatus() {
315372
return actionStatus;
316373
}
@@ -336,6 +393,9 @@ public EventCriteria dateBetween(DateType dateType, Date dateFrom, Date dateTo,
336393
case EVENT:
337394
eventDateBetween(dateFrom, dateTo, dateFilterOption);
338395
break;
396+
case EVENT_SIGNAL_EVOLUTION:
397+
eventEvolutionDateBetween(dateFrom, dateTo, dateFilterOption);
398+
break;
339399
case ACTION:
340400
actionChangeDateBetween(dateFrom, dateTo, dateFilterOption);
341401
break;
@@ -384,6 +444,7 @@ public DateFilterOption getActionChangeDateFilterOption() {
384444

385445
public enum DateType {
386446
EVENT,
447+
EVENT_SIGNAL_EVOLUTION,
387448
ACTION,
388449
}
389450

sormas-api/src/main/java/de/symeda/sormas/api/event/EventDto.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ public class EventDto extends PseudonymizableDto {
5252
public static final String MULTI_DAY_EVENT = "multiDayEvent";
5353
public static final String REPORT_DATE_TIME = "reportDateTime";
5454
public static final String REPORTING_USER = "reportingUser";
55+
public static final String EVOLUTION_DATE = "evolutionDate";
56+
public static final String EVOLUTION_COMMENT = "evolutionComment";
5557
public static final String EVENT_LOCATION = "eventLocation";
5658
public static final String TYPE_OF_PLACE = "typeOfPlace";
5759
public static final String MEANS_OF_TRANSPORT = "meansOfTransport";
@@ -98,6 +100,8 @@ public class EventDto extends PseudonymizableDto {
98100
private Date reportDateTime;
99101
@Required
100102
private UserReferenceDto reportingUser;
103+
private Date evolutionDate;
104+
private String evolutionComment;
101105
private LocationDto eventLocation;
102106
private TypeOfPlace typeOfPlace;
103107
private MeansOfTransport meansOfTransport;
@@ -259,6 +263,22 @@ public void setReportingUser(UserReferenceDto reportingUser) {
259263
this.reportingUser = reportingUser;
260264
}
261265

266+
public Date getEvolutionDate() {
267+
return evolutionDate;
268+
}
269+
270+
public void setEvolutionDate(Date evolutionDate) {
271+
this.evolutionDate = evolutionDate;
272+
}
273+
274+
public String getEvolutionComment() {
275+
return evolutionComment;
276+
}
277+
278+
public void setEvolutionComment(String evolutionComment) {
279+
this.evolutionComment = evolutionComment;
280+
}
281+
262282
public TypeOfPlace getTypeOfPlace() {
263283
return typeOfPlace;
264284
}

0 commit comments

Comments
 (0)