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

Commit dc2e81a

Browse files
author
FredrikSchäferVitagroup
committed
Merge branch 'development' into 3820-demis-testResultText
# Conflicts: # sormas-api/src/main/java/de/symeda/sormas/api/event/EventParticipantFacade.java # sormas-api/src/main/java/de/symeda/sormas/api/event/SimilarEventParticipantDto.java # sormas-api/src/main/java/de/symeda/sormas/api/i18n/Strings.java # sormas-api/src/main/java/de/symeda/sormas/api/labmessage/LabMessageFacade.java # sormas-api/src/main/java/de/symeda/sormas/api/labmessage/SimilarEntriesDto.java # sormas-api/src/main/resources/captions.properties # sormas-api/src/main/resources/strings.properties # sormas-backend/src/main/java/de/symeda/sormas/backend/labmessage/LabMessageFacadeEjb.java # sormas-backend/src/main/java/de/symeda/sormas/backend/labmessage/LabMessageService.java # sormas-backend/src/main/resources/sql/sormas_schema.sql # sormas-ui/src/main/java/de/symeda/sormas/ui/ControllerProvider.java # sormas-ui/src/main/java/de/symeda/sormas/ui/labmessage/EntrySelectionField.java # sormas-ui/src/main/java/de/symeda/sormas/ui/labmessage/LabMessageController.java # sormas-ui/src/main/java/de/symeda/sormas/ui/labmessage/LabMessageEditForm.java # sormas-ui/src/main/java/de/symeda/sormas/ui/labmessage/LabMessageGrid.java # sormas-ui/src/main/java/de/symeda/sormas/ui/labmessage/LabMessagesGridComponent.java # sormas-ui/src/main/java/de/symeda/sormas/ui/labmessage/LabMessagesView.java # sormas-ui/src/main/java/de/symeda/sormas/ui/samples/SampleController.java # sormas-ui/src/main/java/de/symeda/sormas/ui/samples/SamplesView.java
2 parents 5077bb6 + 2599f0a commit dc2e81a

432 files changed

