Class IN2

All Implemented Interfaces:
Segment, Structure, Visitable, Serializable

public class IN2 extends AbstractSegment

Represents an HL7 IN2 message segment (INSURANCE ADDITIONAL INFO). This segment has the following fields:

  • IN2-1: Insured's employee ID (ST) optional
  • IN2-2: Insured's social security number (ST) optional
  • IN2-3: Insured's employer name (CN) optional
  • IN2-4: Employer information data (ID) optional
  • IN2-5: Mail claim party (ID) optional
  • IN2-6: Medicare health insurance card number (NM) optional
  • IN2-7: Medicaid case name (PN) optional
  • IN2-8: Medicaid case number (NM) optional
  • IN2-9: Champus sponsor name (PN) optional
  • IN2-10: Champus ID number (NM) optional
  • IN2-11: Dependent of champus recipient (ID) optional
  • IN2-12: Champus organization (ST) optional
  • IN2-13: Champus station (ST) optional
  • IN2-14: Champus service (ID) optional
  • IN2-15: Champus rank / grade (ID) optional
  • IN2-16: Champus status (ID) optional
  • IN2-17: Champus retire date (DT) optional
  • IN2-18: Champus non-availability certification on file (ID) optional
  • IN2-19: Baby coverage (ID) optional
  • IN2-20: Combine baby bill (ID) optional
  • IN2-21: Blood deductible (NM) optional
  • IN2-22: Special coverage approval name (PN) optional
  • IN2-23: Special coverage approval title (ST) optional
  • IN2-24: Non-covered insurance code (ID) optional repeating
  • IN2-25: Payor ID (ST) optional
  • IN2-26: Payor subscriber ID (ST) optional
  • IN2-27: Eligibility source (ID) optional
  • IN2-28: Room coverage type / amount (CM_RMC) optional repeating
  • IN2-29: Policy type / amount (CM_PTA) optional repeating
  • IN2-30: Daily deductible (CM_DDI) optional
