Summary Table
Categories |
Total Count |
PII |
0 |
URL |
0 |
DNS |
0 |
EKL |
0 |
IP |
0 |
PORT |
0 |
VsID |
0 |
CF |
0 |
AI |
0 |
VPD |
0 |
PL |
0 |
Other |
0 |
File Content
package gov.va.med.pbm.ampl.model;
import com.fasterxml.jackson.annotation.JsonFormat;
/**
* THe AllergySeverity Enum manages the allowable severities assignable to an allergy.
*
* @author Ian Meinert
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum AllergySeverity {
/**
* This status is not yet implemented in the resource.
* <p>
* The life threatening status with value 100, most severe.
*/
LIFE_THREATENING("LIFE THREATENING", 100),
/**
* The sever status with value 75.
*/
SEVERE("SEVERE", 75),
/**
* The moderate status with value 50.
*/
MODERATE("MODERATE", 50),
/**
* The mild status with value 25.
*/
MILD("MILD", 25),
/**
* The no severity found status with value 0, the least severe.
*/
NO_SEVERITY_FOUND("NO SEVERITY FOUND", 0);
private String severity;
private int level;
/**
* The overloaded constructor accepting a severity and level.
*
* @param severity the String representation of the severity
* @param level the int value of the level of severity
*/
AllergySeverity(String severity, int level) {
this.level = level;
this.severity = severity;
}
/**
* The getter for the level.
*
* @return level
*/
public int getValue() {
return level;
}
/**
* The getter for the severity.
*
* @return severity
*/
public String getKey() {
return severity;
}
}