Class SCH

All Implemented Interfaces:
Segment, Structure, Visitable, Serializable

public class SCH extends AbstractSegment

Represents an HL7 SCH message segment (Schedule Activity Information). This segment has the following fields:

  • SCH-1: Placer Appointment ID (EI)
  • SCH-2: Filler Appointment ID (EI) optional
  • SCH-3: Occurrence Number (NM) optional
  • SCH-4: Placer Group Number (EI) optional
  • SCH-5: Schedule ID (CE) optional
  • SCH-6: Event Reason (CE)
  • SCH-7: Appointment Reason (CE) optional
  • SCH-8: Appointment Type (CE) optional
  • SCH-9: Appointment Duration (NM) optional
  • SCH-10: Appointment Duration Units (CE) optional
  • SCH-11: Appointment Timing Quantity (TQ) repeating
  • SCH-12: Placer Contact Person (XCN) optional
  • SCH-13: Placer Contact Phone Number (XTN) optional
  • SCH-14: Placer Contact Address (XAD) optional
  • SCH-15: Placer Contact Location (PL) optional
  • SCH-16: Filler Contact Person (XCN)
  • SCH-17: Filler Contact Phone Number (XTN) optional
  • SCH-18: Filler Contact Address (XAD) optional
  • SCH-19: Filler Contact Location (PL) optional
  • SCH-20: Entered By Person (XCN)
  • SCH-21: Entered By Phone Number (XTN) optional repeating
  • SCH-22: Entered By Location (PL) optional
  • SCH-23: Parent Placer Appointment ID (EI) optional
  • SCH-24: Parent Filler Appointment ID (EI) optional
  • SCH-25: Filler Status Code (CE) optional
