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

@XmlType(name = "MedicationObservationType")
@XmlEnum
@XmlRootElement(name = "MedicationObservationType")
public enum MedicationObservationType {
	@XmlEnumValue("REP_HALF_LIFE")
	REPHALFLIFE("REP_HALF_LIFE"),
	@XmlEnumValue("SPLCOATING")
	SPLCOATING("SPLCOATING"),
	@XmlEnumValue("SPLCOLOR")
	SPLCOLOR("SPLCOLOR"),
	@XmlEnumValue("SPLIMAGE")
	SPLIMAGE("SPLIMAGE"),
	@XmlEnumValue("SPLIMPRINT")
	SPLIMPRINT("SPLIMPRINT"),
	@XmlEnumValue("SPLSCORING")
	SPLSCORING("SPLSCORING"),
	@XmlEnumValue("SPLSHAPE")
	SPLSHAPE("SPLSHAPE"),
	@XmlEnumValue("SPLSIZE")
	SPLSIZE("SPLSIZE"),
	@XmlEnumValue("SPLSYMBOL")
	SPLSYMBOL("SPLSYMBOL");
	
	private final String value;

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

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