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

@XmlType(name = "ObservationIncomeValue")
@XmlEnum
@XmlRootElement(name = "ObservationIncomeValue")
public enum ObservationIncomeValue {
	@XmlEnumValue("CHILD")
	CHILD("CHILD"),
	@XmlEnumValue("DISABL")
	DISABL("DISABL"),
	@XmlEnumValue("INCOME")
	INCOME("INCOME"),
	@XmlEnumValue("INVEST")
	INVEST("INVEST"),
	@XmlEnumValue("PAY")
	PAY("PAY"),
	@XmlEnumValue("RETIRE")
	RETIRE("RETIRE"),
	@XmlEnumValue("SPOUSAL")
	SPOUSAL("SPOUSAL"),
	@XmlEnumValue("SUPPLE")
	SUPPLE("SUPPLE"),
	@XmlEnumValue("TAX")
	TAX("TAX");
	
	private final String value;

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

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