-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Newatia
authored and
Newatia
committed
Jul 7, 2022
1 parent
f6447bd
commit 052d83e
Showing
2 changed files
with
48 additions
and
4 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
...utoconfigure/src/main/java/gov/hhs/gsrs/adverseevents/AdverseEventFieldNameDecorator.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,36 @@ | ||
package gov.hhs.gsrs.adverseevents; | ||
|
||
import ix.core.FieldNameDecorator; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
public class AdverseEventFieldNameDecorator implements FieldNameDecorator { | ||
|
||
private static final Map<String, String> displayNames; | ||
|
||
static { | ||
Map<String, String> m = new HashMap<>(); | ||
|
||
m.put("root_name", "Ingredient Name"); | ||
m.put("root_adverseEvent", "Adverse Event"); | ||
m.put("root_routeOfAdmin", "Route of Administration"); | ||
m.put("root_ptTermMeddra", "PT Term Meddra"); | ||
m.put("root_dmeReactions", "DME Reactions"); | ||
m.put("root_ptTerm", "PT Term"); | ||
m.put("root_species", "Species"); | ||
m.put("root_primSoc", "Prim SOC"); | ||
|
||
displayNames = m; | ||
} | ||
|
||
@Override | ||
public String getDisplayName(String field) { | ||
String fdisp = displayNames.get(field); | ||
if (fdisp == null) { | ||
return field; | ||
} | ||
return fdisp; | ||
} | ||
|
||
} |
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