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

Commit 5dc873b

Browse files
lgallgal
authored andcommitted
Merge remote-tracking branch 'origin/development' into 3416_SurvNet-nosocomial-outbreak
2 parents 63958ad + c5a5255 commit 5dc873b

16 files changed

Lines changed: 548 additions & 91 deletions

File tree

sormas-api/src/main/java/de/symeda/sormas/api/caze/CaseFacade.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ Map<PresentCondition, Long> getCaseCountPerPersonCondition(
115115

116116
Date getOldestCaseReportDate();
117117

118+
Date getOldestCaseOutcomeDate();
119+
118120
boolean isArchived(String caseUuid);
119121

120122
boolean isDeleted(String caseUuid);
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
package de.symeda.sormas.api.contact;
2+
3+
import java.io.Serializable;
4+
5+
public class FollowUpStatusDto implements Serializable {
6+
7+
private static final long serialVersionUID = 6075542609471404489L;
8+
9+
private String uuid;
10+
private FollowUpStatus followUpStatus;
11+
12+
public FollowUpStatusDto(String uuid, FollowUpStatus followUpStatus) {
13+
14+
this.uuid = uuid;
15+
this.followUpStatus = followUpStatus;
16+
17+
}
18+
19+
public String getUuid() {
20+
return uuid;
21+
}
22+
23+
public void setUuid(String uuid) {
24+
this.uuid = uuid;
25+
}
26+
27+
public FollowUpStatus getFollowUpStatus() {
28+
return followUpStatus;
29+
}
30+
31+
public void setFollowUpStatus(FollowUpStatus followUpStatus) {
32+
this.followUpStatus = followUpStatus;
33+
}
34+
}

sormas-api/src/main/java/de/symeda/sormas/api/person/JournalPersonDto.java

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
package de.symeda.sormas.api.person;
22

3+
import de.symeda.sormas.api.contact.FollowUpStatus;
34
import de.symeda.sormas.api.utils.PersonalData;
45
import de.symeda.sormas.api.utils.SensitiveData;
56

67
import java.io.Serializable;
78
import java.util.Date;
9+
import java.util.Objects;
810

911
import de.symeda.sormas.api.utils.PersonalData;
1012
import de.symeda.sormas.api.utils.SensitiveData;
@@ -31,8 +33,8 @@ public class JournalPersonDto implements Serializable {
3133
private Integer birthdateYYYY;
3234

3335
private Sex sex;
34-
@SensitiveData
3536
private Date latestFollowUpEndDate;
37+
private FollowUpStatus followUpStatus;
3638

3739
public String getUuid() {
3840
return uuid;
@@ -122,4 +124,54 @@ public void setLatestFollowUpEndDate(Date latestFollowUpEndDate) {
122124
this.latestFollowUpEndDate = latestFollowUpEndDate;
123125
}
124126

127+
public FollowUpStatus getFollowUpStatus() {
128+
return followUpStatus;
129+
}
130+
131+
public void setFollowUpStatus(FollowUpStatus followUpStatus) {
132+
this.followUpStatus = followUpStatus;
133+
}
134+
135+
@Override
136+
public String toString() {
137+
return uuid + ' ' + firstName + ' ' + lastName;
138+
}
139+
140+
@Override
141+
public boolean equals(Object o) {
142+
if (this == o)
143+
return true;
144+
if (o == null || getClass() != o.getClass())
145+
return false;
146+
JournalPersonDto that = (JournalPersonDto) o;
147+
return pseudonymized == that.pseudonymized
148+
&& Objects.equals(uuid, that.uuid)
149+
&& Objects.equals(firstName, that.firstName)
150+
&& Objects.equals(lastName, that.lastName)
151+
&& Objects.equals(emailAddress, that.emailAddress)
152+
&& Objects.equals(phone, that.phone)
153+
&& Objects.equals(birthdateDD, that.birthdateDD)
154+
&& Objects.equals(birthdateMM, that.birthdateMM)
155+
&& Objects.equals(birthdateYYYY, that.birthdateYYYY)
156+
&& sex == that.sex
157+
&& Objects.equals(latestFollowUpEndDate, that.latestFollowUpEndDate)
158+
&& followUpStatus == that.followUpStatus;
159+
}
160+
161+
@Override
162+
public int hashCode() {
163+
return Objects.hash(
164+
uuid,
165+
pseudonymized,
166+
firstName,
167+
lastName,
168+
emailAddress,
169+
phone,
170+
birthdateDD,
171+
birthdateMM,
172+
birthdateYYYY,
173+
sex,
174+
latestFollowUpEndDate,
175+
followUpStatus);
176+
}
125177
}

sormas-api/src/main/java/de/symeda/sormas/api/person/PersonFacade.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
import de.symeda.sormas.api.Disease;
2727
import de.symeda.sormas.api.caze.CaseCriteria;
28+
import de.symeda.sormas.api.contact.FollowUpStatus;
2829
import de.symeda.sormas.api.region.DistrictReferenceDto;
2930
import de.symeda.sormas.api.user.UserReferenceDto;
3031

@@ -67,6 +68,8 @@ public interface PersonFacade {
6768

6869
Date getLatestFollowUpEndDateByUuid(String uuid);
6970

71+
FollowUpStatus getMostRelevantFollowUpStatusByUuid(String uuid);
72+
7073
boolean setSymptomJournalStatus(String personUuid, SymptomJournalStatus status);
7174

7275
}

sormas-api/src/main/java/de/symeda/sormas/api/statistics/StatisticsCaseAttribute.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,18 @@ public enum StatisticsCaseAttribute {
4545
StatisticsCaseSubAttribute.EPI_WEEK_OF_YEAR,
4646
StatisticsCaseSubAttribute.DATE_RANGE),
4747

48+
OUTCOME_TIME(StatisticsCaseAttributeGroup.TIME,
49+
false,
50+
true,
51+
StatisticsCaseSubAttribute.YEAR,
52+
StatisticsCaseSubAttribute.QUARTER,
53+
StatisticsCaseSubAttribute.MONTH,
54+
StatisticsCaseSubAttribute.EPI_WEEK,
55+
StatisticsCaseSubAttribute.QUARTER_OF_YEAR,
56+
StatisticsCaseSubAttribute.MONTH_OF_YEAR,
57+
StatisticsCaseSubAttribute.EPI_WEEK_OF_YEAR,
58+
StatisticsCaseSubAttribute.DATE_RANGE),
59+
4860
JURISDICTION(StatisticsCaseAttributeGroup.PLACE,
4961
true,
5062
true,

0 commit comments

Comments
 (0)