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 - PR1 (SI)
  • PR1-2: Procedure Coding Method (IS) optional
  • PR1-3: Procedure Code (CE)
  • PR1-4: Procedure Description (ST) optional
  • PR1-5: Procedure Date/Time (TS)
  • PR1-6: Procedure Functional Type (IS) optional
  • 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 (ID) optional
  • PR1-15: Associated Diagnosis Code (CE) optional
  • PR1-16: Procedure Code Modifier (CE) optional repeating
  • PR1-17: Procedure DRG Type (IS) optional
  • PR1-18: Tissue Type Code (CE) optional repeating
  • PR1-19: Procedure Identifier (EI) optional
  • PR1-20: Procedure Action Code (ID) optional
See Also:
  • Constructor Details

  • Method Details

    • getSetIDPR1

      public SI getSetIDPR1()
      Returns PR1-1: "Set ID - PR1" - creates it if necessary
    • getPr11_SetIDPR1

      public SI getPr11_SetIDPR1()
      Returns PR1-1: "Set ID - PR1" - 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
    • getProcedureFunctionalType

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

      Returns PR1-6: "Procedure Functional 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
    • getProcedureCodeModifier

      Returns all repetitions of Procedure Code Modifier (PR1-16).
    • getPr116_ProcedureCodeModifier

      Returns all repetitions of Procedure Code Modifier (PR1-16).
    • getProcedureCodeModifierReps

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

      public CE getProcedureCodeModifier(int rep)
      Returns a specific repetition of PR1-16: "Procedure Code Modifier" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPr116_ProcedureCodeModifier

      Returns a specific repetition of PR1-16: "Procedure Code Modifier" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPr116_ProcedureCodeModifierReps

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

      public CE insertProcedureCodeModifier(int rep) throws HL7Exception
      Inserts a repetition of PR1-16: "Procedure Code Modifier" 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)
    • insertPr116_ProcedureCodeModifier

      Inserts a repetition of PR1-16: "Procedure Code Modifier" 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)
    • removeProcedureCodeModifier

      public CE removeProcedureCodeModifier(int rep) throws HL7Exception
      Removes a repetition of PR1-16: "Procedure Code Modifier" 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)
    • removePr116_ProcedureCodeModifier

      Removes a repetition of PR1-16: "Procedure Code Modifier" 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)
    • getProcedureDRGType

      Returns PR1-17: "Procedure DRG Type" - creates it if necessary
    • getPr117_ProcedureDRGType

      Returns PR1-17: "Procedure DRG Type" - creates it if necessary
    • getTissueTypeCode

      public CE[] getTissueTypeCode()
      Returns all repetitions of Tissue Type Code (PR1-18).
    • getPr118_TissueTypeCode

      Returns all repetitions of Tissue Type Code (PR1-18).
    • getTissueTypeCodeReps

      public int getTissueTypeCodeReps()
      Returns a count of the current number of repetitions of Tissue Type Code (PR1-18). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getTissueTypeCode

      public CE getTissueTypeCode(int rep)
      Returns a specific repetition of PR1-18: "Tissue Type Code" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPr118_TissueTypeCode

      public CE getPr118_TissueTypeCode(int rep)
      Returns a specific repetition of PR1-18: "Tissue Type Code" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPr118_TissueTypeCodeReps

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

      public CE insertTissueTypeCode(int rep) throws HL7Exception
      Inserts a repetition of PR1-18: "Tissue Type Code" 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)
    • insertPr118_TissueTypeCode

      public CE insertPr118_TissueTypeCode(int rep) throws HL7Exception
      Inserts a repetition of PR1-18: "Tissue Type Code" 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)
    • removeTissueTypeCode

      public CE removeTissueTypeCode(int rep) throws HL7Exception
      Removes a repetition of PR1-18: "Tissue Type Code" 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)
    • removePr118_TissueTypeCode

      public CE removePr118_TissueTypeCode(int rep) throws HL7Exception
      Removes a repetition of PR1-18: "Tissue Type Code" 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)
    • getProcedureIdentifier

      Returns PR1-19: "Procedure Identifier" - creates it if necessary
    • getPr119_ProcedureIdentifier

      Returns PR1-19: "Procedure Identifier" - creates it if necessary
    • getProcedureActionCode

      Returns PR1-20: "Procedure Action Code" - creates it if necessary
    • getPr120_ProcedureActionCode

      Returns PR1-20: "Procedure Action Code" - creates it if necessary
    • createNewTypeWithoutReflection

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