Class PV1

All Implemented Interfaces:
Segment, Structure, Visitable, Serializable

public class PV1 extends AbstractSegment

Represents an HL7 PV1 message segment (Patient visit). This segment has the following fields:

  • PV1-1: Set ID - PV1 (SI) optional
  • PV1-2: Patient Class (IS)
  • PV1-3: Assigned Patient Location (PL) optional
  • PV1-4: Admission Type (IS) optional
  • PV1-5: Preadmit Number (CX) optional
  • PV1-6: Prior Patient Location (PL) optional
  • PV1-7: Attending Doctor (XCN) optional repeating
  • PV1-8: Referring Doctor (XCN) optional repeating
  • PV1-9: Consulting Doctor (XCN) optional repeating
  • PV1-10: Hospital Service (IS) optional
  • PV1-11: Temporary Location (PL) optional
  • PV1-12: Preadmit Test Indicator (IS) optional
  • PV1-13: Re-admission Indicator (IS) optional
  • PV1-14: Admit Source (IS) optional
  • PV1-15: Ambulatory Status (IS) optional repeating
  • PV1-16: VIP Indicator (IS) optional
  • PV1-17: Admitting Doctor (XCN) optional repeating
  • PV1-18: Patient Type (IS) optional
  • PV1-19: Visit Number (CX) optional
  • PV1-20: Financial Class (FC) optional repeating
  • PV1-21: Charge Price Indicator (IS) optional
  • PV1-22: Courtesy Code (IS) optional
  • PV1-23: Credit Rating (IS) optional
  • PV1-24: Contract Code (IS) optional repeating
  • PV1-25: Contract Effective Date (DT) optional repeating
  • PV1-26: Contract Amount (NM) optional repeating
  • PV1-27: Contract Period (NM) optional repeating
  • PV1-28: Interest Code (IS) optional
  • PV1-29: Transfer to Bad Debt Code (IS) optional
  • PV1-30: Transfer to Bad Debt Date (DT) optional
  • PV1-31: Bad Debt Agency Code (IS) optional
  • PV1-32: Bad Debt Transfer Amount (NM) optional
  • PV1-33: Bad Debt Recovery Amount (NM) optional
  • PV1-34: Delete Account Indicator (IS) optional
  • PV1-35: Delete Account Date (DT) optional
  • PV1-36: Discharge Disposition (IS) optional
  • PV1-37: Discharged to Location (DLD) optional
  • PV1-38: Diet Type (CE) optional
  • PV1-39: Servicing Facility (IS) optional
  • PV1-40: Bed Status (IS) optional
  • PV1-41: Account Status (IS) optional
  • PV1-42: Pending Location (PL) optional
  • PV1-43: Prior Temporary Location (PL) optional
  • PV1-44: Admit Date/Time (TS) optional
  • PV1-45: Discharge Date/Time (TS) optional repeating
  • PV1-46: Current Patient Balance (NM) optional
  • PV1-47: Total Charges (NM) optional
  • PV1-48: Total Adjustments (NM) optional
  • PV1-49: Total Payments (NM) optional
  • PV1-50: Alternate Visit ID (CX) optional
  • PV1-51: Visit Indicator (IS) optional
  • PV1-52: Other Healthcare Provider (XCN) optional repeating
