Enum GenderIdentity
- java.lang.Object
-
- java.lang.Enum<GenderIdentity>
-
- org.hl7.fhir.r4.model.codesystems.GenderIdentity
-
- All Implemented Interfaces:
Serializable,Comparable<GenderIdentity>
public enum GenderIdentity extends Enum<GenderIdentity>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FEMALEthe patient identifies as femaleMALEthe patient identifies as maleNONBINARYthe patient identifies with neither/both female and maleNONDISCLOSEthe patient does not wish to disclose his gender identityNULLadded to help the parsersOTHERother gender identityTRANSGENDERFEMALEthe patient identifies as transgender male-to-femaleTRANSGENDERMALEthe patient identifies as transgender female-to-male
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GenderIdentityfromCode(String codeString)StringgetDefinition()StringgetDisplay()StringgetSystem()StringtoCode()static GenderIdentityvalueOf(String name)Returns the enum constant of this type with the specified name.static GenderIdentity[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TRANSGENDERFEMALE
public static final GenderIdentity TRANSGENDERFEMALE
the patient identifies as transgender male-to-female
-
TRANSGENDERMALE
public static final GenderIdentity TRANSGENDERMALE
the patient identifies as transgender female-to-male
-
NONBINARY
public static final GenderIdentity NONBINARY
the patient identifies with neither/both female and male
-
MALE
public static final GenderIdentity MALE
the patient identifies as male
-
FEMALE
public static final GenderIdentity FEMALE
the patient identifies as female
-
OTHER
public static final GenderIdentity OTHER
other gender identity
-
NONDISCLOSE
public static final GenderIdentity NONDISCLOSE
the patient does not wish to disclose his gender identity
-
NULL
public static final GenderIdentity NULL
added to help the parsers
-
-
Method Detail
-
values
public static GenderIdentity[] 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 (GenderIdentity c : GenderIdentity.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GenderIdentity 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 nameNullPointerException- if the argument is null
-
fromCode
public static GenderIdentity fromCode(String codeString) throws org.hl7.fhir.exceptions.FHIRException
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getDefinition
public String getDefinition()
-
getDisplay
public String getDisplay()
-
-