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

@XmlType(name = "PharmacySupplyRequestRenewalRefusalReasonCode")
@XmlEnum
@XmlRootElement(name = "PharmacySupplyRequestRenewalRefusalReasonCode")
public enum PharmacySupplyRequestRenewalRefusalReasonCode {
	@XmlEnumValue("ALREADYRX")
	ALREADYRX("ALREADYRX"),
	@XmlEnumValue("DISCONT")
	DISCONT("DISCONT"),
	@XmlEnumValue("FAMPHYS")
	FAMPHYS("FAMPHYS"),
	@XmlEnumValue("MODIFY")
	MODIFY("MODIFY"),
	@XmlEnumValue("NEEDAPMT")
	NEEDAPMT("NEEDAPMT"),
	@XmlEnumValue("NOTAVAIL")
	NOTAVAIL("NOTAVAIL"),
	@XmlEnumValue("NOTPAT")
	NOTPAT("NOTPAT"),
	@XmlEnumValue("ONHOLD")
	ONHOLD("ONHOLD"),
	@XmlEnumValue("TOOEARLY")
	TOOEARLY("TOOEARLY");
	
	private final String value;

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

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