Enum Class PatientPosition

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

public enum PatientPosition extends 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 Details

    • 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.
  • Field Details

    • PATIENT_POSITION_PREFERENCE_NAME

      public static final String 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

      public static PatientPosition[] 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

      public static PatientPosition valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getInstance

      public static PatientPosition getInstance(String pp)
      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 of pp is ignored. If pp does not match any of these, then PatientPosition.UNKNOWN is returned.
      Returns:
      a PatientPosition corresponding to the supplied string.
    • getPreferredPatientPosition

      public static PatientPosition getPreferredPatientPosition()
      Returns the user's preferred PatientPosition set in the user Preferences.
      Returns:
      the user's preferred PatientPosition.
    • savePreferredPatientPosition

      public static void savePreferredPatientPosition(PatientPosition patientPosition)
      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.