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

@XmlType(name = "SubstanceAdminSubstitutionReason")
@XmlEnum
@XmlRootElement(name = "SubstanceAdminSubstitutionReason")
public enum SubstanceAdminSubstitutionReason {
	@XmlEnumValue("CT")
	CT("CT"),
	@XmlEnumValue("FP")
	FP("FP"),
	@XmlEnumValue("OS")
	OS("OS"),
	@XmlEnumValue("RR")
	RR("RR");
	
	private final String value;

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

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