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 (ID) repeating
  • PR1-3: Procedure code (ID) repeating
  • PR1-4: Procedure description (ST) optional repeating
  • PR1-5: Procedure date / time (TS)
  • PR1-6: Procedure type (ID)
  • PR1-7: Procedure minutes (NM) optional
  • PR1-8: Anesthesiologist (CN) optional
  • PR1-9: Anesthesia code (ID) optional
  • PR1-10: Anesthesia minutes (NM) optional
  • PR1-11: Surgeon (CN) optional
  • PR1-12: Procedure Practitioner (CM_PRACTITIONER) optional repeating
  • PR1-13: Consent code (ID) optional
  • PR1-14: Procedure priority (NM) 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 all repetitions of Procedure coding method (PR1-2).
    • getPr12_ProcedureCodingMethod

      Returns all repetitions of Procedure coding method (PR1-2).
    • getProcedureCodingMethodReps

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

      public ID getProcedureCodingMethod(int rep)
      Returns a specific repetition of PR1-2: "Procedure coding method" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPr12_ProcedureCodingMethod

      Returns a specific repetition of PR1-2: "Procedure coding method" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPr12_ProcedureCodingMethodReps

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

      public ID insertProcedureCodingMethod(int rep) throws HL7Exception
      Inserts a repetition of PR1-2: "Procedure coding method" 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)
    • insertPr12_ProcedureCodingMethod

      Inserts a repetition of PR1-2: "Procedure coding method" 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)
    • removeProcedureCodingMethod

      public ID removeProcedureCodingMethod(int rep) throws HL7Exception
      Removes a repetition of PR1-2: "Procedure coding method" 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)
    • removePr12_ProcedureCodingMethod

      Removes a repetition of PR1-2: "Procedure coding method" 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)
    • getProcedureCode

      public ID[] getProcedureCode()
      Returns all repetitions of Procedure code (PR1-3).
    • getPr13_ProcedureCode

      Returns all repetitions of Procedure code (PR1-3).
    • getProcedureCodeReps

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

      public ID getProcedureCode(int rep)
      Returns a specific repetition of PR1-3: "Procedure code" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPr13_ProcedureCode

      public ID getPr13_ProcedureCode(int rep)
      Returns a specific repetition of PR1-3: "Procedure code" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPr13_ProcedureCodeReps

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

      public ID insertProcedureCode(int rep) throws HL7Exception
      Inserts a repetition of PR1-3: "Procedure 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)
    • insertPr13_ProcedureCode

      public ID insertPr13_ProcedureCode(int rep) throws HL7Exception
      Inserts a repetition of PR1-3: "Procedure 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)
    • removeProcedureCode

      public ID removeProcedureCode(int rep) throws HL7Exception
      Removes a repetition of PR1-3: "Procedure 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)
    • removePr13_ProcedureCode

      public ID removePr13_ProcedureCode(int rep) throws HL7Exception
      Removes a repetition of PR1-3: "Procedure 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)
    • getProcedureDescription

      Returns all repetitions of Procedure description (PR1-4).
    • getPr14_ProcedureDescription

      Returns all repetitions of Procedure description (PR1-4).
    • getProcedureDescriptionReps

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

      public ST getProcedureDescription(int rep)
      Returns a specific repetition of PR1-4: "Procedure description" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPr14_ProcedureDescription

      public ST getPr14_ProcedureDescription(int rep)
      Returns a specific repetition of PR1-4: "Procedure description" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPr14_ProcedureDescriptionReps

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

      public ST insertProcedureDescription(int rep) throws HL7Exception
      Inserts a repetition of PR1-4: "Procedure description" 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)
    • insertPr14_ProcedureDescription

      Inserts a repetition of PR1-4: "Procedure description" 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)
    • removeProcedureDescription

      public ST removeProcedureDescription(int rep) throws HL7Exception
      Removes a repetition of PR1-4: "Procedure description" 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)
    • removePr14_ProcedureDescription

      Removes a repetition of PR1-4: "Procedure description" 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)
    • 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 PR1-8: "Anesthesiologist" - creates it if necessary
    • getPr18_Anesthesiologist

      Returns PR1-8: "Anesthesiologist" - creates it if necessary
    • 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 CN getSurgeon()
      Returns PR1-11: "Surgeon" - creates it if necessary
    • getPr111_Surgeon

      public CN getPr111_Surgeon()
      Returns PR1-11: "Surgeon" - creates it if necessary
    • 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

      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

      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

      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 ID 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
    • createNewTypeWithoutReflection

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