Package com.xinapse.dicom
Enum Class PatientPosition
- All Implemented Interfaces:
Serializable
,Comparable<PatientPosition>
,Constable
An enumeration of the possible positions in which a patient may be lying in
the scanning equipment (e.g, head-first, supine).
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A javax.swing.JComboBox that is used for selecting a PatientPosition.Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionPatientPosition indicating feet-first, decubitus left.PatientPosition indicating feet-first, decubitus right.PatientPosition indicating feet-first, prone.PatientPosition indicating feet-first, supine.PatientPosition indicating head-first, decubitus left.PatientPosition indicating head-first, decubitus right.PatientPosition indicating head-first, prone.PatientPosition indicating head-first, supine. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The Preference name for the imaging patient position. -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Returns whether the user prefers always to be asked to set the PatientPosition.static PatientPosition
getInstance
(String pp) Returns a PatientPosition corresponding to the supplied string.static PatientPosition
Returns the user's preferred PatientPosition set in the user Preferences.static void
saveAlwaysAsk
(boolean alwaysAsk) Saves whether the user prefers always to be asked to set the PatientPosition.static void
savePreferredPatientPosition
(PatientPosition patientPosition) Saves the user's preferred PatientPosition to the user Preferences.static PatientPosition
Returns the enum constant of this class with the specified name.static PatientPosition[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HFP
PatientPosition indicating head-first, prone. -
HFS
PatientPosition indicating head-first, supine. -
HFDR
PatientPosition indicating head-first, decubitus right. -
HFDL
PatientPosition indicating head-first, decubitus left. -
FFP
PatientPosition indicating feet-first, prone. -
FFS
PatientPosition indicating feet-first, supine. -
FFDR
PatientPosition indicating feet-first, decubitus right. -
FFDL
PatientPosition indicating feet-first, decubitus left.
-
-
Field Details
-
PATIENT_POSITION_PREFERENCE_NAME
The Preference name for the imaging patient position. Is public because this is used in the Perfusion package to set the patient position to MR or CT.- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getInstance
Returns a PatientPosition corresponding to the supplied string.- Parameters:
pp
- a String which is one of "HFS", "HFP", "HFDR", "HFDL", "FFS", "FFP", "FFDR" or "FFDL". The case ofpp
is ignored. If pp does not match any of these, then PatientPosition.UNKNOWN is returned.- Returns:
- a PatientPosition corresponding to the supplied string.
-
getPreferredPatientPosition
Returns the user's preferred PatientPosition set in the user Preferences.- Returns:
- the user's preferred PatientPosition.
-
savePreferredPatientPosition
Saves the user's preferred PatientPosition to the user Preferences.- Parameters:
patientPosition
- the user's preferred PatientPosition.
-
getAlwaysAsk
public static boolean getAlwaysAsk()Returns whether the user prefers always to be asked to set the PatientPosition.- Returns:
- the user's preference for whether always to be asked to set the PatientPosition.
-
saveAlwaysAsk
public static void saveAlwaysAsk(boolean alwaysAsk) Saves whether the user prefers always to be asked to set the PatientPosition.- Parameters:
alwaysAsk
- the user's preference for whether always to be asked to set the PatientPosition.
-