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

@XmlType(name = "RectalRoute")
@XmlEnum
@XmlRootElement(name = "RectalRoute")
public enum RectalRoute {
	@XmlEnumValue("ENEMA")
	ENEMA("ENEMA"),
	@XmlEnumValue("PR")
	PR("PR"),
	@XmlEnumValue("RECINSTL")
	RECINSTL("RECINSTL"),
	@XmlEnumValue("RECIRR")
	RECIRR("RECIRR"),
	@XmlEnumValue("RECTAL")
	RECTAL("RECTAL"),
	@XmlEnumValue("RECTINSTL")
	RECTINSTL("RECTINSTL"),
	@XmlEnumValue("RETENEMA")
	RETENEMA("RETENEMA");
	
	private final String value;

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

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