This repository has been archived by the owner on May 5, 2021. It is now read-only.
forked from SORMAS-Foundation/SORMAS-Project
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/development' into 3610_BAG-expor…
…t-rest # Conflicts: # sormas-api/src/main/java/de/symeda/sormas/api/user/UserRole.java
- Loading branch information
Showing
105 changed files
with
2,572 additions
and
716 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
sormas-api/src/main/java/de/symeda/sormas/api/caze/InfectionSetting.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/* | ||
* SORMAS® - Surveillance Outbreak Response Management & Analysis System | ||
* Copyright © 2016-2020 Helmholtz-Zentrum für Infektionsforschung GmbH (HZI) | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
package de.symeda.sormas.api.caze; | ||
|
||
import de.symeda.sormas.api.i18n.I18nProperties; | ||
|
||
public enum InfectionSetting { | ||
|
||
UNKNOWN(null), | ||
AMBULATORY(null), | ||
MEDICAL_PRACTICE(AMBULATORY), | ||
OPERATIVE_1200(AMBULATORY), | ||
HOSPITAL_1300(AMBULATORY), | ||
OTHER_OUTPATIENT_FACILITY(AMBULATORY), | ||
STATIONARY(null), | ||
HOSPITAL_2100(STATIONARY), | ||
NORMAL_WARD(HOSPITAL_2100), | ||
OPERATIVE_2111(NORMAL_WARD), | ||
NOT_OPERATIVE(NORMAL_WARD), | ||
HEMATOLOGICAL_ONCOLOGY(NORMAL_WARD), | ||
CHILDREN_WARD(HOSPITAL_2100), | ||
NEONATOLOGY(HOSPITAL_2100), | ||
INTENSIVE_CARE_UNIT(HOSPITAL_2100), | ||
OTHER_STATION(HOSPITAL_2100), | ||
NURSING_HOME(STATIONARY), | ||
REHAB_FACILITY(STATIONARY), | ||
OTHER_STATIONARY_FACILITY(STATIONARY); | ||
|
||
private final InfectionSetting parent; | ||
|
||
InfectionSetting(InfectionSetting parent) { | ||
this.parent = parent; | ||
} | ||
|
||
public InfectionSetting getParent() { | ||
return this.parent; | ||
} | ||
|
||
public String toString() { | ||
String caption = I18nProperties.getEnumCaption(this); | ||
if (this.parent != null) { | ||
caption = this.parent.toString() + " / " + caption; | ||
} | ||
|
||
return caption; | ||
} | ||
} |
Oops, something went wrong.