org.dcm4che.srom
Class Patient.Sex

java.lang.Object
  extended by org.dcm4che.srom.Patient.Sex
Enclosing interface:
Patient

public static final class Patient.Sex
extends java.lang.Object

Inner static class that represents a enumeration of the patient sex.


Field Summary
static Patient.Sex FEMALE
          Female patient sex.
static Patient.Sex MALE
          Male patient sex.
static Patient.Sex OTHER
          Other patient sex.
 
Method Summary
 java.lang.String toString()
          Returns the text representation of patient sex.
static Patient.Sex valueOf(java.lang.String s)
          Returns the type save patient sex value of a specified String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FEMALE

public static final Patient.Sex FEMALE
Female patient sex.


MALE

public static final Patient.Sex MALE
Male patient sex.


OTHER

public static final Patient.Sex OTHER
Other patient sex. Used if sex of patient is unknown or something else that male or female.

Method Detail

toString

public java.lang.String toString()
Returns the text representation of patient sex.

Overrides:
toString in class java.lang.Object

valueOf

public static Patient.Sex valueOf(java.lang.String s)
Returns the type save patient sex value of a specified String.

Parameters:
s - the patient sex as string.
Throws:
java.lang.IllegalArgumentException - if parameter s is not "M", "F" or "O".