See Also:
  • Constructor Details

  • Method Details

    • getSetIDPV1

      public SI getSetIDPV1()
      Returns PV1-1: "Set ID - PV1" - creates it if necessary
    • getPv11_SetIDPV1

      public SI getPv11_SetIDPV1()
      Returns PV1-1: "Set ID - PV1" - creates it if necessary
    • getPatientClass

      public IS getPatientClass()
      Returns PV1-2: "Patient Class" - creates it if necessary
    • getPv12_PatientClass

      Returns PV1-2: "Patient Class" - creates it if necessary
    • getAssignedPatientLocation

      Returns PV1-3: "Assigned Patient Location" - creates it if necessary
    • getPv13_AssignedPatientLocation

      Returns PV1-3: "Assigned Patient Location" - creates it if necessary
    • getAdmissionType

      public IS getAdmissionType()
      Returns PV1-4: "Admission Type" - creates it if necessary
    • getPv14_AdmissionType

      Returns PV1-4: "Admission Type" - creates it if necessary
    • getPreadmitNumber

      Returns PV1-5: "Preadmit Number" - creates it if necessary
    • getPv15_PreadmitNumber

      Returns PV1-5: "Preadmit Number" - creates it if necessary
    • getPriorPatientLocation

      Returns PV1-6: "Prior Patient Location" - creates it if necessary
    • getPv16_PriorPatientLocation

      Returns PV1-6: "Prior Patient Location" - creates it if necessary
    • getAttendingDoctor

      public XCN[] getAttendingDoctor()
      Returns all repetitions of Attending Doctor (PV1-7).
    • getPv17_AttendingDoctor

      Returns all repetitions of Attending Doctor (PV1-7).
    • getAttendingDoctorReps

      public int getAttendingDoctorReps()
      Returns a count of the current number of repetitions of Attending Doctor (PV1-7). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getAttendingDoctor

      public XCN getAttendingDoctor(int rep)
      Returns a specific repetition of PV1-7: "Attending Doctor" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPv17_AttendingDoctor

      public XCN getPv17_AttendingDoctor(int rep)
      Returns a specific repetition of PV1-7: "Attending Doctor" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPv17_AttendingDoctorReps

      Returns a count of the current number of repetitions of Attending Doctor (PV1-7). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertAttendingDoctor

      public XCN insertAttendingDoctor(int rep) throws HL7Exception
      Inserts a repetition of PV1-7: "Attending Doctor" 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)
    • insertPv17_AttendingDoctor

      public XCN insertPv17_AttendingDoctor(int rep) throws HL7Exception
      Inserts a repetition of PV1-7: "Attending Doctor" 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)
    • removeAttendingDoctor

      public XCN removeAttendingDoctor(int rep) throws HL7Exception
      Removes a repetition of PV1-7: "Attending Doctor" 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)
    • removePv17_AttendingDoctor

      public XCN removePv17_AttendingDoctor(int rep) throws HL7Exception
      Removes a repetition of PV1-7: "Attending Doctor" 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)
    • getReferringDoctor

      public XCN[] getReferringDoctor()
      Returns all repetitions of Referring Doctor (PV1-8).
    • getPv18_ReferringDoctor

      Returns all repetitions of Referring Doctor (PV1-8).
    • getReferringDoctorReps

      public int getReferringDoctorReps()
      Returns a count of the current number of repetitions of Referring Doctor (PV1-8). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getReferringDoctor

      public XCN getReferringDoctor(int rep)
      Returns a specific repetition of PV1-8: "Referring Doctor" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPv18_ReferringDoctor

      public XCN getPv18_ReferringDoctor(int rep)
      Returns a specific repetition of PV1-8: "Referring Doctor" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPv18_ReferringDoctorReps

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

      public XCN insertReferringDoctor(int rep) throws HL7Exception
      Inserts a repetition of PV1-8: "Referring Doctor" 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)
    • insertPv18_ReferringDoctor

      public XCN insertPv18_ReferringDoctor(int rep) throws HL7Exception
      Inserts a repetition of PV1-8: "Referring Doctor" 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)
    • removeReferringDoctor

      public XCN removeReferringDoctor(int rep) throws HL7Exception
      Removes a repetition of PV1-8: "Referring Doctor" 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)
    • removePv18_ReferringDoctor

      public XCN removePv18_ReferringDoctor(int rep) throws HL7Exception
      Removes a repetition of PV1-8: "Referring Doctor" 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)
    • getConsultingDoctor

      Returns all repetitions of Consulting Doctor (PV1-9).
    • getPv19_ConsultingDoctor

      Returns all repetitions of Consulting Doctor (PV1-9).
    • getConsultingDoctorReps

      Returns a count of the current number of repetitions of Consulting Doctor (PV1-9). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getConsultingDoctor

      public XCN getConsultingDoctor(int rep)
      Returns a specific repetition of PV1-9: "Consulting Doctor" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPv19_ConsultingDoctor

      public XCN getPv19_ConsultingDoctor(int rep)
      Returns a specific repetition of PV1-9: "Consulting Doctor" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPv19_ConsultingDoctorReps

      Returns a count of the current number of repetitions of Consulting Doctor (PV1-9). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertConsultingDoctor

      public XCN insertConsultingDoctor(int rep) throws HL7Exception
      Inserts a repetition of PV1-9: "Consulting Doctor" 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)
    • insertPv19_ConsultingDoctor

      public XCN insertPv19_ConsultingDoctor(int rep) throws HL7Exception
      Inserts a repetition of PV1-9: "Consulting Doctor" 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)
    • removeConsultingDoctor

      public XCN removeConsultingDoctor(int rep) throws HL7Exception
      Removes a repetition of PV1-9: "Consulting Doctor" 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)
    • removePv19_ConsultingDoctor

      public XCN removePv19_ConsultingDoctor(int rep) throws HL7Exception
      Removes a repetition of PV1-9: "Consulting Doctor" 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)
    • getHospitalService

      Returns PV1-10: "Hospital Service" - creates it if necessary
    • getPv110_HospitalService

      Returns PV1-10: "Hospital Service" - creates it if necessary
    • getTemporaryLocation

      Returns PV1-11: "Temporary Location" - creates it if necessary
    • getPv111_TemporaryLocation

      Returns PV1-11: "Temporary Location" - creates it if necessary
    • getPreadmitTestIndicator

      Returns PV1-12: "Preadmit Test Indicator" - creates it if necessary
    • getPv112_PreadmitTestIndicator

      Returns PV1-12: "Preadmit Test Indicator" - creates it if necessary
    • getReAdmissionIndicator

      Returns PV1-13: "Re-admission Indicator" - creates it if necessary
    • getPv113_ReAdmissionIndicator

      Returns PV1-13: "Re-admission Indicator" - creates it if necessary
    • getAdmitSource

      public IS getAdmitSource()
      Returns PV1-14: "Admit Source" - creates it if necessary
    • getPv114_AdmitSource

      Returns PV1-14: "Admit Source" - creates it if necessary
    • getAmbulatoryStatus

      public IS[] getAmbulatoryStatus()
      Returns all repetitions of Ambulatory Status (PV1-15).
    • getPv115_AmbulatoryStatus

      Returns all repetitions of Ambulatory Status (PV1-15).
    • getAmbulatoryStatusReps

      Returns a count of the current number of repetitions of Ambulatory Status (PV1-15). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getAmbulatoryStatus

      public IS getAmbulatoryStatus(int rep)
      Returns a specific repetition of PV1-15: "Ambulatory Status" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPv115_AmbulatoryStatus

      public IS getPv115_AmbulatoryStatus(int rep)
      Returns a specific repetition of PV1-15: "Ambulatory Status" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPv115_AmbulatoryStatusReps

      Returns a count of the current number of repetitions of Ambulatory Status (PV1-15). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertAmbulatoryStatus

      public IS insertAmbulatoryStatus(int rep) throws HL7Exception
      Inserts a repetition of PV1-15: "Ambulatory Status" 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)
    • insertPv115_AmbulatoryStatus

      public IS insertPv115_AmbulatoryStatus(int rep) throws HL7Exception
      Inserts a repetition of PV1-15: "Ambulatory Status" 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)
    • removeAmbulatoryStatus

      public IS removeAmbulatoryStatus(int rep) throws HL7Exception
      Removes a repetition of PV1-15: "Ambulatory Status" 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)
    • removePv115_AmbulatoryStatus

      public IS removePv115_AmbulatoryStatus(int rep) throws HL7Exception
      Removes a repetition of PV1-15: "Ambulatory Status" 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)
    • getVIPIndicator

      public IS getVIPIndicator()
      Returns PV1-16: "VIP Indicator" - creates it if necessary
    • getPv116_VIPIndicator

      Returns PV1-16: "VIP Indicator" - creates it if necessary
    • getAdmittingDoctor

      public XCN[] getAdmittingDoctor()
      Returns all repetitions of Admitting Doctor (PV1-17).
    • getPv117_AdmittingDoctor

      Returns all repetitions of Admitting Doctor (PV1-17).
    • getAdmittingDoctorReps

      public int getAdmittingDoctorReps()
      Returns a count of the current number of repetitions of Admitting Doctor (PV1-17). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getAdmittingDoctor

      public XCN getAdmittingDoctor(int rep)
      Returns a specific repetition of PV1-17: "Admitting Doctor" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPv117_AdmittingDoctor

      public XCN getPv117_AdmittingDoctor(int rep)
      Returns a specific repetition of PV1-17: "Admitting Doctor" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPv117_AdmittingDoctorReps

      Returns a count of the current number of repetitions of Admitting Doctor (PV1-17). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertAdmittingDoctor

      public XCN insertAdmittingDoctor(int rep) throws HL7Exception
      Inserts a repetition of PV1-17: "Admitting Doctor" 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)
    • insertPv117_AdmittingDoctor

      public XCN insertPv117_AdmittingDoctor(int rep) throws HL7Exception
      Inserts a repetition of PV1-17: "Admitting Doctor" 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)
    • removeAdmittingDoctor

      public XCN removeAdmittingDoctor(int rep) throws HL7Exception
      Removes a repetition of PV1-17: "Admitting Doctor" 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)
    • removePv117_AdmittingDoctor

      public XCN removePv117_AdmittingDoctor(int rep) throws HL7Exception
      Removes a repetition of PV1-17: "Admitting Doctor" 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)
    • getPatientType

      public IS getPatientType()
      Returns PV1-18: "Patient Type" - creates it if necessary
    • getPv118_PatientType

      Returns PV1-18: "Patient Type" - creates it if necessary
    • getVisitNumber

      public CX getVisitNumber()
      Returns PV1-19: "Visit Number" - creates it if necessary
    • getPv119_VisitNumber

      Returns PV1-19: "Visit Number" - creates it if necessary
    • getFinancialClass

      public FC[] getFinancialClass()
      Returns all repetitions of Financial Class (PV1-20).
    • getPv120_FinancialClass

      Returns all repetitions of Financial Class (PV1-20).
    • getFinancialClassReps

      public int getFinancialClassReps()
      Returns a count of the current number of repetitions of Financial Class (PV1-20). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getFinancialClass

      public FC getFinancialClass(int rep)
      Returns a specific repetition of PV1-20: "Financial Class" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPv120_FinancialClass

      public FC getPv120_FinancialClass(int rep)
      Returns a specific repetition of PV1-20: "Financial Class" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPv120_FinancialClassReps

      Returns a count of the current number of repetitions of Financial Class (PV1-20). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertFinancialClass

      public FC insertFinancialClass(int rep) throws HL7Exception
      Inserts a repetition of PV1-20: "Financial Class" 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)
    • insertPv120_FinancialClass

      public FC insertPv120_FinancialClass(int rep) throws HL7Exception
      Inserts a repetition of PV1-20: "Financial Class" 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)
    • removeFinancialClass

      public FC removeFinancialClass(int rep) throws HL7Exception
      Removes a repetition of PV1-20: "Financial Class" 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)
    • removePv120_FinancialClass

      public FC removePv120_FinancialClass(int rep) throws HL7Exception
      Removes a repetition of PV1-20: "Financial Class" 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)
    • getChargePriceIndicator

      Returns PV1-21: "Charge Price Indicator" - creates it if necessary
    • getPv121_ChargePriceIndicator

      Returns PV1-21: "Charge Price Indicator" - creates it if necessary
    • getCourtesyCode

      public IS getCourtesyCode()
      Returns PV1-22: "Courtesy Code" - creates it if necessary
    • getPv122_CourtesyCode

      Returns PV1-22: "Courtesy Code" - creates it if necessary
    • getCreditRating

      public IS getCreditRating()
      Returns PV1-23: "Credit Rating" - creates it if necessary
    • getPv123_CreditRating

      Returns PV1-23: "Credit Rating" - creates it if necessary
    • getContractCode

      public IS[] getContractCode()
      Returns all repetitions of Contract Code (PV1-24).
    • getPv124_ContractCode

      Returns all repetitions of Contract Code (PV1-24).
    • getContractCodeReps

      public int getContractCodeReps()
      Returns a count of the current number of repetitions of Contract Code (PV1-24). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getContractCode

      public IS getContractCode(int rep)
      Returns a specific repetition of PV1-24: "Contract Code" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPv124_ContractCode

      public IS getPv124_ContractCode(int rep)
      Returns a specific repetition of PV1-24: "Contract Code" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPv124_ContractCodeReps

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

      public IS insertContractCode(int rep) throws HL7Exception
      Inserts a repetition of PV1-24: "Contract 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)
    • insertPv124_ContractCode

      public IS insertPv124_ContractCode(int rep) throws HL7Exception
      Inserts a repetition of PV1-24: "Contract 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)
    • removeContractCode

      public IS removeContractCode(int rep) throws HL7Exception
      Removes a repetition of PV1-24: "Contract 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)
    • removePv124_ContractCode

      public IS removePv124_ContractCode(int rep) throws HL7Exception
      Removes a repetition of PV1-24: "Contract 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)
    • getContractEffectiveDate

      Returns all repetitions of Contract Effective Date (PV1-25).
    • getPv125_ContractEffectiveDate

      Returns all repetitions of Contract Effective Date (PV1-25).
    • getContractEffectiveDateReps

      Returns a count of the current number of repetitions of Contract Effective Date (PV1-25). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getContractEffectiveDate

      public DT getContractEffectiveDate(int rep)
      Returns a specific repetition of PV1-25: "Contract Effective Date" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPv125_ContractEffectiveDate

      Returns a specific repetition of PV1-25: "Contract Effective Date" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPv125_ContractEffectiveDateReps

      Returns a count of the current number of repetitions of Contract Effective Date (PV1-25). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertContractEffectiveDate

      public DT insertContractEffectiveDate(int rep) throws HL7Exception
      Inserts a repetition of PV1-25: "Contract Effective Date" 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)
    • insertPv125_ContractEffectiveDate

      Inserts a repetition of PV1-25: "Contract Effective Date" 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)
    • removeContractEffectiveDate

      public DT removeContractEffectiveDate(int rep) throws HL7Exception
      Removes a repetition of PV1-25: "Contract Effective Date" 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)
    • removePv125_ContractEffectiveDate

      Removes a repetition of PV1-25: "Contract Effective Date" 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)
    • getContractAmount

      public NM[] getContractAmount()
      Returns all repetitions of Contract Amount (PV1-26).
    • getPv126_ContractAmount

      Returns all repetitions of Contract Amount (PV1-26).
    • getContractAmountReps

      public int getContractAmountReps()
      Returns a count of the current number of repetitions of Contract Amount (PV1-26). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getContractAmount

      public NM getContractAmount(int rep)
      Returns a specific repetition of PV1-26: "Contract Amount" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPv126_ContractAmount

      public NM getPv126_ContractAmount(int rep)
      Returns a specific repetition of PV1-26: "Contract Amount" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPv126_ContractAmountReps

      Returns a count of the current number of repetitions of Contract Amount (PV1-26). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertContractAmount

      public NM insertContractAmount(int rep) throws HL7Exception
      Inserts a repetition of PV1-26: "Contract Amount" 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)
    • insertPv126_ContractAmount

      public NM insertPv126_ContractAmount(int rep) throws HL7Exception
      Inserts a repetition of PV1-26: "Contract Amount" 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)
    • removeContractAmount

      public NM removeContractAmount(int rep) throws HL7Exception
      Removes a repetition of PV1-26: "Contract Amount" 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)
    • removePv126_ContractAmount

      public NM removePv126_ContractAmount(int rep) throws HL7Exception
      Removes a repetition of PV1-26: "Contract Amount" 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)
    • getContractPeriod

      public NM[] getContractPeriod()
      Returns all repetitions of Contract Period (PV1-27).
    • getPv127_ContractPeriod

      Returns all repetitions of Contract Period (PV1-27).
    • getContractPeriodReps

      public int getContractPeriodReps()
      Returns a count of the current number of repetitions of Contract Period (PV1-27). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getContractPeriod

      public NM getContractPeriod(int rep)
      Returns a specific repetition of PV1-27: "Contract Period" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPv127_ContractPeriod

      public NM getPv127_ContractPeriod(int rep)
      Returns a specific repetition of PV1-27: "Contract Period" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPv127_ContractPeriodReps

      Returns a count of the current number of repetitions of Contract Period (PV1-27). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertContractPeriod

      public NM insertContractPeriod(int rep) throws HL7Exception
      Inserts a repetition of PV1-27: "Contract Period" 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)
    • insertPv127_ContractPeriod

      public NM insertPv127_ContractPeriod(int rep) throws HL7Exception
      Inserts a repetition of PV1-27: "Contract Period" 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)
    • removeContractPeriod

      public NM removeContractPeriod(int rep) throws HL7Exception
      Removes a repetition of PV1-27: "Contract Period" 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)
    • removePv127_ContractPeriod

      public NM removePv127_ContractPeriod(int rep) throws HL7Exception
      Removes a repetition of PV1-27: "Contract Period" 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)
    • getInterestCode

      public IS getInterestCode()
      Returns PV1-28: "Interest Code" - creates it if necessary
    • getPv128_InterestCode

      Returns PV1-28: "Interest Code" - creates it if necessary
    • getTransferToBadDebtCode

      Returns PV1-29: "Transfer to Bad Debt Code" - creates it if necessary
    • getPv129_TransferToBadDebtCode

      Returns PV1-29: "Transfer to Bad Debt Code" - creates it if necessary
    • getTransferToBadDebtDate

      Returns PV1-30: "Transfer to Bad Debt Date" - creates it if necessary
    • getPv130_TransferToBadDebtDate

      Returns PV1-30: "Transfer to Bad Debt Date" - creates it if necessary
    • getBadDebtAgencyCode

      Returns PV1-31: "Bad Debt Agency Code" - creates it if necessary
    • getPv131_BadDebtAgencyCode

      Returns PV1-31: "Bad Debt Agency Code" - creates it if necessary
    • getBadDebtTransferAmount

      Returns PV1-32: "Bad Debt Transfer Amount" - creates it if necessary
    • getPv132_BadDebtTransferAmount

      Returns PV1-32: "Bad Debt Transfer Amount" - creates it if necessary
    • getBadDebtRecoveryAmount

      Returns PV1-33: "Bad Debt Recovery Amount" - creates it if necessary
    • getPv133_BadDebtRecoveryAmount

      Returns PV1-33: "Bad Debt Recovery Amount" - creates it if necessary
    • getDeleteAccountIndicator

      Returns PV1-34: "Delete Account Indicator" - creates it if necessary
    • getPv134_DeleteAccountIndicator

      Returns PV1-34: "Delete Account Indicator" - creates it if necessary
    • getDeleteAccountDate

      Returns PV1-35: "Delete Account Date" - creates it if necessary
    • getPv135_DeleteAccountDate

      Returns PV1-35: "Delete Account Date" - creates it if necessary
    • getDischargeDisposition

      Returns PV1-36: "Discharge Disposition" - creates it if necessary
    • getPv136_DischargeDisposition

      Returns PV1-36: "Discharge Disposition" - creates it if necessary
    • getDischargedToLocation

      Returns PV1-37: "Discharged to Location" - creates it if necessary
    • getPv137_DischargedToLocation

      Returns PV1-37: "Discharged to Location" - creates it if necessary
    • getDietType

      public CE getDietType()
      Returns PV1-38: "Diet Type" - creates it if necessary
    • getPv138_DietType

      Returns PV1-38: "Diet Type" - creates it if necessary
    • getServicingFacility

      Returns PV1-39: "Servicing Facility" - creates it if necessary
    • getPv139_ServicingFacility

      Returns PV1-39: "Servicing Facility" - creates it if necessary
    • getBedStatus

      public IS getBedStatus()
      Returns PV1-40: "Bed Status" - creates it if necessary
    • getPv140_BedStatus

      Returns PV1-40: "Bed Status" - creates it if necessary
    • getAccountStatus

      public IS getAccountStatus()
      Returns PV1-41: "Account Status" - creates it if necessary
    • getPv141_AccountStatus

      Returns PV1-41: "Account Status" - creates it if necessary
    • getPendingLocation

      Returns PV1-42: "Pending Location" - creates it if necessary
    • getPv142_PendingLocation

      Returns PV1-42: "Pending Location" - creates it if necessary
    • getPriorTemporaryLocation

      Returns PV1-43: "Prior Temporary Location" - creates it if necessary
    • getPv143_PriorTemporaryLocation

      Returns PV1-43: "Prior Temporary Location" - creates it if necessary
    • getAdmitDateTime

      public TS getAdmitDateTime()
      Returns PV1-44: "Admit Date/Time" - creates it if necessary
    • getPv144_AdmitDateTime

      Returns PV1-44: "Admit Date/Time" - creates it if necessary
    • getDischargeDateTime

      Returns all repetitions of Discharge Date/Time (PV1-45).
    • getPv145_DischargeDateTime

      Returns all repetitions of Discharge Date/Time (PV1-45).
    • getDischargeDateTimeReps

      Returns a count of the current number of repetitions of Discharge Date/Time (PV1-45). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getDischargeDateTime

      public TS getDischargeDateTime(int rep)
      Returns a specific repetition of PV1-45: "Discharge Date/Time" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPv145_DischargeDateTime

      public TS getPv145_DischargeDateTime(int rep)
      Returns a specific repetition of PV1-45: "Discharge Date/Time" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPv145_DischargeDateTimeReps

      Returns a count of the current number of repetitions of Discharge Date/Time (PV1-45). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertDischargeDateTime

      public TS insertDischargeDateTime(int rep) throws HL7Exception
      Inserts a repetition of PV1-45: "Discharge Date/Time" 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)
    • insertPv145_DischargeDateTime

      Inserts a repetition of PV1-45: "Discharge Date/Time" 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)
    • removeDischargeDateTime

      public TS removeDischargeDateTime(int rep) throws HL7Exception
      Removes a repetition of PV1-45: "Discharge Date/Time" 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)
    • removePv145_DischargeDateTime

      Removes a repetition of PV1-45: "Discharge Date/Time" 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)
    • getCurrentPatientBalance

      Returns PV1-46: "Current Patient Balance" - creates it if necessary
    • getPv146_CurrentPatientBalance

      Returns PV1-46: "Current Patient Balance" - creates it if necessary
    • getTotalCharges

      public NM getTotalCharges()
      Returns PV1-47: "Total Charges" - creates it if necessary
    • getPv147_TotalCharges

      Returns PV1-47: "Total Charges" - creates it if necessary
    • getTotalAdjustments

      Returns PV1-48: "Total Adjustments" - creates it if necessary
    • getPv148_TotalAdjustments

      Returns PV1-48: "Total Adjustments" - creates it if necessary
    • getTotalPayments

      public NM getTotalPayments()
      Returns PV1-49: "Total Payments" - creates it if necessary
    • getPv149_TotalPayments

      Returns PV1-49: "Total Payments" - creates it if necessary
    • getAlternateVisitID

      Returns PV1-50: "Alternate Visit ID" - creates it if necessary
    • getPv150_AlternateVisitID

      Returns PV1-50: "Alternate Visit ID" - creates it if necessary
    • getVisitIndicator

      Returns PV1-51: "Visit Indicator" - creates it if necessary
    • getPv151_VisitIndicator

      Returns PV1-51: "Visit Indicator" - creates it if necessary
    • getOtherHealthcareProvider

      Returns all repetitions of Other Healthcare Provider (PV1-52).
    • getPv152_OtherHealthcareProvider

      Returns all repetitions of Other Healthcare Provider (PV1-52).
    • getOtherHealthcareProviderReps

      Returns a count of the current number of repetitions of Other Healthcare Provider (PV1-52). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getOtherHealthcareProvider

      public XCN getOtherHealthcareProvider(int rep)
      Returns a specific repetition of PV1-52: "Other Healthcare Provider" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPv152_OtherHealthcareProvider

      Returns a specific repetition of PV1-52: "Other Healthcare Provider" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getPv152_OtherHealthcareProviderReps

      Returns a count of the current number of repetitions of Other Healthcare Provider (PV1-52). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertOtherHealthcareProvider

      Inserts a repetition of PV1-52: "Other Healthcare Provider" 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)
    • insertPv152_OtherHealthcareProvider

      Inserts a repetition of PV1-52: "Other Healthcare Provider" 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)
    • removeOtherHealthcareProvider

      Removes a repetition of PV1-52: "Other Healthcare Provider" 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)
    • removePv152_OtherHealthcareProvider

      Removes a repetition of PV1-52: "Other Healthcare Provider" 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