Class PV2

All Implemented Interfaces:
Segment, Structure, Visitable, Serializable

public class PV2 extends AbstractSegment

Represents an HL7 PV2 message segment (Patient Visit - Additional Information). This segment has the following fields:

  • PV2-1: Prior Pending Location (PL) optional
  • PV2-2: Accommodation Code (CE) optional
  • PV2-3: Admit Reason (CE) optional
  • PV2-4: Transfer Reason (CE) optional
  • PV2-5: Patient Valuables (ST) optional repeating
  • PV2-6: Patient Valuables Location (ST) optional
  • PV2-7: Visit User Code (IS) optional repeating
  • PV2-8: Expected Admit Date/Time (TS) optional
  • PV2-9: Expected Discharge Date/Time (TS) optional
  • PV2-10: Estimated Length of Inpatient Stay (NM) optional
  • PV2-11: Actual Length of Inpatient Stay (NM) optional
  • PV2-12: Visit Description (ST) optional
  • PV2-13: Referral Source Code (XCN) optional repeating
  • PV2-14: Previous Service Date (DT) optional
  • PV2-15: Employment Illness Related Indicator (ID) optional
  • PV2-16: Purge Status Code (IS) optional
  • PV2-17: Purge Status Date (DT) optional
  • PV2-18: Special Program Code (IS) optional
  • PV2-19: Retention Indicator (ID) optional
  • PV2-20: Expected Number of Insurance Plans (NM) optional
  • PV2-21: Visit Publicity Code (IS) optional
  • PV2-22: Visit Protection Indicator (ID) optional
  • PV2-23: Clinic Organization Name (XON) optional repeating
  • PV2-24: Patient Status Code (IS) optional
  • PV2-25: Visit Priority Code (IS) optional
  • PV2-26: Previous Treatment Date (DT) optional
  • PV2-27: Expected Discharge Disposition (IS) optional
  • PV2-28: Signature on File Date (DT) optional
  • PV2-29: First Similar Illness Date (DT) optional
  • PV2-30: Patient Charge Adjustment Code (CE) optional
  • PV2-31: Recurring Service Code (IS) optional
  • PV2-32: Billing Media Code (ID) optional
  • PV2-33: Expected Surgery Date and Time (TS) optional
  • PV2-34: Military Partnership Code (ID) optional
  • PV2-35: Military Non-Availability Code (ID) optional
  • PV2-36: Newborn Baby Indicator (ID) optional
  • PV2-37: Baby Detained Indicator (ID) optional
  • PV2-38: Mode of Arrival Code (CE) optional
  • PV2-39: Recreational Drug Use Code (CE) optional repeating
  • PV2-40: Admission Level of Care Code (CE) optional
  • PV2-41: Precaution Code (CE) optional repeating
  • PV2-42: Patient Condition Code (CE) optional
  • PV2-43: Living Will Code (IS) optional
  • PV2-44: Organ Donor Code (IS) optional
  • PV2-45: Advance Directive Code (CE) optional repeating
  • PV2-46: Patient Status Effective Date (DT) optional
  • PV2-47: Expected LOA Return Date/Time (TS) optional
  • PV2-48: Expected Pre-admission Testing Date/Time (TS) optional
  • PV2-49: Notify Clergy Code (IS) optional repeating
