-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/audit-ini
- Loading branch information
Showing
4 changed files
with
86 additions
and
35 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
33 changes: 33 additions & 0 deletions
33
src/main/java/it/finanze/sanita/fse2/ms/gtw/dispatcher/enums/ConfidentialityCodeEnum.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,33 @@ | ||
package it.finanze.sanita.fse2.ms.gtw.dispatcher.enums; | ||
|
||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
/** | ||
* Accepted document types defined by the affinity domain: {@link http://www.hl7italia.it/hl7italia_D7/node/2359}. | ||
* | ||
*/ | ||
@Getter | ||
@AllArgsConstructor | ||
public enum ConfidentialityCodeEnum { | ||
|
||
NORMAL("N","Normal"), | ||
VERY_RESTRICTED("V","Very Restricted"); | ||
|
||
private final String code; | ||
|
||
private final String display; | ||
|
||
|
||
|
||
public static String getDisplayByCode(String code) { | ||
for (ConfidentialityCodeEnum el : ConfidentialityCodeEnum.values()) { | ||
if (el.getCode().equals(code)) { | ||
return el.getDisplay(); | ||
} | ||
} | ||
return ""; | ||
} | ||
|
||
} |
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