package be.fgov.ehealth.standards.kmehr.mycarenet.id.v1;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;

@XmlType(
   name = "ID-PATIENTschemes"
)
@XmlEnum
public enum IDPATIENTschemes {
   @XmlEnumValue("ID-PATIENT")
   ID_PATIENT("ID-PATIENT"),
   INSS("INSS"),
   @XmlEnumValue("EID-CARDNO")
   EID_CARDNO("EID-CARDNO"),
   @XmlEnumValue("SIS-CARDNO")
   SIS_CARDNO("SIS-CARDNO"),
   @XmlEnumValue("ISI-CARDNO")
   ISI_CARDNO("ISI-CARDNO"),
   LOCAL("LOCAL");

   private final String value;

   private IDPATIENTschemes(String v) {
      this.value = v;
   }

   public String value() {
      return this.value;
   }

   public static IDPATIENTschemes fromValue(String v) {
      IDPATIENTschemes[] arr$ = values();
      int len$ = arr$.length;

      for(int i$ = 0; i$ < len$; ++i$) {
         IDPATIENTschemes c = arr$[i$];
         if (c.value.equals(v)) {
            return c;
         }
      }

      throw new IllegalArgumentException(v);
   }
}
