com.xinapse.dicom
Enum PatientPosition

java.lang.Object
  extended by java.lang.Enum<PatientPosition>
      extended by com.xinapse.dicom.PatientPosition
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PatientPosition>

public enum PatientPosition
extends java.lang.Enum<PatientPosition>

An enumeration of the possible positions in which a patient may be lying in the scanning equipment (e.g, head-first, supine).


Enum Constant Summary
FFDL
          PatientPosition indicating feet-first, decubitus left.
FFDR
          PatientPosition indicating feet-first, decubitus right.
FFP
          PatientPosition indicating feet-first, prone.
FFS
          PatientPosition indicating feet-first, supine.
HFDL
          PatientPosition indicating head-first, decubitus left.
HFDR
          PatientPosition indicating head-first, decubitus right.
HFP
          PatientPosition indicating head-first, prone.
HFS
          PatientPosition indicating head-first, supine.
UNKNOWN
          PatientPosition indicating that the patient position is unknown.
 
Method Summary
static PatientPosition getInstance(java.lang.String pp)
          Returns a PatientPosition Object corresponding to the supplied string.
static PatientPosition valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PatientPosition[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNKNOWN

public static final PatientPosition UNKNOWN
PatientPosition indicating that the patient position is unknown.


HFP

public static final PatientPosition HFP
PatientPosition indicating head-first, prone.


HFS

public static final PatientPosition HFS
PatientPosition indicating head-first, supine.


HFDR

public static final PatientPosition HFDR
PatientPosition indicating head-first, decubitus right.


HFDL

public static final PatientPosition HFDL
PatientPosition indicating head-first, decubitus left.


FFP

public static final PatientPosition FFP
PatientPosition indicating feet-first, prone.


FFS

public static final PatientPosition FFS
PatientPosition indicating feet-first, supine.


FFDR

public static final PatientPosition FFDR
PatientPosition indicating feet-first, decubitus right.


FFDL

public static final PatientPosition FFDL
PatientPosition indicating feet-first, decubitus left.

Method Detail

values

public static PatientPosition[] 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 (PatientPosition c : PatientPosition.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PatientPosition valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getInstance

public static PatientPosition getInstance(java.lang.String pp)
Returns a PatientPosition Object corresponding to the supplied string.

Parameters:
pp - a String which is one of "HFS", "HFP", "HFDR", "HFDL", "FFS", "FFP", "FFDR" or "FFDL". The case of pp is ignored. If pp does not match any of these, then PatientPosition.UNKNOWN is returned.


Copyright 2006-2011 Xinapse Systems Limited. All Rights Reserved.