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

@XmlType(name = "HL7AccommodationCode")
@XmlEnum
@XmlRootElement(name = "HL7AccommodationCode")
public enum HL7AccommodationCode {
	@XmlEnumValue("I")
	I("I"),
	@XmlEnumValue("P")
	P("P"),
	@XmlEnumValue("S")
	S("S"),
	@XmlEnumValue("SP")
	SP("SP"),
	@XmlEnumValue("W")
	W("W");
	
	private final String value;

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

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