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

@XmlType(name = "PatchDrugForm")
@XmlEnum
@XmlRootElement(name = "PatchDrugForm")
public enum PatchDrugForm {
	@XmlEnumValue("PATCH")
	PATCH("PATCH"),
	@XmlEnumValue("TPATCH")
	TPATCH("TPATCH"),
	@XmlEnumValue("TPATH16")
	TPATH16("TPATH16"),
	@XmlEnumValue("TPATH24")
	TPATH24("TPATH24"),
	@XmlEnumValue("TPATH2WK")
	TPATH2WK("TPATH2WK"),
	@XmlEnumValue("TPATH72")
	TPATH72("TPATH72"),
	@XmlEnumValue("TPATHWK")
	TPATHWK("TPATHWK");
	
	private final String value;

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

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