/**
 * PatientImportance.java
 * <p>
 * File generated from the voc::PatientImportance uml Enumeration
 * Generated by IHE - europe, gazelle team
 */
package net.ihe.gazelle.hl7v3.voc;

import jakarta.xml.bind.annotation.XmlEnum;
import jakarta.xml.bind.annotation.XmlEnumValue;
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.xml.bind.annotation.XmlType;
/**
 * Description of the enumeration PatientImportance.
 *
 */

@XmlType(name = "PatientImportance")
@XmlEnum
@XmlRootElement(name = "PatientImportance")
public enum PatientImportance {
	@XmlEnumValue("BM")
	BM("BM"),
	@XmlEnumValue("DFM")
	DFM("DFM"),
	@XmlEnumValue("DR")
	DR("DR"),
	@XmlEnumValue("FD")
	FD("FD"),
	@XmlEnumValue("FOR")
	FOR("FOR"),
	@XmlEnumValue("GOVT")
	GOVT("GOVT"),
	@XmlEnumValue("SFM")
	SFM("SFM"),
	@XmlEnumValue("STF")
	STF("STF"),
	@XmlEnumValue("VIP")
	VIP("VIP");
	
	private final String value;

    PatientImportance(String v) {
        value = v;
    }
    
     public String value() {
        return value;
    }

    public static PatientImportance fromValue(String v) {
        for (PatientImportance c: PatientImportance.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }
	
}