See Also:
  • Constructor Details

  • Method Details

    • getInsuredSEmployeeID

      Returns IN2-1: "Insured's employee ID" - creates it if necessary
    • getIn21_InsuredSEmployeeID

      Returns IN2-1: "Insured's employee ID" - creates it if necessary
    • getInsuredSSocialSecurityNumber

      Returns IN2-2: "Insured's social security number" - creates it if necessary
    • getIn22_InsuredSSocialSecurityNumber

      Returns IN2-2: "Insured's social security number" - creates it if necessary
    • getInsuredSEmployerName

      Returns IN2-3: "Insured's employer name" - creates it if necessary
    • getIn23_InsuredSEmployerName

      Returns IN2-3: "Insured's employer name" - creates it if necessary
    • getEmployerInformationData

      Returns IN2-4: "Employer information data" - creates it if necessary
    • getIn24_EmployerInformationData

      Returns IN2-4: "Employer information data" - creates it if necessary
    • getMailClaimParty

      Returns IN2-5: "Mail claim party" - creates it if necessary
    • getIn25_MailClaimParty

      Returns IN2-5: "Mail claim party" - creates it if necessary
    • getMedicareHealthInsuranceCardNumber

      Returns IN2-6: "Medicare health insurance card number" - creates it if necessary
    • getIn26_MedicareHealthInsuranceCardNumber

      Returns IN2-6: "Medicare health insurance card number" - creates it if necessary
    • getMedicaidCaseName

      Returns IN2-7: "Medicaid case name" - creates it if necessary
    • getIn27_MedicaidCaseName

      Returns IN2-7: "Medicaid case name" - creates it if necessary
    • getMedicaidCaseNumber

      Returns IN2-8: "Medicaid case number" - creates it if necessary
    • getIn28_MedicaidCaseNumber

      Returns IN2-8: "Medicaid case number" - creates it if necessary
    • getChampusSponsorName

      Returns IN2-9: "Champus sponsor name" - creates it if necessary
    • getIn29_ChampusSponsorName

      Returns IN2-9: "Champus sponsor name" - creates it if necessary
    • getChampusIDNumber

      Returns IN2-10: "Champus ID number" - creates it if necessary
    • getIn210_ChampusIDNumber

      Returns IN2-10: "Champus ID number" - creates it if necessary
    • getDependentOfChampusRecipient

      Returns IN2-11: "Dependent of champus recipient" - creates it if necessary
    • getIn211_DependentOfChampusRecipient

      Returns IN2-11: "Dependent of champus recipient" - creates it if necessary
    • getChampusOrganization

      Returns IN2-12: "Champus organization" - creates it if necessary
    • getIn212_ChampusOrganization

      Returns IN2-12: "Champus organization" - creates it if necessary
    • getChampusStation

      Returns IN2-13: "Champus station" - creates it if necessary
    • getIn213_ChampusStation

      Returns IN2-13: "Champus station" - creates it if necessary
    • getChampusService

      Returns IN2-14: "Champus service" - creates it if necessary
    • getIn214_ChampusService

      Returns IN2-14: "Champus service" - creates it if necessary
    • getChampusRankGrade

      Returns IN2-15: "Champus rank / grade" - creates it if necessary
    • getIn215_ChampusRankGrade

      Returns IN2-15: "Champus rank / grade" - creates it if necessary
    • getChampusStatus

      public ID getChampusStatus()
      Returns IN2-16: "Champus status" - creates it if necessary
    • getIn216_ChampusStatus

      Returns IN2-16: "Champus status" - creates it if necessary
    • getChampusRetireDate

      Returns IN2-17: "Champus retire date" - creates it if necessary
    • getIn217_ChampusRetireDate

      Returns IN2-17: "Champus retire date" - creates it if necessary
    • getChampusNonAvailabilityCertificationOnFile

      Returns IN2-18: "Champus non-availability certification on file" - creates it if necessary
    • getIn218_ChampusNonAvailabilityCertificationOnFile

      Returns IN2-18: "Champus non-availability certification on file" - creates it if necessary
    • getBabyCoverage

      public ID getBabyCoverage()
      Returns IN2-19: "Baby coverage" - creates it if necessary
    • getIn219_BabyCoverage

      Returns IN2-19: "Baby coverage" - creates it if necessary
    • getCombineBabyBill

      Returns IN2-20: "Combine baby bill" - creates it if necessary
    • getIn220_CombineBabyBill

      Returns IN2-20: "Combine baby bill" - creates it if necessary
    • getBloodDeductible

      Returns IN2-21: "Blood deductible" - creates it if necessary
    • getIn221_BloodDeductible

      Returns IN2-21: "Blood deductible" - creates it if necessary
    • getSpecialCoverageApprovalName

      Returns IN2-22: "Special coverage approval name" - creates it if necessary
    • getIn222_SpecialCoverageApprovalName

      Returns IN2-22: "Special coverage approval name" - creates it if necessary
    • getSpecialCoverageApprovalTitle

      Returns IN2-23: "Special coverage approval title" - creates it if necessary
    • getIn223_SpecialCoverageApprovalTitle

      Returns IN2-23: "Special coverage approval title" - creates it if necessary
    • getNonCoveredInsuranceCode

      Returns all repetitions of Non-covered insurance code (IN2-24).
    • getIn224_NonCoveredInsuranceCode

      Returns all repetitions of Non-covered insurance code (IN2-24).
    • getNonCoveredInsuranceCodeReps

      Returns a count of the current number of repetitions of Non-covered insurance code (IN2-24). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getNonCoveredInsuranceCode

      public ID getNonCoveredInsuranceCode(int rep)
      Returns a specific repetition of IN2-24: "Non-covered insurance code" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getIn224_NonCoveredInsuranceCode

      Returns a specific repetition of IN2-24: "Non-covered insurance code" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getIn224_NonCoveredInsuranceCodeReps

      Returns a count of the current number of repetitions of Non-covered insurance code (IN2-24). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertNonCoveredInsuranceCode

      Inserts a repetition of IN2-24: "Non-covered insurance 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)
    • insertIn224_NonCoveredInsuranceCode

      Inserts a repetition of IN2-24: "Non-covered insurance 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)
    • removeNonCoveredInsuranceCode

      Removes a repetition of IN2-24: "Non-covered insurance 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)
    • removeIn224_NonCoveredInsuranceCode

      Removes a repetition of IN2-24: "Non-covered insurance 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)
    • getPayorID

      public ST getPayorID()
      Returns IN2-25: "Payor ID" - creates it if necessary
    • getIn225_PayorID

      public ST getIn225_PayorID()
      Returns IN2-25: "Payor ID" - creates it if necessary
    • getPayorSubscriberID

      Returns IN2-26: "Payor subscriber ID" - creates it if necessary
    • getIn226_PayorSubscriberID

      Returns IN2-26: "Payor subscriber ID" - creates it if necessary
    • getEligibilitySource

      Returns IN2-27: "Eligibility source" - creates it if necessary
    • getIn227_EligibilitySource

      Returns IN2-27: "Eligibility source" - creates it if necessary
    • getRoomCoverageTypeAmount

      Returns all repetitions of Room coverage type / amount (IN2-28).
    • getIn228_RoomCoverageTypeAmount

      Returns all repetitions of Room coverage type / amount (IN2-28).
    • getRoomCoverageTypeAmountReps

      Returns a count of the current number of repetitions of Room coverage type / amount (IN2-28). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getRoomCoverageTypeAmount

      Returns a specific repetition of IN2-28: "Room coverage type / amount" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getIn228_RoomCoverageTypeAmount

      Returns a specific repetition of IN2-28: "Room coverage type / amount" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getIn228_RoomCoverageTypeAmountReps

      Returns a count of the current number of repetitions of Room coverage type / amount (IN2-28). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertRoomCoverageTypeAmount

      Inserts a repetition of IN2-28: "Room coverage type / 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)
    • insertIn228_RoomCoverageTypeAmount

      Inserts a repetition of IN2-28: "Room coverage type / 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)
    • removeRoomCoverageTypeAmount

      Removes a repetition of IN2-28: "Room coverage type / 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)
    • removeIn228_RoomCoverageTypeAmount

      Removes a repetition of IN2-28: "Room coverage type / 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)
    • getPolicyTypeAmount

      Returns all repetitions of Policy type / amount (IN2-29).
    • getIn229_PolicyTypeAmount

      Returns all repetitions of Policy type / amount (IN2-29).
    • getPolicyTypeAmountReps

      Returns a count of the current number of repetitions of Policy type / amount (IN2-29). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getPolicyTypeAmount

      public CM_PTA getPolicyTypeAmount(int rep)
      Returns a specific repetition of IN2-29: "Policy type / amount" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getIn229_PolicyTypeAmount

      Returns a specific repetition of IN2-29: "Policy type / amount" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getIn229_PolicyTypeAmountReps

      Returns a count of the current number of repetitions of Policy type / amount (IN2-29). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertPolicyTypeAmount

      public CM_PTA insertPolicyTypeAmount(int rep) throws HL7Exception
      Inserts a repetition of IN2-29: "Policy type / 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)
    • insertIn229_PolicyTypeAmount

      Inserts a repetition of IN2-29: "Policy type / 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)
    • removePolicyTypeAmount

      public CM_PTA removePolicyTypeAmount(int rep) throws HL7Exception
      Removes a repetition of IN2-29: "Policy type / 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)
    • removeIn229_PolicyTypeAmount

      Removes a repetition of IN2-29: "Policy type / 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)
    • getDailyDeductible

      Returns IN2-30: "Daily deductible" - creates it if necessary
    • getIn230_DailyDeductible

      Returns IN2-30: "Daily deductible" - creates it if necessary
    • createNewTypeWithoutReflection

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