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

@XmlType(name = "PowerOfAttorney")
@XmlEnum
@XmlRootElement(name = "PowerOfAttorney")
public enum PowerOfAttorney {
	@XmlEnumValue("DPOWATT")
	DPOWATT("DPOWATT"),
	@XmlEnumValue("HPOWATT")
	HPOWATT("HPOWATT"),
	@XmlEnumValue("POWATT")
	POWATT("POWATT"),
	@XmlEnumValue("SPOWATT")
	SPOWATT("SPOWATT");
	
	private final String value;

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

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