/**
 * ActDietCode.java
 * <p>
 * File generated from the voc::ActDietCode 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 ActDietCode.
 *
 */

@XmlType(name = "ActDietCode")
@XmlEnum
@XmlRootElement(name = "ActDietCode")
public enum ActDietCode {
	@XmlEnumValue("BR")
	BR("BR"),
	@XmlEnumValue("DM")
	DM("DM"),
	@XmlEnumValue("FAST")
	FAST("FAST"),
	@XmlEnumValue("GF")
	GF("GF"),
	@XmlEnumValue("LF")
	LF("LF"),
	@XmlEnumValue("LP")
	LP("LP"),
	@XmlEnumValue("LQ")
	LQ("LQ"),
	@XmlEnumValue("LS")
	LS("LS"),
	@XmlEnumValue("N")
	N("N"),
	@XmlEnumValue("NF")
	NF("NF"),
	@XmlEnumValue("PAF")
	PAF("PAF"),
	@XmlEnumValue("PAR")
	PAR("PAR"),
	@XmlEnumValue("RD")
	RD("RD"),
	@XmlEnumValue("SCH")
	SCH("SCH"),
	@XmlEnumValue("T")
	T("T"),
	@XmlEnumValue("VLI")
	VLI("VLI");
	
	private final String value;

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

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