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

Commit 2231b11

Browse files
lgallgal
authored andcommitted
Merge remote-tracking branch 'origin/development' into 3411_person-salutation
# Conflicts: # sormas-app/app/src/main/java/de/symeda/sormas/app/backend/common/DatabaseHelper.java # sormas-backend/src/main/resources/sql/sormas_schema.sql
2 parents e15b2b7 + a3701cc commit 2231b11

40 files changed

Lines changed: 672 additions & 118 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ SORMAS officially supports and is tested on **Chromium-based browsers** (like Go
2727

2828
#### Is there a ReST API documentation?
2929
Yes! Please download the [latest release](https://github.com/hzi-braunschweig/SORMAS-Project/releases/latest) and copy the content of /deploy/openapi/sormas-rest.yaml to an editor that generates a visual API documentation (e.g. https://editor.swagger.io/).
30+
<br/>
31+
Runtime Swagger documentation of the External Visits Resource (used by external symptom journals such as CLIMEDO or PIA) is also available at ``<<host>>/sormas-rest/visits-external/openapi.json`` or ``<<host>>/sormas-rest/visits-external/openapi.yaml``
3032

3133
<p align="center"><img src="https://user-images.githubusercontent.com/23701005/74659600-ebb8fc00-5194-11ea-836b-a7ca9d682301.png"/></p>
3234

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

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ public class CaseIndexDetailedDto extends CaseIndexDto {
3030
public static final String LATEST_EVENT_ID = "latestEventId";
3131
public static final String LATEST_EVENT_STATUS = "latestEventStatus";
3232
public static final String LATEST_EVENT_TITLE = "latestEventTitle";
33+
public static final String LATEST_SAMPLE_DATE_TIME = "latestSampleDateTime";
34+
public static final String SAMPLE_COUNT = "sampleCount";
35+
public static final String SYMPTOM_ONSET_DATE = "symptomOnsetDate";
3336

3437
@PersonalData
3538
@SensitiveData
@@ -53,6 +56,9 @@ public class CaseIndexDetailedDto extends CaseIndexDto {
5356
private String latestEventId;
5457
private String latestEventTitle;
5558
private EventStatus latestEventStatus;
59+
private Date latestSampleDateTime;
60+
private Long sampleCount;
61+
private Date symptomOnsetDate;
5662

5763
private UserReferenceDto reportingUser;
5864

@@ -66,7 +72,8 @@ public CaseIndexDetailedDto(long id, String uuid, String epidNumber, String exte
6672
Integer age, ApproximateAgeType ageType, Integer birthdateDD, Integer birthdateMM, Integer birthdateYYYY, Sex sex,
6773
Date quarantineTo, Float completeness, FollowUpStatus followUpStatus, Date followUpUntil, Date changeDate, Long facilityId,
6874
String city, String street, String houseNumber, String additionalInformation, String postalCode, String phone,
69-
String reportingUserFirstName, String reportingUserLastName, int visitCount, long eventCount) {
75+
String reportingUserFirstName, String reportingUserLastName, Date symptomOnsetDate,
76+
int visitCount, long eventCount, Date latestSampleDateTime, long sampleCount) {
7077

7178
super(id, uuid, epidNumber, externalID, personFirstName, personLastName, disease, diseaseDetails, caseClassification, investigationStatus,
7279
presentCondition, reportDate, reportingUserUuid, creationDate, regionUuid, districtUuid, districtName, communityUuid,
@@ -83,6 +90,9 @@ public CaseIndexDetailedDto(long id, String uuid, String epidNumber, String exte
8390
this.phone = phone;
8491
this.reportingUser = new UserReferenceDto(reportingUserUuid, reportingUserFirstName, reportingUserLastName, null);
8592
this.eventCount = eventCount;
93+
this.latestSampleDateTime = latestSampleDateTime;
94+
this.sampleCount = sampleCount;
95+
this.symptomOnsetDate = symptomOnsetDate;
8696
}
8797

8898
public String getCity() {
@@ -144,4 +154,16 @@ public EventStatus getLatestEventStatus() {
144154
public void setLatestEventStatus(EventStatus latestEventStatus) {
145155
this.latestEventStatus = latestEventStatus;
146156
}
157+
158+
public Date getLatestSampleDateTime() {
159+
return latestSampleDateTime;
160+
}
161+
162+
public Long getSampleCount() {
163+
return sampleCount;
164+
}
165+
166+
public Date getSymptomOnsetDate() {
167+
return symptomOnsetDate;
168+
}
147169
}

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public class EventDto extends PseudonymizableDto {
3636

3737
public static final String EVENT_STATUS = "eventStatus";
3838
public static final String EVENT_INVESTIGATION_STATUS = "eventInvestigationStatus";
39+
public static final String RISK_LEVEL = "riskLevel";
3940
public static final String EVENT_INVESTIGATION_START_DATE = "eventInvestigationStartDate";
4041
public static final String EVENT_INVESTIGATION_END_DATE = "eventInvestigationEndDate";
4142
public static final String EVENT_PERSONS = "eventPersons";
@@ -53,6 +54,8 @@ public class EventDto extends PseudonymizableDto {
5354
public static final String EVENT_LOCATION = "eventLocation";
5455
public static final String TYPE_OF_PLACE = "typeOfPlace";
5556
public static final String SRC_TYPE = "srcType";
57+
public static final String SRC_INSTITUTIONAL_PARTNER_TYPE = "srcInstitutionalPartnerType";
58+
public static final String SRC_INSTITUTIONAL_PARTNER_TYPE_DETAILS = "srcInstitutionalPartnerTypeDetails";
5659
public static final String SRC_FIRST_NAME = "srcFirstName";
5760
public static final String SRC_LAST_NAME = "srcLastName";
5861
public static final String SRC_TEL_NO = "srcTelNo";
@@ -69,6 +72,7 @@ public class EventDto extends PseudonymizableDto {
6972

7073
@Required
7174
private EventStatus eventStatus;
75+
private RiskLevel riskLevel;
7276
private EventInvestigationStatus eventInvestigationStatus;
7377
private Date eventInvestigationStartDate;
7478
private Date eventInvestigationEndDate;
@@ -86,6 +90,8 @@ public class EventDto extends PseudonymizableDto {
8690
private LocationDto eventLocation;
8791
private TypeOfPlace typeOfPlace;
8892
private EventSourceType srcType;
93+
private InstitutionalPartnerType srcInstitutionalPartnerType;
94+
private String srcInstitutionalPartnerTypeDetails;
8995
private String srcFirstName;
9096
private String srcLastName;
9197
private String srcTelNo;
@@ -122,6 +128,14 @@ public void setEventStatus(EventStatus eventStatus) {
122128
this.eventStatus = eventStatus;
123129
}
124130

131+
public RiskLevel getRiskLevel() {
132+
return riskLevel;
133+
}
134+
135+
public void setRiskLevel(RiskLevel riskLevel) {
136+
this.riskLevel = riskLevel;
137+
}
138+
125139
public EventInvestigationStatus getEventInvestigationStatus() {
126140
return eventInvestigationStatus;
127141
}
@@ -234,6 +248,22 @@ public void setSrcType(EventSourceType srcType) {
234248
this.srcType = srcType;
235249
}
236250

251+
public InstitutionalPartnerType getSrcInstitutionalPartnerType() {
252+
return srcInstitutionalPartnerType;
253+
}
254+
255+
public void setSrcInstitutionalPartnerType(InstitutionalPartnerType srcInstitutionalPartnerType) {
256+
this.srcInstitutionalPartnerType = srcInstitutionalPartnerType;
257+
}
258+
259+
public String getSrcInstitutionalPartnerTypeDetails() {
260+
return srcInstitutionalPartnerTypeDetails;
261+
}
262+
263+
public void setSrcInstitutionalPartnerTypeDetails(String srcInstitutionalPartnerTypeDetails) {
264+
this.srcInstitutionalPartnerTypeDetails = srcInstitutionalPartnerTypeDetails;
265+
}
266+
237267
public String getSrcFirstName() {
238268
return srcFirstName;
239269
}

0 commit comments

Comments
 (0)