Enum PatientType

  • All Implemented Interfaces:
    Serializable, Comparable<PatientType>

    public enum PatientType
    extends Enum<PatientType>

    Java class for PatientType.

    The following schema fragment specifies the expected content contained within this class.

     <simpleType name="PatientType">
       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
         <enumeration value="Unspec"/>
         <enumeration value="Ad"/>
         <enumeration value="Ado"/>
         <enumeration value="Ped"/>
         <enumeration value="Inf"/>
         <enumeration value="Neo"/>
         <enumeration value="Oth"/>
       </restriction>
     </simpleType>
     
    • Enum Constant Detail

      • UNSPEC

        public static final PatientType UNSPEC
        Unspec = Unspecified. Unspecified type.
      • AD

        public static final PatientType AD
        Ad = Adult. Indicates an adult patient.
      • ADO

        public static final PatientType ADO
        Ado = Adolescent. Indicates an adolescent patient with approximate age range of 12 years to 21 years.
      • PED

        public static final PatientType PED
        Ped = Pediatric. Indicates a pediatric patient with approximate age range of 2 years to 12 years.
      • INF

        public static final PatientType INF
        Inf = Infant. Indicates an infant patient with approximate age range of 1 month to 2 years.
      • NEO

        public static final PatientType NEO
        Neo = Neonatal. Indicates a neonatal patient with approximate age range of birth to 1 month.
      • OTH

        public static final PatientType OTH
        Oth = Other. The patient type is designated by some other means.
    • Method Detail

      • values

        public static PatientType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (PatientType c : PatientType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PatientType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • value

        public String value()