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

@XmlType(name = "DosageProblem")
@XmlEnum
@XmlRootElement(name = "DosageProblem")
public enum DosageProblem {
	@XmlEnumValue("DOSE")
	DOSE("DOSE"),
	@XmlEnumValue("DOSECOND")
	DOSECOND("DOSECOND"),
	@XmlEnumValue("DOSEDUR")
	DOSEDUR("DOSEDUR"),
	@XmlEnumValue("DOSEH")
	DOSEH("DOSEH"),
	@XmlEnumValue("DOSEIVL")
	DOSEIVL("DOSEIVL"),
	@XmlEnumValue("DOSEL")
	DOSEL("DOSEL"),
	@XmlEnumValue("MDOSE")
	MDOSE("MDOSE");
	
	private final String value;

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

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