Class PCR

All Implemented Interfaces:
Segment, Structure, Visitable, Serializable

public class PCR extends AbstractSegment

Represents an HL7 PCR message segment (Possible Causal Relationship). This segment has the following fields:

  • PCR-1: Implicated Product (CE)
  • PCR-2: Generic Product (IS) optional
  • PCR-3: Product Class (CE) optional
  • PCR-4: Total Duration Of Therapy (CQ) optional
  • PCR-5: Product Manufacture Date (TS) optional
  • PCR-6: Product Expiration Date (TS) optional
  • PCR-7: Product Implantation Date (TS) optional
  • PCR-8: Product Explantation Date (TS) optional
  • PCR-9: Single Use Device (IS) optional
  • PCR-10: Indication For Product Use (CE) optional
  • PCR-11: Product Problem (IS) optional
  • PCR-12: Product Serial/Lot Number (ST) optional repeating
  • PCR-13: Product Available For Inspection (IS) optional
  • PCR-14: Product Evaluation Performed (CE) optional
  • PCR-15: Product Evaluation Status (CE) optional
  • PCR-16: Product Evaluation Results (CE) optional
  • PCR-17: Evaluated Product Source (ID) optional
  • PCR-18: Date Product Returned To Manufacturer (TS) optional
  • PCR-19: Device Operator Qualifications (ID) optional
  • PCR-20: Relatedness Assessment (ID) optional
  • PCR-21: Action Taken In Response To The Event (ID) optional repeating
  • PCR-22: Event Causality Observations (ID) optional repeating
  • PCR-23: Indirect Exposure Mechanism (ID) optional repeating