See Also:
  • Constructor Details

  • Method Details

    • getPriorPendingLocation

      Returns PV2-1: "Prior Pending Location" - creates it if necessary
    • getPv21_PriorPendingLocation

      Returns PV2-1: "Prior Pending Location" - creates it if necessary
    • getAccommodationCode

      Returns PV2-2: "Accommodation Code" - creates it if necessary
    • getPv22_AccommodationCode

      Returns PV2-2: "Accommodation Code" - creates it if necessary
    • getAdmitReason

      public CE getAdmitReason()
      Returns PV2-3: "Admit Reason" - creates it if necessary
    • getPv23_AdmitReason

      Returns PV2-3: "Admit Reason" - creates it if necessary
    • getTransferReason

      Returns PV2-4: "Transfer Reason" - creates it if necessary
    • getPv24_TransferReason

      Returns PV2-4: "Transfer Reason" - creates it if necessary
    • getPatientValuables

      public ST[] getPatientValuables()
      Returns all repetitions of Patient Valuables (PV2-5).
    • getPv25_PatientValuables

      Returns all repetitions of Patient Valuables (PV2-5).
    • getPatientValuablesReps

      Returns a count of the current number of repetitions of Patient Valuables (PV2-5). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getPatientValuables

      public ST getPatientValuables(int rep)
      Returns a specific repetition of PV2-5: "Patient Valuables" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPv25_PatientValuables

      public ST getPv25_PatientValuables(int rep)
      Returns a specific repetition of PV2-5: "Patient Valuables" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPv25_PatientValuablesReps

      Returns a count of the current number of repetitions of Patient Valuables (PV2-5). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertPatientValuables

      public ST insertPatientValuables(int rep) throws HL7Exception
      Inserts a repetition of PV2-5: "Patient Valuables" 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)
    • insertPv25_PatientValuables

      public ST insertPv25_PatientValuables(int rep) throws HL7Exception
      Inserts a repetition of PV2-5: "Patient Valuables" 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)
    • removePatientValuables

      public ST removePatientValuables(int rep) throws HL7Exception
      Removes a repetition of PV2-5: "Patient Valuables" 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)
    • removePv25_PatientValuables

      public ST removePv25_PatientValuables(int rep) throws HL7Exception
      Removes a repetition of PV2-5: "Patient Valuables" 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)
    • getPatientValuablesLocation

      Returns PV2-6: "Patient Valuables Location" - creates it if necessary
    • getPv26_PatientValuablesLocation

      Returns PV2-6: "Patient Valuables Location" - creates it if necessary
    • getVisitUserCode

      public IS[] getVisitUserCode()
      Returns all repetitions of Visit User Code (PV2-7).
    • getPv27_VisitUserCode

      Returns all repetitions of Visit User Code (PV2-7).
    • getVisitUserCodeReps

      public int getVisitUserCodeReps()
      Returns a count of the current number of repetitions of Visit User Code (PV2-7). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getVisitUserCode

      public IS getVisitUserCode(int rep)
      Returns a specific repetition of PV2-7: "Visit User Code" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPv27_VisitUserCode

      public IS getPv27_VisitUserCode(int rep)
      Returns a specific repetition of PV2-7: "Visit User Code" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPv27_VisitUserCodeReps

      Returns a count of the current number of repetitions of Visit User Code (PV2-7). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertVisitUserCode

      public IS insertVisitUserCode(int rep) throws HL7Exception
      Inserts a repetition of PV2-7: "Visit User 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)
    • insertPv27_VisitUserCode

      public IS insertPv27_VisitUserCode(int rep) throws HL7Exception
      Inserts a repetition of PV2-7: "Visit User 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)
    • removeVisitUserCode

      public IS removeVisitUserCode(int rep) throws HL7Exception
      Removes a repetition of PV2-7: "Visit User 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)
    • removePv27_VisitUserCode

      public IS removePv27_VisitUserCode(int rep) throws HL7Exception
      Removes a repetition of PV2-7: "Visit User 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)
    • getExpectedAdmitDateTime

      Returns PV2-8: "Expected Admit Date/Time" - creates it if necessary
    • getPv28_ExpectedAdmitDateTime

      Returns PV2-8: "Expected Admit Date/Time" - creates it if necessary
    • getExpectedDischargeDateTime

      Returns PV2-9: "Expected Discharge Date/Time" - creates it if necessary
    • getPv29_ExpectedDischargeDateTime

      Returns PV2-9: "Expected Discharge Date/Time" - creates it if necessary
    • getEstimatedLengthOfInpatientStay

      Returns PV2-10: "Estimated Length of Inpatient Stay" - creates it if necessary
    • getPv210_EstimatedLengthOfInpatientStay

      Returns PV2-10: "Estimated Length of Inpatient Stay" - creates it if necessary
    • getActualLengthOfInpatientStay

      Returns PV2-11: "Actual Length of Inpatient Stay" - creates it if necessary
    • getPv211_ActualLengthOfInpatientStay

      Returns PV2-11: "Actual Length of Inpatient Stay" - creates it if necessary
    • getVisitDescription

      Returns PV2-12: "Visit Description" - creates it if necessary
    • getPv212_VisitDescription

      Returns PV2-12: "Visit Description" - creates it if necessary
    • getReferralSourceCode

      Returns all repetitions of Referral Source Code (PV2-13).
    • getPv213_ReferralSourceCode

      Returns all repetitions of Referral Source Code (PV2-13).
    • getReferralSourceCodeReps

      Returns a count of the current number of repetitions of Referral Source Code (PV2-13). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getReferralSourceCode

      public XCN getReferralSourceCode(int rep)
      Returns a specific repetition of PV2-13: "Referral Source Code" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPv213_ReferralSourceCode

      public XCN getPv213_ReferralSourceCode(int rep)
      Returns a specific repetition of PV2-13: "Referral Source Code" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPv213_ReferralSourceCodeReps

      Returns a count of the current number of repetitions of Referral Source Code (PV2-13). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertReferralSourceCode

      public XCN insertReferralSourceCode(int rep) throws HL7Exception
      Inserts a repetition of PV2-13: "Referral Source 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)
    • insertPv213_ReferralSourceCode

      Inserts a repetition of PV2-13: "Referral Source 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)
    • removeReferralSourceCode

      public XCN removeReferralSourceCode(int rep) throws HL7Exception
      Removes a repetition of PV2-13: "Referral Source 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)
    • removePv213_ReferralSourceCode

      Removes a repetition of PV2-13: "Referral Source 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)
    • getPreviousServiceDate

      Returns PV2-14: "Previous Service Date" - creates it if necessary
    • getPv214_PreviousServiceDate

      Returns PV2-14: "Previous Service Date" - creates it if necessary
    • getEmploymentIllnessRelatedIndicator

      Returns PV2-15: "Employment Illness Related Indicator" - creates it if necessary
    • getPv215_EmploymentIllnessRelatedIndicator

      Returns PV2-15: "Employment Illness Related Indicator" - creates it if necessary
    • getPurgeStatusCode

      Returns PV2-16: "Purge Status Code" - creates it if necessary
    • getPv216_PurgeStatusCode

      Returns PV2-16: "Purge Status Code" - creates it if necessary
    • getPurgeStatusDate

      Returns PV2-17: "Purge Status Date" - creates it if necessary
    • getPv217_PurgeStatusDate

      Returns PV2-17: "Purge Status Date" - creates it if necessary
    • getSpecialProgramCode

      Returns PV2-18: "Special Program Code" - creates it if necessary
    • getPv218_SpecialProgramCode

      Returns PV2-18: "Special Program Code" - creates it if necessary
    • getRetentionIndicator

      Returns PV2-19: "Retention Indicator" - creates it if necessary
    • getPv219_RetentionIndicator

      Returns PV2-19: "Retention Indicator" - creates it if necessary
    • getExpectedNumberOfInsurancePlans

      Returns PV2-20: "Expected Number of Insurance Plans" - creates it if necessary
    • getPv220_ExpectedNumberOfInsurancePlans

      Returns PV2-20: "Expected Number of Insurance Plans" - creates it if necessary
    • getVisitPublicityCode

      Returns PV2-21: "Visit Publicity Code" - creates it if necessary
    • getPv221_VisitPublicityCode

      Returns PV2-21: "Visit Publicity Code" - creates it if necessary
    • getVisitProtectionIndicator

      Returns PV2-22: "Visit Protection Indicator" - creates it if necessary
    • getPv222_VisitProtectionIndicator

      Returns PV2-22: "Visit Protection Indicator" - creates it if necessary
    • getClinicOrganizationName

      Returns all repetitions of Clinic Organization Name (PV2-23).
    • getPv223_ClinicOrganizationName

      Returns all repetitions of Clinic Organization Name (PV2-23).
    • getClinicOrganizationNameReps

      Returns a count of the current number of repetitions of Clinic Organization Name (PV2-23). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getClinicOrganizationName

      public XON getClinicOrganizationName(int rep)
      Returns a specific repetition of PV2-23: "Clinic Organization Name" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPv223_ClinicOrganizationName

      Returns a specific repetition of PV2-23: "Clinic Organization Name" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPv223_ClinicOrganizationNameReps

      Returns a count of the current number of repetitions of Clinic Organization Name (PV2-23). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertClinicOrganizationName

      Inserts a repetition of PV2-23: "Clinic Organization Name" 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)
    • insertPv223_ClinicOrganizationName

      Inserts a repetition of PV2-23: "Clinic Organization Name" 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)
    • removeClinicOrganizationName

      Removes a repetition of PV2-23: "Clinic Organization Name" 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)
    • removePv223_ClinicOrganizationName

      Removes a repetition of PV2-23: "Clinic Organization Name" 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)
    • getPatientStatusCode

      Returns PV2-24: "Patient Status Code" - creates it if necessary
    • getPv224_PatientStatusCode

      Returns PV2-24: "Patient Status Code" - creates it if necessary
    • getVisitPriorityCode

      Returns PV2-25: "Visit Priority Code" - creates it if necessary
    • getPv225_VisitPriorityCode

      Returns PV2-25: "Visit Priority Code" - creates it if necessary
    • getPreviousTreatmentDate

      Returns PV2-26: "Previous Treatment Date" - creates it if necessary
    • getPv226_PreviousTreatmentDate

      Returns PV2-26: "Previous Treatment Date" - creates it if necessary
    • getExpectedDischargeDisposition

      Returns PV2-27: "Expected Discharge Disposition" - creates it if necessary
    • getPv227_ExpectedDischargeDisposition

      Returns PV2-27: "Expected Discharge Disposition" - creates it if necessary
    • getSignatureOnFileDate

      Returns PV2-28: "Signature on File Date" - creates it if necessary
    • getPv228_SignatureOnFileDate

      Returns PV2-28: "Signature on File Date" - creates it if necessary
    • getFirstSimilarIllnessDate

      Returns PV2-29: "First Similar Illness Date" - creates it if necessary
    • getPv229_FirstSimilarIllnessDate

      Returns PV2-29: "First Similar Illness Date" - creates it if necessary
    • getPatientChargeAdjustmentCode

      Returns PV2-30: "Patient Charge Adjustment Code" - creates it if necessary
    • getPv230_PatientChargeAdjustmentCode

      Returns PV2-30: "Patient Charge Adjustment Code" - creates it if necessary
    • getRecurringServiceCode

      Returns PV2-31: "Recurring Service Code" - creates it if necessary
    • getPv231_RecurringServiceCode

      Returns PV2-31: "Recurring Service Code" - creates it if necessary
    • getBillingMediaCode

      Returns PV2-32: "Billing Media Code" - creates it if necessary
    • getPv232_BillingMediaCode

      Returns PV2-32: "Billing Media Code" - creates it if necessary
    • getExpectedSurgeryDateAndTime

      Returns PV2-33: "Expected Surgery Date and Time" - creates it if necessary
    • getPv233_ExpectedSurgeryDateAndTime

      Returns PV2-33: "Expected Surgery Date and Time" - creates it if necessary
    • getMilitaryPartnershipCode

      Returns PV2-34: "Military Partnership Code" - creates it if necessary
    • getPv234_MilitaryPartnershipCode

      Returns PV2-34: "Military Partnership Code" - creates it if necessary
    • getMilitaryNonAvailabilityCode

      Returns PV2-35: "Military Non-Availability Code" - creates it if necessary
    • getPv235_MilitaryNonAvailabilityCode

      Returns PV2-35: "Military Non-Availability Code" - creates it if necessary
    • getNewbornBabyIndicator

      Returns PV2-36: "Newborn Baby Indicator" - creates it if necessary
    • getPv236_NewbornBabyIndicator

      Returns PV2-36: "Newborn Baby Indicator" - creates it if necessary
    • getBabyDetainedIndicator

      Returns PV2-37: "Baby Detained Indicator" - creates it if necessary
    • getPv237_BabyDetainedIndicator

      Returns PV2-37: "Baby Detained Indicator" - creates it if necessary
    • getModeOfArrivalCode

      Returns PV2-38: "Mode of Arrival Code" - creates it if necessary
    • getPv238_ModeOfArrivalCode

      Returns PV2-38: "Mode of Arrival Code" - creates it if necessary
    • getRecreationalDrugUseCode

      Returns all repetitions of Recreational Drug Use Code (PV2-39).
    • getPv239_RecreationalDrugUseCode

      Returns all repetitions of Recreational Drug Use Code (PV2-39).
    • getRecreationalDrugUseCodeReps

      Returns a count of the current number of repetitions of Recreational Drug Use Code (PV2-39). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getRecreationalDrugUseCode

      public CE getRecreationalDrugUseCode(int rep)
      Returns a specific repetition of PV2-39: "Recreational Drug Use Code" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPv239_RecreationalDrugUseCode

      Returns a specific repetition of PV2-39: "Recreational Drug Use Code" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPv239_RecreationalDrugUseCodeReps

      Returns a count of the current number of repetitions of Recreational Drug Use Code (PV2-39). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertRecreationalDrugUseCode

      Inserts a repetition of PV2-39: "Recreational Drug Use 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)
    • insertPv239_RecreationalDrugUseCode

      Inserts a repetition of PV2-39: "Recreational Drug Use 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)
    • removeRecreationalDrugUseCode

      Removes a repetition of PV2-39: "Recreational Drug Use 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)
    • removePv239_RecreationalDrugUseCode

      Removes a repetition of PV2-39: "Recreational Drug Use 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)
    • getAdmissionLevelOfCareCode

      Returns PV2-40: "Admission Level of Care Code" - creates it if necessary
    • getPv240_AdmissionLevelOfCareCode

      Returns PV2-40: "Admission Level of Care Code" - creates it if necessary
    • getPrecautionCode

      public CE[] getPrecautionCode()
      Returns all repetitions of Precaution Code (PV2-41).
    • getPv241_PrecautionCode

      Returns all repetitions of Precaution Code (PV2-41).
    • getPrecautionCodeReps

      public int getPrecautionCodeReps()
      Returns a count of the current number of repetitions of Precaution Code (PV2-41). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getPrecautionCode

      public CE getPrecautionCode(int rep)
      Returns a specific repetition of PV2-41: "Precaution Code" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPv241_PrecautionCode

      public CE getPv241_PrecautionCode(int rep)
      Returns a specific repetition of PV2-41: "Precaution Code" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPv241_PrecautionCodeReps

      Returns a count of the current number of repetitions of Precaution Code (PV2-41). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertPrecautionCode

      public CE insertPrecautionCode(int rep) throws HL7Exception
      Inserts a repetition of PV2-41: "Precaution 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)
    • insertPv241_PrecautionCode

      public CE insertPv241_PrecautionCode(int rep) throws HL7Exception
      Inserts a repetition of PV2-41: "Precaution 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)
    • removePrecautionCode

      public CE removePrecautionCode(int rep) throws HL7Exception
      Removes a repetition of PV2-41: "Precaution 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)
    • removePv241_PrecautionCode

      public CE removePv241_PrecautionCode(int rep) throws HL7Exception
      Removes a repetition of PV2-41: "Precaution 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)
    • getPatientConditionCode

      Returns PV2-42: "Patient Condition Code" - creates it if necessary
    • getPv242_PatientConditionCode

      Returns PV2-42: "Patient Condition Code" - creates it if necessary
    • getLivingWillCode

      Returns PV2-43: "Living Will Code" - creates it if necessary
    • getPv243_LivingWillCode

      Returns PV2-43: "Living Will Code" - creates it if necessary
    • getOrganDonorCode

      Returns PV2-44: "Organ Donor Code" - creates it if necessary
    • getPv244_OrganDonorCode

      Returns PV2-44: "Organ Donor Code" - creates it if necessary
    • getAdvanceDirectiveCode

      Returns all repetitions of Advance Directive Code (PV2-45).
    • getPv245_AdvanceDirectiveCode

      Returns all repetitions of Advance Directive Code (PV2-45).
    • getAdvanceDirectiveCodeReps

      Returns a count of the current number of repetitions of Advance Directive Code (PV2-45). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getAdvanceDirectiveCode

      public CE getAdvanceDirectiveCode(int rep)
      Returns a specific repetition of PV2-45: "Advance Directive Code" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPv245_AdvanceDirectiveCode

      Returns a specific repetition of PV2-45: "Advance Directive Code" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPv245_AdvanceDirectiveCodeReps

      Returns a count of the current number of repetitions of Advance Directive Code (PV2-45). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertAdvanceDirectiveCode

      public CE insertAdvanceDirectiveCode(int rep) throws HL7Exception
      Inserts a repetition of PV2-45: "Advance Directive 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)
    • insertPv245_AdvanceDirectiveCode

      Inserts a repetition of PV2-45: "Advance Directive 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)
    • removeAdvanceDirectiveCode

      public CE removeAdvanceDirectiveCode(int rep) throws HL7Exception
      Removes a repetition of PV2-45: "Advance Directive 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)
    • removePv245_AdvanceDirectiveCode

      Removes a repetition of PV2-45: "Advance Directive 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)
    • getPatientStatusEffectiveDate

      Returns PV2-46: "Patient Status Effective Date" - creates it if necessary
    • getPv246_PatientStatusEffectiveDate

      Returns PV2-46: "Patient Status Effective Date" - creates it if necessary
    • getExpectedLOAReturnDateTime

      Returns PV2-47: "Expected LOA Return Date/Time" - creates it if necessary
    • getPv247_ExpectedLOAReturnDateTime

      Returns PV2-47: "Expected LOA Return Date/Time" - creates it if necessary
    • getExpectedPreAdmissionTestingDateTime

      Returns PV2-48: "Expected Pre-admission Testing Date/Time" - creates it if necessary
    • getPv248_ExpectedPreAdmissionTestingDateTime

      Returns PV2-48: "Expected Pre-admission Testing Date/Time" - creates it if necessary
    • getNotifyClergyCode

      public IS[] getNotifyClergyCode()
      Returns all repetitions of Notify Clergy Code (PV2-49).
    • getPv249_NotifyClergyCode

      Returns all repetitions of Notify Clergy Code (PV2-49).
    • getNotifyClergyCodeReps

      Returns a count of the current number of repetitions of Notify Clergy Code (PV2-49). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getNotifyClergyCode

      public IS getNotifyClergyCode(int rep)
      Returns a specific repetition of PV2-49: "Notify Clergy Code" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPv249_NotifyClergyCode

      public IS getPv249_NotifyClergyCode(int rep)
      Returns a specific repetition of PV2-49: "Notify Clergy Code" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPv249_NotifyClergyCodeReps

      Returns a count of the current number of repetitions of Notify Clergy Code (PV2-49). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertNotifyClergyCode

      public IS insertNotifyClergyCode(int rep) throws HL7Exception
      Inserts a repetition of PV2-49: "Notify Clergy 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)
    • insertPv249_NotifyClergyCode

      public IS insertPv249_NotifyClergyCode(int rep) throws HL7Exception
      Inserts a repetition of PV2-49: "Notify Clergy 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)
    • removeNotifyClergyCode

      public IS removeNotifyClergyCode(int rep) throws HL7Exception
      Removes a repetition of PV2-49: "Notify Clergy 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)
    • removePv249_NotifyClergyCode

      public IS removePv249_NotifyClergyCode(int rep) throws HL7Exception
      Removes a repetition of PV2-49: "Notify Clergy 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)
    • createNewTypeWithoutReflection

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