Class EVN

All Implemented Interfaces:
Segment, Structure, Visitable, Serializable

public class EVN extends AbstractSegment

Represents an HL7 EVN message segment (Event Type). This segment has the following fields:

  • EVN-1: Event Type Code (ID) optional
  • EVN-2: Recorded Date/Time (TS)
  • EVN-3: Date/Time Planned Event (TS) optional
  • EVN-4: Event Reason Code (IS) optional
  • EVN-5: Operator ID (XCN) optional repeating
  • EVN-6: Event Occurred (TS) optional
  • EVN-7: Event Facility (HD) optional
See Also:
  • Constructor Details

  • Method Details

    • getEventTypeCode

      public ID getEventTypeCode()
      Returns EVN-1: "Event Type Code" - creates it if necessary
    • getEvn1_EventTypeCode

      Returns EVN-1: "Event Type Code" - creates it if necessary
    • getRecordedDateTime

      Returns EVN-2: "Recorded Date/Time" - creates it if necessary
    • getEvn2_RecordedDateTime

      Returns EVN-2: "Recorded Date/Time" - creates it if necessary
    • getDateTimePlannedEvent

      Returns EVN-3: "Date/Time Planned Event" - creates it if necessary
    • getEvn3_DateTimePlannedEvent

      Returns EVN-3: "Date/Time Planned Event" - creates it if necessary
    • getEventReasonCode

      Returns EVN-4: "Event Reason Code" - creates it if necessary
    • getEvn4_EventReasonCode

      Returns EVN-4: "Event Reason Code" - creates it if necessary
    • getOperatorID

      public XCN[] getOperatorID()
      Returns all repetitions of Operator ID (EVN-5).
    • getEvn5_OperatorID

      public XCN[] getEvn5_OperatorID()
      Returns all repetitions of Operator ID (EVN-5).
    • getOperatorIDReps

      public int getOperatorIDReps()
      Returns a count of the current number of repetitions of Operator ID (EVN-5). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getOperatorID

      public XCN getOperatorID(int rep)
      Returns a specific repetition of EVN-5: "Operator ID" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getEvn5_OperatorID

      public XCN getEvn5_OperatorID(int rep)
      Returns a specific repetition of EVN-5: "Operator ID" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getEvn5_OperatorIDReps

      public int getEvn5_OperatorIDReps()
      Returns a count of the current number of repetitions of Operator ID (EVN-5). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertOperatorID

      public XCN insertOperatorID(int rep) throws HL7Exception
      Inserts a repetition of EVN-5: "Operator ID" 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)
    • insertEvn5_OperatorID

      public XCN insertEvn5_OperatorID(int rep) throws HL7Exception
      Inserts a repetition of EVN-5: "Operator ID" 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)
    • removeOperatorID

      public XCN removeOperatorID(int rep) throws HL7Exception
      Removes a repetition of EVN-5: "Operator ID" 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)
    • removeEvn5_OperatorID

      public XCN removeEvn5_OperatorID(int rep) throws HL7Exception
      Removes a repetition of EVN-5: "Operator ID" 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)
    • getEventOccurred

      public TS getEventOccurred()
      Returns EVN-6: "Event Occurred" - creates it if necessary
    • getEvn6_EventOccurred

      Returns EVN-6: "Event Occurred" - creates it if necessary
    • getEventFacility

      public HD getEventFacility()
      Returns EVN-7: "Event Facility" - creates it if necessary
    • getEvn7_EventFacility

      Returns EVN-7: "Event Facility" - creates it if necessary
    • createNewTypeWithoutReflection

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