Class PR1

All Implemented Interfaces:
Segment, Structure, Visitable, Serializable

public class PR1 extends AbstractSegment

Represents an HL7 PR1 message segment (Procedures). This segment has the following fields:

  • PR1-1: Set ID - Procedure (SI)
  • PR1-2: Procedure Coding Method (IS)
  • PR1-3: Procedure Code (CE) optional
  • PR1-4: Procedure Description (ST) optional
  • PR1-5: Procedure Date/Time (TS) optional
  • PR1-6: Procedure Type (ID)
  • PR1-7: Procedure Minutes (NM) optional
  • PR1-8: Anesthesiologist (XCN) optional repeating
  • PR1-9: Anesthesia Code (IS) optional
  • PR1-10: Anesthesia Minutes (NM) optional
  • PR1-11: Surgeon (XCN) optional repeating
  • PR1-12: Procedure Practitioner (XCN) optional repeating
  • PR1-13: Consent Code (CE) optional
  • PR1-14: Procedure Priority (NM) optional
  • PR1-15: Associated Diagnosis Code (CE) optional
See Also:
  • Constructor Details

  • Method Details

    • getSetIDProcedure

      Returns PR1-1: "Set ID - Procedure" - creates it if necessary
    • getPr11_SetIDProcedure

      Returns PR1-1: "Set ID - Procedure" - creates it if necessary
    • getProcedureCodingMethod

      Returns PR1-2: "Procedure Coding Method" - creates it if necessary
    • getPr12_ProcedureCodingMethod

      Returns PR1-2: "Procedure Coding Method" - creates it if necessary
    • getProcedureCode

      public CE getProcedureCode()
      Returns PR1-3: "Procedure Code" - creates it if necessary
    • getPr13_ProcedureCode

      Returns PR1-3: "Procedure Code" - creates it if necessary
    • getProcedureDescription

      Returns PR1-4: "Procedure Description" - creates it if necessary
    • getPr14_ProcedureDescription

      Returns PR1-4: "Procedure Description" - creates it if necessary
    • getProcedureDateTime

      Returns PR1-5: "Procedure Date/Time" - creates it if necessary
    • getPr15_ProcedureDateTime

      Returns PR1-5: "Procedure Date/Time" - creates it if necessary
    • getProcedureType

      public ID getProcedureType()
      Returns PR1-6: "Procedure Type" - creates it if necessary
    • getPr16_ProcedureType

      Returns PR1-6: "Procedure Type" - creates it if necessary
    • getProcedureMinutes

      Returns PR1-7: "Procedure Minutes" - creates it if necessary
    • getPr17_ProcedureMinutes

      Returns PR1-7: "Procedure Minutes" - creates it if necessary
    • getAnesthesiologist

      Returns all repetitions of Anesthesiologist (PR1-8).
    • getPr18_Anesthesiologist

      Returns all repetitions of Anesthesiologist (PR1-8).
    • getAnesthesiologistReps

      Returns a count of the current number of repetitions of Anesthesiologist (PR1-8). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getAnesthesiologist

      public XCN getAnesthesiologist(int rep)
      Returns a specific repetition of PR1-8: "Anesthesiologist" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPr18_Anesthesiologist

      public XCN getPr18_Anesthesiologist(int rep)
      Returns a specific repetition of PR1-8: "Anesthesiologist" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPr18_AnesthesiologistReps

      Returns a count of the current number of repetitions of Anesthesiologist (PR1-8). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertAnesthesiologist

      public XCN insertAnesthesiologist(int rep) throws HL7Exception
      Inserts a repetition of PR1-8: "Anesthesiologist" 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)
    • insertPr18_Anesthesiologist

      public XCN insertPr18_Anesthesiologist(int rep) throws HL7Exception
      Inserts a repetition of PR1-8: "Anesthesiologist" 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)
    • removeAnesthesiologist

      public XCN removeAnesthesiologist(int rep) throws HL7Exception
      Removes a repetition of PR1-8: "Anesthesiologist" 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)
    • removePr18_Anesthesiologist

      public XCN removePr18_Anesthesiologist(int rep) throws HL7Exception
      Removes a repetition of PR1-8: "Anesthesiologist" 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)
    • getAnesthesiaCode

      Returns PR1-9: "Anesthesia Code" - creates it if necessary
    • getPr19_AnesthesiaCode

      Returns PR1-9: "Anesthesia Code" - creates it if necessary
    • getAnesthesiaMinutes

      Returns PR1-10: "Anesthesia Minutes" - creates it if necessary
    • getPr110_AnesthesiaMinutes

      Returns PR1-10: "Anesthesia Minutes" - creates it if necessary
    • getSurgeon

      public XCN[] getSurgeon()
      Returns all repetitions of Surgeon (PR1-11).
    • getPr111_Surgeon

      public XCN[] getPr111_Surgeon()
      Returns all repetitions of Surgeon (PR1-11).
    • getSurgeonReps

      public int getSurgeonReps()
      Returns a count of the current number of repetitions of Surgeon (PR1-11). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getSurgeon

      public XCN getSurgeon(int rep)
      Returns a specific repetition of PR1-11: "Surgeon" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPr111_Surgeon

      public XCN getPr111_Surgeon(int rep)
      Returns a specific repetition of PR1-11: "Surgeon" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPr111_SurgeonReps

      public int getPr111_SurgeonReps()
      Returns a count of the current number of repetitions of Surgeon (PR1-11). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertSurgeon

      public XCN insertSurgeon(int rep) throws HL7Exception
      Inserts a repetition of PR1-11: "Surgeon" 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)
    • insertPr111_Surgeon

      public XCN insertPr111_Surgeon(int rep) throws HL7Exception
      Inserts a repetition of PR1-11: "Surgeon" 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)
    • removeSurgeon

      public XCN removeSurgeon(int rep) throws HL7Exception
      Removes a repetition of PR1-11: "Surgeon" 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)
    • removePr111_Surgeon

      public XCN removePr111_Surgeon(int rep) throws HL7Exception
      Removes a repetition of PR1-11: "Surgeon" 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)
    • getProcedurePractitioner

      Returns all repetitions of Procedure Practitioner (PR1-12).
    • getPr112_ProcedurePractitioner

      Returns all repetitions of Procedure Practitioner (PR1-12).
    • getProcedurePractitionerReps

      Returns a count of the current number of repetitions of Procedure Practitioner (PR1-12). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getProcedurePractitioner

      public XCN getProcedurePractitioner(int rep)
      Returns a specific repetition of PR1-12: "Procedure Practitioner" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPr112_ProcedurePractitioner

      Returns a specific repetition of PR1-12: "Procedure Practitioner" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPr112_ProcedurePractitionerReps

      Returns a count of the current number of repetitions of Procedure Practitioner (PR1-12). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertProcedurePractitioner

      public XCN insertProcedurePractitioner(int rep) throws HL7Exception
      Inserts a repetition of PR1-12: "Procedure Practitioner" 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)
    • insertPr112_ProcedurePractitioner

      Inserts a repetition of PR1-12: "Procedure Practitioner" 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)
    • removeProcedurePractitioner

      public XCN removeProcedurePractitioner(int rep) throws HL7Exception
      Removes a repetition of PR1-12: "Procedure Practitioner" 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)
    • removePr112_ProcedurePractitioner

      Removes a repetition of PR1-12: "Procedure Practitioner" 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)
    • getConsentCode

      public CE getConsentCode()
      Returns PR1-13: "Consent Code" - creates it if necessary
    • getPr113_ConsentCode

      Returns PR1-13: "Consent Code" - creates it if necessary
    • getProcedurePriority

      Returns PR1-14: "Procedure Priority" - creates it if necessary
    • getPr114_ProcedurePriority

      Returns PR1-14: "Procedure Priority" - creates it if necessary
    • getAssociatedDiagnosisCode

      Returns PR1-15: "Associated Diagnosis Code" - creates it if necessary
    • getPr115_AssociatedDiagnosisCode

      Returns PR1-15: "Associated Diagnosis Code" - creates it if necessary
    • createNewTypeWithoutReflection

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