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 AllergyType Enum manages the allowable allergy types used by the FHIR resource. TODO Remove if not needed.
*
* @author Ian Meinert
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum AllergyType {
/**
* The type allergy with value 1.
*/
ALLERGY("ALLERGY", 1),
/**
* The type intolerance with value 0.
*/
INTOLERANCE("INTOLERANCE", 0);
private String type;
private int level;
/**
* The overloaded constructor requiring a type and level parameter.
*
* @param type the String representation of the type
* @param level the int value of the level of type
*/
AllergyType(String type, int level) {
this.level = level;
this.type = type;
}
/**
* The getter for level.
*
* @return level
*/
public int getValue() {
return level;
}
/**
* The getter for type.
*
* @return type
*/
public String getKey() {
return type;
}
}