Lines changed: 10317 additions & 3272 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/action/ActionDto.java

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,13 @@ public class ActionDto extends EntityDto {
4141
public static final String EVENT = "event";
4242
public static final String ACTION_CONTEXT = "actionContext";
4343
public static final String ACTION_STATUS = "actionStatus";
44+
public static final String ACTION_MEASURE = "actionMeasure";
4445

4546
@Required
4647
private ActionContext actionContext;
4748
private EventReferenceDto event;
4849

50+
private ActionMeasure actionMeasure;
4951
private ActionPriority priority;
5052
@Required
5153
private Date date;
@@ -56,15 +58,20 @@ public class ActionDto extends EntityDto {
5658
private String title;
5759
private String description;
5860
private String reply;
59-
private UserReferenceDto replyingUser;
61+
private UserReferenceDto lastModifiedBy;
6062

6163
public static ActionDto build(ActionContext context, ReferenceDto entityRef) {
64+
return build(context, null, entityRef);
65+
}
66+
67+
public static ActionDto build(ActionContext context, ActionMeasure actionMeasure, ReferenceDto entityRef) {
6268

6369
ActionDto action = new ActionDto();
6470
action.setUuid(DataHelper.createUuid());
6571
action.setDate(ActionHelper.getDefaultDate());
6672
action.setActionStatus(ActionStatus.PENDING);
6773
action.setPriority(ActionPriority.NORMAL);
74+
action.setActionMeasure(actionMeasure);
6875
action.setActionContext(context);
6976
switch (context) {
7077
case EVENT:
@@ -146,12 +153,12 @@ public void setReply(String reply) {
146153
this.reply = reply;
147154
}
148155

149-
public UserReferenceDto getReplyingUser() {
150-
return replyingUser;
156+
public UserReferenceDto getLastModifiedBy() {
157+
return lastModifiedBy;
151158
}
152159

153-
public void setReplyingUser(UserReferenceDto replyingUser) {
154-
this.replyingUser = replyingUser;
160+
public void setLastModifiedBy(UserReferenceDto lastModifiedBy) {
161+
this.lastModifiedBy = lastModifiedBy;
155162
}
156163

157164
public ActionPriority getPriority() {
@@ -162,6 +169,14 @@ public void setPriority(ActionPriority priority) {
162169
this.priority = priority;
163170
}
164171

172+
public ActionMeasure getActionMeasure() {
173+
return actionMeasure;
174+
}
175+
176+
public void setActionMeasure(ActionMeasure actionMeasure) {
177+
this.actionMeasure = actionMeasure;
178+
}
179+
165180
public ReferenceDto getContextReference() {
166181

167182
switch (actionContext) {
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/*
2+
* SORMAS® - Surveillance Outbreak Response Management & Analysis System
3+
* Copyright © 2016-2020 Helmholtz-Zentrum für Infektionsforschung GmbH (HZI)
4+
* This program is free software: you can redistribute it and/or modify
5+
* it under the terms of the GNU General Public License as published by
6+
* the Free Software Foundation, either version 3 of the License, or
7+
* (at your option) any later version.
8+
* This program is distributed in the hope that it will be useful,
9+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
* GNU General Public License for more details.
12+
* You should have received a copy of the GNU General Public License
13+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
14+
*/
15+
16+
package de.symeda.sormas.api.action;
17+
18+
import de.symeda.sormas.api.i18n.I18nProperties;
19+
20+
public enum ActionMeasure {
21+
22+
PROHIBITION_OF_ENTRY_AND_WORK_CASES,
23+
SAMPLE_COLLECTION,
24+
FORWARDING_TO_NATIONAL_REFERENCE_CENTER,
25+
CONTACT_FOLLOW_UP,
26+
VERIFICATION_OF_VACCINATION_IMMUNIZATION,
27+
POST_EXPOSURE_PROPHYLAXIS_VACCINATION,
28+
CLOSURE_OF_FACILITY,
29+
PROHIBITION_OF_ENTRY_AND_WORK_CONTACTS,
30+
POPULATION_INFORMATION,
31+
OTHER;
32+
33+
public String toString() {
34+
return I18nProperties.getEnumCaption(this);
35+
}
36+
37+
}

sormas-ui/src/main/java/de/symeda/sormas/ui/caze/CaseBulkEditData.java renamed to sormas-api/src/main/java/de/symeda/sormas/api/caze/CaseBulkEditData.java

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,27 @@
1-
package de.symeda.sormas.ui.caze;
1+
/*
2+
* ******************************************************************************
3+
* * SORMAS® - Surveillance Outbreak Response Management & Analysis System
4+
* * Copyright © 2016-2021 Helmholtz-Zentrum für Infektionsforschung GmbH (HZI)
5+
* *
6+
* * This program is free software: you can redistribute it and/or modify
7+
* * it under the terms of the GNU General Public License as published by
8+
* * the Free Software Foundation, either version 3 of the License, or
9+
* * (at your option) any later version.
10+
* *
11+
* * This program is distributed in the hope that it will be useful,
12+
* * but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* * GNU General Public License for more details.
15+
* *
16+
* * You should have received a copy of the GNU General Public License
17+
* * along with this program. If not, see <https://www.gnu.org/licenses/>.
18+
* ******************************************************************************
19+
*/
20+
21+
package de.symeda.sormas.api.caze;
222

323
import de.symeda.sormas.api.Disease;
424
import de.symeda.sormas.api.EntityDto;
5-
import de.symeda.sormas.api.caze.CaseClassification;
6-
import de.symeda.sormas.api.caze.CaseOutcome;
7-
import de.symeda.sormas.api.caze.DengueFeverType;
8-
import de.symeda.sormas.api.caze.InvestigationStatus;
9-
import de.symeda.sormas.api.caze.PlagueType;
10-
import de.symeda.sormas.api.caze.RabiesType;
1125
import de.symeda.sormas.api.facility.FacilityReferenceDto;
1226
import de.symeda.sormas.api.facility.FacilityType;
1327
import de.symeda.sormas.api.region.CommunityReferenceDto;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ public String getExternalID() {
462462
@ExportTarget(caseExportTypes = {
463463
CaseExportType.CASE_SURVEILLANCE,
464464
CaseExportType.CASE_MANAGEMENT })
465-
@ExportProperty(CaseDataDto.EXTERNAL_ID)
465+
@ExportProperty(CaseDataDto.EXTERNAL_TOKEN)
466466
@ExportGroup(ExportGroupType.CORE)
467467
public String getExternalToken() {
468468
return externalToken;

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

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@
2727
import de.symeda.sormas.api.CaseMeasure;
2828
import de.symeda.sormas.api.Disease;
2929
import de.symeda.sormas.api.Language;
30-
import de.symeda.sormas.api.messaging.ManualMessageLogDto;
31-
import de.symeda.sormas.api.messaging.MessageType;
3230
import de.symeda.sormas.api.contact.ContactReferenceDto;
3331
import de.symeda.sormas.api.contact.DashboardQuarantineDataDto;
3432
import de.symeda.sormas.api.event.EventParticipantReferenceDto;
3533
import de.symeda.sormas.api.importexport.ExportConfigurationDto;
34+
import de.symeda.sormas.api.messaging.ManualMessageLogDto;
35+
import de.symeda.sormas.api.messaging.MessageType;
3636
import de.symeda.sormas.api.person.PresentCondition;
3737
import de.symeda.sormas.api.region.DistrictDto;
3838
import de.symeda.sormas.api.region.DistrictReferenceDto;
@@ -183,4 +183,27 @@ List<DashboardQuarantineDataDto> getQuarantineDataForDashBoard(
183183
long countCasesWithMissingContactInformation(List<String> caseUuids, MessageType messageType);
184184

185185
List<ManualMessageLogDto> getMessageLog(String caseUuid, MessageType messageType);
186+
187+
String getFirstCaseUuidWithOwnershipHandedOver(List<String> caseUuids);
188+
189+
void saveBulkCase(
190+
List<String> caseUuidList,
191+
CaseBulkEditData updatedCaseBulkEditData,
192+
boolean diseaseChange,
193+
boolean classificationChange,
194+
boolean investigationStatusChange,
195+
boolean outcomeChange,
196+
boolean surveillanceOfficerChange);
197+
198+
void saveBulkEditWithFacilities(
199+
List<String> caseUuidList,
200+
CaseBulkEditData updatedCaseBulkEditData,
201+
boolean diseaseChange,
202+
boolean classificationChange,
203+
boolean investigationStatusChange,
204+
boolean outcomeChange,
205+
boolean surveillanceOfficerChange,
206+
Boolean doTransfer);
207+
208+
List<CasePersonDto> getDuplicates(CasePersonDto casePerson);
186209
}
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
/*
2+
* SORMAS® - Surveillance Outbreak Response Management & Analysis System
3+
* Copyright © 2016-2021 Helmholtz-Zentrum für Infektionsforschung GmbH (HZI)
4+
* This program is free software: you can redistribute it and/or modify
5+
* it under the terms of the GNU General Public License as published by
6+
* the Free Software Foundation, either version 3 of the License, or
7+
* (at your option) any later version.
8+
* This program is distributed in the hope that it will be useful,
9+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
* GNU General Public License for more details.
12+
* You should have received a copy of the GNU General Public License
13+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
14+
*/
15+
16+
package de.symeda.sormas.api.caze;
17+
18+
import java.io.Serializable;
19+
20+
import de.symeda.sormas.api.person.PersonDto;
21+
22+
public class CasePersonDto implements Serializable {
23+
24+
private static final long serialVersionUID = 4238365446327936524L;
25+
26+
private CaseDataDto caze;
27+
28+
private PersonDto person;
29+
30+
public CasePersonDto() {
31+
}
32+
33+
public CasePersonDto(CaseDataDto caze, PersonDto person) {
34+
this.caze = caze;
35+
this.person = person;
36+
}
37+
38+
public CaseDataDto getCaze() {
39+
return caze;
40+
}
41+
42+
public void setCaze(CaseDataDto caze) {
43+
this.caze = caze;
44+
}
45+
46+
public PersonDto getPerson() {
47+
return person;
48+
}
49+
50+
public void setPerson(PersonDto person) {
51+
this.person = person;
52+
}
53+
}

0 commit comments

Comments
 (0)