See Also:
  • Constructor Details

  • Method Details

    • getPlacerAppointmentID

      Returns SCH-1: "Placer Appointment ID" - creates it if necessary
    • getSch1_PlacerAppointmentID

      Returns SCH-1: "Placer Appointment ID" - creates it if necessary
    • getFillerAppointmentID

      Returns SCH-2: "Filler Appointment ID" - creates it if necessary
    • getSch2_FillerAppointmentID

      Returns SCH-2: "Filler Appointment ID" - creates it if necessary
    • getOccurrenceNumber

      Returns SCH-3: "Occurrence Number" - creates it if necessary
    • getSch3_OccurrenceNumber

      Returns SCH-3: "Occurrence Number" - creates it if necessary
    • getPlacerGroupNumber

      Returns SCH-4: "Placer Group Number" - creates it if necessary
    • getSch4_PlacerGroupNumber

      Returns SCH-4: "Placer Group Number" - creates it if necessary
    • getScheduleID

      public CE getScheduleID()
      Returns SCH-5: "Schedule ID" - creates it if necessary
    • getSch5_ScheduleID

      Returns SCH-5: "Schedule ID" - creates it if necessary
    • getEventReason

      public CE getEventReason()
      Returns SCH-6: "Event Reason" - creates it if necessary
    • getSch6_EventReason

      Returns SCH-6: "Event Reason" - creates it if necessary
    • getAppointmentReason

      Returns SCH-7: "Appointment Reason" - creates it if necessary
    • getSch7_AppointmentReason

      Returns SCH-7: "Appointment Reason" - creates it if necessary
    • getAppointmentType

      Returns SCH-8: "Appointment Type" - creates it if necessary
    • getSch8_AppointmentType

      Returns SCH-8: "Appointment Type" - creates it if necessary
    • getAppointmentDuration

      Returns SCH-9: "Appointment Duration" - creates it if necessary
    • getSch9_AppointmentDuration

      Returns SCH-9: "Appointment Duration" - creates it if necessary
    • getAppointmentDurationUnits

      Returns SCH-10: "Appointment Duration Units" - creates it if necessary
    • getSch10_AppointmentDurationUnits

      Returns SCH-10: "Appointment Duration Units" - creates it if necessary
    • getAppointmentTimingQuantity

      Returns all repetitions of Appointment Timing Quantity (SCH-11).
    • getSch11_AppointmentTimingQuantity

      Returns all repetitions of Appointment Timing Quantity (SCH-11).
    • getAppointmentTimingQuantityReps

      Returns a count of the current number of repetitions of Appointment Timing Quantity (SCH-11). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getAppointmentTimingQuantity

      public TQ getAppointmentTimingQuantity(int rep)
      Returns a specific repetition of SCH-11: "Appointment Timing Quantity" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getSch11_AppointmentTimingQuantity

      Returns a specific repetition of SCH-11: "Appointment Timing Quantity" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getSch11_AppointmentTimingQuantityReps

      Returns a count of the current number of repetitions of Appointment Timing Quantity (SCH-11). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertAppointmentTimingQuantity

      Inserts a repetition of SCH-11: "Appointment Timing Quantity" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • insertSch11_AppointmentTimingQuantity

      Inserts a repetition of SCH-11: "Appointment Timing Quantity" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • removeAppointmentTimingQuantity

      Removes a repetition of SCH-11: "Appointment Timing Quantity" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • removeSch11_AppointmentTimingQuantity

      Removes a repetition of SCH-11: "Appointment Timing Quantity" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • getPlacerContactPerson

      Returns SCH-12: "Placer Contact Person" - creates it if necessary
    • getSch12_PlacerContactPerson

      Returns SCH-12: "Placer Contact Person" - creates it if necessary
    • getPlacerContactPhoneNumber

      Returns SCH-13: "Placer Contact Phone Number" - creates it if necessary
    • getSch13_PlacerContactPhoneNumber

      Returns SCH-13: "Placer Contact Phone Number" - creates it if necessary
    • getPlacerContactAddress

      Returns SCH-14: "Placer Contact Address" - creates it if necessary
    • getSch14_PlacerContactAddress

      Returns SCH-14: "Placer Contact Address" - creates it if necessary
    • getPlacerContactLocation

      Returns SCH-15: "Placer Contact Location" - creates it if necessary
    • getSch15_PlacerContactLocation

      Returns SCH-15: "Placer Contact Location" - creates it if necessary
    • getFillerContactPerson

      Returns SCH-16: "Filler Contact Person" - creates it if necessary
    • getSch16_FillerContactPerson

      Returns SCH-16: "Filler Contact Person" - creates it if necessary
    • getFillerContactPhoneNumber

      Returns SCH-17: "Filler Contact Phone Number" - creates it if necessary
    • getSch17_FillerContactPhoneNumber

      Returns SCH-17: "Filler Contact Phone Number" - creates it if necessary
    • getFillerContactAddress

      Returns SCH-18: "Filler Contact Address" - creates it if necessary
    • getSch18_FillerContactAddress

      Returns SCH-18: "Filler Contact Address" - creates it if necessary
    • getFillerContactLocation

      Returns SCH-19: "Filler Contact Location" - creates it if necessary
    • getSch19_FillerContactLocation

      Returns SCH-19: "Filler Contact Location" - creates it if necessary
    • getEnteredByPerson

      Returns SCH-20: "Entered By Person" - creates it if necessary
    • getSch20_EnteredByPerson

      Returns SCH-20: "Entered By Person" - creates it if necessary
    • getEnteredByPhoneNumber

      Returns all repetitions of Entered By Phone Number (SCH-21).
    • getSch21_EnteredByPhoneNumber

      Returns all repetitions of Entered By Phone Number (SCH-21).
    • getEnteredByPhoneNumberReps

      Returns a count of the current number of repetitions of Entered By Phone Number (SCH-21). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getEnteredByPhoneNumber

      public XTN getEnteredByPhoneNumber(int rep)
      Returns a specific repetition of SCH-21: "Entered By Phone Number" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getSch21_EnteredByPhoneNumber

      Returns a specific repetition of SCH-21: "Entered By Phone Number" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getSch21_EnteredByPhoneNumberReps

      Returns a count of the current number of repetitions of Entered By Phone Number (SCH-21). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertEnteredByPhoneNumber

      public XTN insertEnteredByPhoneNumber(int rep) throws HL7Exception
      Inserts a repetition of SCH-21: "Entered By Phone Number" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • insertSch21_EnteredByPhoneNumber

      Inserts a repetition of SCH-21: "Entered By Phone Number" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • removeEnteredByPhoneNumber

      public XTN removeEnteredByPhoneNumber(int rep) throws HL7Exception
      Removes a repetition of SCH-21: "Entered By Phone Number" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • removeSch21_EnteredByPhoneNumber

      Removes a repetition of SCH-21: "Entered By Phone Number" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • getEnteredByLocation

      Returns SCH-22: "Entered By Location" - creates it if necessary
    • getSch22_EnteredByLocation

      Returns SCH-22: "Entered By Location" - creates it if necessary
    • getParentPlacerAppointmentID

      Returns SCH-23: "Parent Placer Appointment ID" - creates it if necessary
    • getSch23_ParentPlacerAppointmentID

      Returns SCH-23: "Parent Placer Appointment ID" - creates it if necessary
    • getParentFillerAppointmentID

      Returns SCH-24: "Parent Filler Appointment ID" - creates it if necessary
    • getSch24_ParentFillerAppointmentID

      Returns SCH-24: "Parent Filler Appointment ID" - creates it if necessary
    • getFillerStatusCode

      Returns SCH-25: "Filler Status Code" - creates it if necessary
    • getSch25_FillerStatusCode

      Returns SCH-25: "Filler Status Code" - creates it if necessary
    • createNewTypeWithoutReflection

      protected Type createNewTypeWithoutReflection(int field)
      Overrides:
      createNewTypeWithoutReflection in class AbstractSegment