See Also:
  • Constructor Details

  • Method Details

    • getImplicatedProduct

      Returns PCR-1: "Implicated Product" - creates it if necessary
    • getPcr1_ImplicatedProduct

      Returns PCR-1: "Implicated Product" - creates it if necessary
    • getGenericProduct

      Returns PCR-2: "Generic Product" - creates it if necessary
    • getPcr2_GenericProduct

      Returns PCR-2: "Generic Product" - creates it if necessary
    • getProductClass

      public CE getProductClass()
      Returns PCR-3: "Product Class" - creates it if necessary
    • getPcr3_ProductClass

      Returns PCR-3: "Product Class" - creates it if necessary
    • getTotalDurationOfTherapy

      Returns PCR-4: "Total Duration Of Therapy" - creates it if necessary
    • getPcr4_TotalDurationOfTherapy

      Returns PCR-4: "Total Duration Of Therapy" - creates it if necessary
    • getProductManufactureDate

      Returns PCR-5: "Product Manufacture Date" - creates it if necessary
    • getPcr5_ProductManufactureDate

      Returns PCR-5: "Product Manufacture Date" - creates it if necessary
    • getProductExpirationDate

      Returns PCR-6: "Product Expiration Date" - creates it if necessary
    • getPcr6_ProductExpirationDate

      Returns PCR-6: "Product Expiration Date" - creates it if necessary
    • getProductImplantationDate

      Returns PCR-7: "Product Implantation Date" - creates it if necessary
    • getPcr7_ProductImplantationDate

      Returns PCR-7: "Product Implantation Date" - creates it if necessary
    • getProductExplantationDate

      Returns PCR-8: "Product Explantation Date" - creates it if necessary
    • getPcr8_ProductExplantationDate

      Returns PCR-8: "Product Explantation Date" - creates it if necessary
    • getSingleUseDevice

      Returns PCR-9: "Single Use Device" - creates it if necessary
    • getPcr9_SingleUseDevice

      Returns PCR-9: "Single Use Device" - creates it if necessary
    • getIndicationForProductUse

      Returns PCR-10: "Indication For Product Use" - creates it if necessary
    • getPcr10_IndicationForProductUse

      Returns PCR-10: "Indication For Product Use" - creates it if necessary
    • getProductProblem

      Returns PCR-11: "Product Problem" - creates it if necessary
    • getPcr11_ProductProblem

      Returns PCR-11: "Product Problem" - creates it if necessary
    • getProductSerialLotNumber

      Returns all repetitions of Product Serial/Lot Number (PCR-12).
    • getPcr12_ProductSerialLotNumber

      Returns all repetitions of Product Serial/Lot Number (PCR-12).
    • getProductSerialLotNumberReps

      Returns a count of the current number of repetitions of Product Serial/Lot Number (PCR-12). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getProductSerialLotNumber

      public ST getProductSerialLotNumber(int rep)
      Returns a specific repetition of PCR-12: "Product Serial/Lot Number" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPcr12_ProductSerialLotNumber

      Returns a specific repetition of PCR-12: "Product Serial/Lot Number" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPcr12_ProductSerialLotNumberReps

      Returns a count of the current number of repetitions of Product Serial/Lot Number (PCR-12). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertProductSerialLotNumber

      public ST insertProductSerialLotNumber(int rep) throws HL7Exception
      Inserts a repetition of PCR-12: "Product Serial/Lot 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)
    • insertPcr12_ProductSerialLotNumber

      Inserts a repetition of PCR-12: "Product Serial/Lot 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)
    • removeProductSerialLotNumber

      public ST removeProductSerialLotNumber(int rep) throws HL7Exception
      Removes a repetition of PCR-12: "Product Serial/Lot 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)
    • removePcr12_ProductSerialLotNumber

      Removes a repetition of PCR-12: "Product Serial/Lot 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)
    • getProductAvailableForInspection

      Returns PCR-13: "Product Available For Inspection" - creates it if necessary
    • getPcr13_ProductAvailableForInspection

      Returns PCR-13: "Product Available For Inspection" - creates it if necessary
    • getProductEvaluationPerformed

      Returns PCR-14: "Product Evaluation Performed" - creates it if necessary
    • getPcr14_ProductEvaluationPerformed

      Returns PCR-14: "Product Evaluation Performed" - creates it if necessary
    • getProductEvaluationStatus

      Returns PCR-15: "Product Evaluation Status" - creates it if necessary
    • getPcr15_ProductEvaluationStatus

      Returns PCR-15: "Product Evaluation Status" - creates it if necessary
    • getProductEvaluationResults

      Returns PCR-16: "Product Evaluation Results" - creates it if necessary
    • getPcr16_ProductEvaluationResults

      Returns PCR-16: "Product Evaluation Results" - creates it if necessary
    • getEvaluatedProductSource

      Returns PCR-17: "Evaluated Product Source" - creates it if necessary
    • getPcr17_EvaluatedProductSource

      Returns PCR-17: "Evaluated Product Source" - creates it if necessary
    • getDateProductReturnedToManufacturer

      Returns PCR-18: "Date Product Returned To Manufacturer" - creates it if necessary
    • getPcr18_DateProductReturnedToManufacturer

      Returns PCR-18: "Date Product Returned To Manufacturer" - creates it if necessary
    • getDeviceOperatorQualifications

      Returns PCR-19: "Device Operator Qualifications" - creates it if necessary
    • getPcr19_DeviceOperatorQualifications

      Returns PCR-19: "Device Operator Qualifications" - creates it if necessary
    • getRelatednessAssessment

      Returns PCR-20: "Relatedness Assessment" - creates it if necessary
    • getPcr20_RelatednessAssessment

      Returns PCR-20: "Relatedness Assessment" - creates it if necessary
    • getActionTakenInResponseToTheEvent

      Returns all repetitions of Action Taken In Response To The Event (PCR-21).
    • getPcr21_ActionTakenInResponseToTheEvent

      Returns all repetitions of Action Taken In Response To The Event (PCR-21).
    • getActionTakenInResponseToTheEventReps

      Returns a count of the current number of repetitions of Action Taken In Response To The Event (PCR-21). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getActionTakenInResponseToTheEvent

      Returns a specific repetition of PCR-21: "Action Taken In Response To The Event" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPcr21_ActionTakenInResponseToTheEvent

      Returns a specific repetition of PCR-21: "Action Taken In Response To The Event" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPcr21_ActionTakenInResponseToTheEventReps

      Returns a count of the current number of repetitions of Action Taken In Response To The Event (PCR-21). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertActionTakenInResponseToTheEvent

      Inserts a repetition of PCR-21: "Action Taken In Response To The Event" 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)
    • insertPcr21_ActionTakenInResponseToTheEvent

      Inserts a repetition of PCR-21: "Action Taken In Response To The Event" 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)
    • removeActionTakenInResponseToTheEvent

      Removes a repetition of PCR-21: "Action Taken In Response To The Event" 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)
    • removePcr21_ActionTakenInResponseToTheEvent

      Removes a repetition of PCR-21: "Action Taken In Response To The Event" 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)
    • getEventCausalityObservations

      Returns all repetitions of Event Causality Observations (PCR-22).
    • getPcr22_EventCausalityObservations

      Returns all repetitions of Event Causality Observations (PCR-22).
    • getEventCausalityObservationsReps

      Returns a count of the current number of repetitions of Event Causality Observations (PCR-22). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getEventCausalityObservations

      Returns a specific repetition of PCR-22: "Event Causality Observations" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPcr22_EventCausalityObservations

      Returns a specific repetition of PCR-22: "Event Causality Observations" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPcr22_EventCausalityObservationsReps

      Returns a count of the current number of repetitions of Event Causality Observations (PCR-22). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertEventCausalityObservations

      Inserts a repetition of PCR-22: "Event Causality Observations" 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)
    • insertPcr22_EventCausalityObservations

      Inserts a repetition of PCR-22: "Event Causality Observations" 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)
    • removeEventCausalityObservations

      Removes a repetition of PCR-22: "Event Causality Observations" 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)
    • removePcr22_EventCausalityObservations

      Removes a repetition of PCR-22: "Event Causality Observations" 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)
    • getIndirectExposureMechanism

      Returns all repetitions of Indirect Exposure Mechanism (PCR-23).
    • getPcr23_IndirectExposureMechanism

      Returns all repetitions of Indirect Exposure Mechanism (PCR-23).
    • getIndirectExposureMechanismReps

      Returns a count of the current number of repetitions of Indirect Exposure Mechanism (PCR-23). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getIndirectExposureMechanism

      public ID getIndirectExposureMechanism(int rep)
      Returns a specific repetition of PCR-23: "Indirect Exposure Mechanism" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPcr23_IndirectExposureMechanism

      Returns a specific repetition of PCR-23: "Indirect Exposure Mechanism" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPcr23_IndirectExposureMechanismReps

      Returns a count of the current number of repetitions of Indirect Exposure Mechanism (PCR-23). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertIndirectExposureMechanism

      Inserts a repetition of PCR-23: "Indirect Exposure Mechanism" 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)
    • insertPcr23_IndirectExposureMechanism

      Inserts a repetition of PCR-23: "Indirect Exposure Mechanism" 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)
    • removeIndirectExposureMechanism

      Removes a repetition of PCR-23: "Indirect Exposure Mechanism" 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)
    • removePcr23_IndirectExposureMechanism

      Removes a repetition of PCR-23: "Indirect Exposure Mechanism" 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)
    • createNewTypeWithoutReflection

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