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

Commit 239b2bf

Browse files
Merge branch 'master' into development [manual]
Conforms to the GITFLOW process: * [GITFLOW]merging 'master' into 'development' * [GITFLOW]Updating develop poms back to pre merge state Necessary because there were merge conflicts during the hotfix finish
2 parents 998ed99 + a3f3618 commit 239b2bf

33 files changed

Lines changed: 102 additions & 176 deletions

File tree

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.51.1</version>
5+
<version>1.52.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/caze/CaseCriteria.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ public class CaseCriteria extends BaseCriteria implements Cloneable {
4646
public static final String MUST_HAVE_NO_GEO_COORDINATES = "mustHaveNoGeoCoordinates";
4747
public static final String MUST_BE_PORT_HEALTH_CASE_WITHOUT_FACILITY = "mustBePortHealthCaseWithoutFacility";
4848
public static final String MUST_HAVE_CASE_MANAGEMENT_DATA = "mustHaveCaseManagementData";
49-
public static final String EXCLUDE_SHARED_CASES = "excludeSharedCases";
5049
public static final String WITHOUT_RESPONSIBLE_OFFICER = "withoutResponsibleOfficer";
5150
public static final String WITH_EXTENDED_QUARANTINE = "withExtendedQuarantine";
5251
public static final String WITH_REDUCED_QUARANTINE = "withReducedQuarantine";
@@ -102,7 +101,6 @@ public class CaseCriteria extends BaseCriteria implements Cloneable {
102101
private EntityRelevanceStatus relevanceStatus;
103102
private String sourceCaseInfoLike;
104103
private Date quarantineTo;
105-
public Boolean excludeSharedCases;
106104
private Integer birthdateYYYY;
107105
private Integer birthdateMM;
108106
private Integer birthdateDD;
@@ -472,14 +470,6 @@ public void setQuarantineTo(Date quarantineTo) {
472470
this.quarantineTo = quarantineTo;
473471
}
474472

475-
public Boolean getExcludeSharedCases() {
476-
return excludeSharedCases;
477-
}
478-
479-
public void setExcludeSharedCases(Boolean excludeSharedCases) {
480-
this.excludeSharedCases = excludeSharedCases;
481-
}
482-
483473
public Integer getBirthdateYYYY() {
484474
return birthdateYYYY;
485475
}

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,9 @@ public class CaseDataDto extends PseudonymizableDto {
188188
@EmbeddedPersonalData
189189
private PersonReferenceDto person;
190190
@Outbreaks
191-
@HideForCountries()
191+
@HideForCountries(countries = {
192+
COUNTRY_CODE_GERMANY,
193+
COUNTRY_CODE_SWITZERLAND })
192194
private String epidNumber;
193195
@Outbreaks
194196
@Required

sormas-api/src/main/resources/captions_de-CH.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ DocumentTemplate.documentTemplateGuide=Dokumentvorlagen-Anleitung
860860
DocumentTemplate.plural=Dokumentvorlagen
861861
DocumentTemplate.QuarantineOrder=Isolations-/Quarantänebescheid
862862
DocumentTemplate.QuarantineOrder.create=Isolations-/Quarantänebescheid erstellen
863-
DocumentTemplate.QuarantineOrder.templates=Isolations-/Quarantänebescheid Vorlagen
863+
DocumentTemplate.QuarantineOrder.templates=Isolations-/Quarantänebescheid-Vorlagen
864864
DocumentTemplate.uploadTemplate=Vorlage hochladen
865865
DocumentTemplate.exampleTemplateLibreOffice=Beispielvorlage LibreOffice
866866
DocumentTemplate.exampleTemplateWord=Beispielvorlage Microsoft Word

sormas-api/src/main/resources/captions_de-DE.properties

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -858,9 +858,9 @@ EpiData.snakes=Schlangen
858858
DocumentTemplate=Dokumentvorlage
859859
DocumentTemplate.documentTemplateGuide=Dokumentvorlagen-Anleitung
860860
DocumentTemplate.plural=Dokumentvorlagen
861-
DocumentTemplate.QuarantineOrder=Bescheid
862-
DocumentTemplate.QuarantineOrder.create=Bescheid erstellen
863-
DocumentTemplate.QuarantineOrder.templates=Bescheid Vorlagen
861+
DocumentTemplate.QuarantineOrder=Isolations-/Quarantänebescheid
862+
DocumentTemplate.QuarantineOrder.create=Isolations-/Quarantänebescheid erstellen
863+
DocumentTemplate.QuarantineOrder.templates=Isolations-/Quarantänebescheid-Vorlagen
864864
DocumentTemplate.uploadTemplate=Vorlage hochladen
865865
DocumentTemplate.exampleTemplateLibreOffice=Beispielvorlage LibreOffice
866866
DocumentTemplate.exampleTemplateWord=Beispielvorlage Microsoft Word
@@ -1953,4 +1953,4 @@ SurvnetGateway.send=an eigene SurvNet-Instanz senden
19531953
patientDiaryRegistrationError=Person konnte nicht im Symptomtagebuch registriert werden.
19541954
patientDiaryPersonNotExportable=Die Person kann nicht in das Symptomtagebuch exportiert werden. Die Person benötigt ein gültiges Geburtsdatum und entweder eine gültige Telefonnummer oder E-Mail Adresse.
19551955

1956-
showPlacesOnMap=Anzeigen
1956+
showPlacesOnMap=Anzeigen

sormas-api/src/main/resources/descriptions.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ descCaseFilterWithExtendedQuarantine = Only list cases whose quarantine period h
6565
descContactOnlyWithExtendedQuarantine = Only list contacts whose quarantine period has been extended
6666
descCaseFilterWithReducedQuarantine = Only list cases whose quarantine period has been reduced
6767
descCaseFilterRelatedToEvent = Only list cases related to events
68-
descCaseFilterIncludeCasesFromOtherJurisdictions = Include the cases created by you for other jurisdictions
68+
descCaseFilterIncludeCasesFromOtherJurisdictions = Include all cases from other jurisdictions that you have access to, e.g. because you created them or they have a contact in your jurisdiction
6969
descContactOnlyWithReducedQuarantine = Only list contacts whose quarantine period has been reduced
70-
descContactIncludeContactsFromOtherJurisdictions = Include the contacts created by you for other jurisdictions
70+
descContactIncludeContactsFromOtherJurisdictions = Include all contacts from other jurisdictions that you have access to, e.g. because you created them or their source case is in your jurisdiction
7171
descGdpr = Reminder: All comments entered must comply with GDPR rules as described during connection.
7272

7373
# EpiData

sormas-api/src/main/resources/strings_de-CH.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ entityGathering = Soziale Versammlung
196196
entityPathogenTests = Erregertests
197197
entityPrescription = Verschreibung
198198
entityPrescriptions = Verschreibungen
199-
entityQuarantineOrder = Bescheid
199+
entityQuarantineOrder = Isolations-/Quarantänebescheid
200200
entityRegion = Kanton
201201
entitySample = Probe
202202
entitySamples = Proben
@@ -867,4 +867,4 @@ SurvnetGateway.notificationEntrySent = Eintrag wurde gesendet
867867
SurvnetGateway.notificationEntryNotSent = Eintrag konnte nicht gesendet werden
868868
SurvnetGateway.notificationErrorSending = Fehler beim Senden des Eintrags
869869

870-
warningDashboardMapTooManyMarkers = There are %d places to display and it is possible that your browser will freeze while displaying them.
870+
warningDashboardMapTooManyMarkers = There are %d places to display and it is possible that your browser will freeze while displaying them.

sormas-api/src/main/resources/strings_de-DE.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ entityGathering = Event/Ereignis
196196
entityPathogenTests = Erregertests
197197
entityPrescription = Verschreibung
198198
entityPrescriptions = Verschreibungen
199-
entityQuarantineOrder = Bescheid
199+
entityQuarantineOrder = Isolations-/Quarantänebescheid
200200
entityRegion = Bundesland
201201
entitySample = Probe
202202
entitySamples = Proben
@@ -867,4 +867,4 @@ SurvnetGateway.notificationEntrySent = Eintrag wurde gesendet
867867
SurvnetGateway.notificationEntryNotSent = Eintrag konnte nicht gesendet werden
868868
SurvnetGateway.notificationErrorSending = Fehler beim Senden des Eintrags
869869

870-
warningDashboardMapTooManyMarkers = Es gibt %d Orte zum Anzeigen und es ist möglich, dass Ihr Browser während der Anzeige einfriert.
870+
warningDashboardMapTooManyMarkers = Es gibt %d Orte zum Anzeigen und es ist möglich, dass Ihr Browser während der Anzeige einfriert.

sormas-app/app/src/main/java/de/symeda/sormas/app/caze/edit/CaseNewFragment.java

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,12 @@ public void onLayoutBinding(FragmentCaseNewLayoutBinding contentBinding) {
188188
contentBinding.personPresentCondition.initializeSpinner(presentConditionList);
189189

190190
contentBinding.facilityOrHome.initializeSpinner(facilityOrHomeList);
191+
contentBinding.facilityOrHome.addValueChangedListener(e -> {
192+
if (e.getValue() == TypeOfPlace.FACILITY) {
193+
contentBinding.facilityTypeGroup.setValue(FacilityTypeGroup.MEDICAL_FACILITY);
194+
contentBinding.caseDataFacilityType.setValue(FacilityType.HOSPITAL);
195+
}
196+
});
191197
contentBinding.facilityTypeGroup.initializeSpinner(facilityTypeGroupList);
192198
}
193199

@@ -204,17 +210,19 @@ public void onAfterLayoutBinding(final FragmentCaseNewLayoutBinding contentBindi
204210
contentBinding.caseDataDistrict.setRequired(false);
205211

206212
User user = ConfigProvider.getUser();
213+
214+
if (user.getPointOfEntry() == null) {
215+
contentBinding.facilityOrHome.setValue(TypeOfPlace.FACILITY);
216+
}
217+
207218
if (user.hasUserRole(UserRole.HOSPITAL_INFORMANT) && user.getHealthFacility() != null) {
208219
// Hospital Informants are not allowed to create cases in another health facility
209220
contentBinding.caseDataCommunity.setEnabled(false);
210221
contentBinding.caseDataCommunity.setRequired(false);
211222
contentBinding.caseDataHealthFacility.setEnabled(false);
212223
contentBinding.caseDataHealthFacility.setRequired(false);
213-
contentBinding.facilityOrHome.setValue(TypeOfPlace.FACILITY);
214224
contentBinding.facilityOrHome.setEnabled(false);
215-
contentBinding.facilityTypeGroup.setValue(FacilityTypeGroup.MEDICAL_FACILITY);
216225
contentBinding.facilityTypeGroup.setEnabled(false);
217-
contentBinding.caseDataFacilityType.setValue(FacilityType.HOSPITAL);
218226
contentBinding.caseDataFacilityType.setEnabled(false);
219227
}
220228

sormas-app/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<artifactId>sormas-base</artifactId>
55
<groupId>de.symeda.sormas</groupId>
6-
<version>1.51.1</version>
6+
<version>1.52.0-SNAPSHOT</version>
77
<relativePath>../sormas-base</relativePath>
88
</parent>
99
<modelVersion>4.0.0</modelVersion>

0 commit comments

Comments
 (0)