org.immregistries.codebase.client.reference.CvxSpecialValues Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codebase-client Show documentation
Show all versions of codebase-client Show documentation
Reads the Codebase XML and provides helper classes to use it.
The newest version!
package org.immregistries.codebase.client.reference;
import java.util.HashMap;
import java.util.Map;
public enum CvxSpecialValues {
NO_VACCINE_ADMINISTERED("998"),
UNKNOWN("999"),
NORMAL("any other. This is the default");
private static final Map codeMap = new HashMap();
static {
for (CvxSpecialValues t : CvxSpecialValues.values()) {
codeMap.put(t.value, t);
}
}
private String value;
private CvxSpecialValues(String valueIn) {
this.value = valueIn;
}
public static CvxSpecialValues getBy(String value) {
CvxSpecialValues val = codeMap.get(value);
if (val != null) {
return val;
}
return NORMAL;
}
public String getCvxCode() {
return value;
}
}