Package hdi.model

Class ServiceLine

java.lang.Object
hdi.model.ServiceLine
All Implemented Interfaces:
hdi.edi.edient.EdiEntity, ProviderHolder

public class ServiceLine extends Object implements hdi.edi.edient.EdiEntity, ProviderHolder
  • Constructor Details

    • ServiceLine

      public ServiceLine()
  • Method Details

    • createProfLine

      public static ServiceLine createProfLine(String procedureCode, BigDecimal chargeAmt, BigDecimal quantity, LocalDate serviceDate, List<Integer> diagPointers)
      Creates a professional service line.
      Parameters:
      procedureCode - CPT or HCPCS code
      chargeAmt -
      quantity - Quantity or number of units. Unit type defaults to UNIT.
      serviceDate -
      diagPointers -
      Returns:
      ServiceLine
    • createInstLine

      public static ServiceLine createInstLine(String revenueCode, BigDecimal chargeAmt, BigDecimal quantity)
      Creates an institutional service line.
      Parameters:
      revenueCode -
      chargeAmt -
      quantity - Quantity or number of units. Unit type defaults to UNIT.
      Returns:
      ServiceLine
    • sourceLineId

      public String sourceLineId()
      Returns line control number (REF*F6) or line index if the line control number was not set
      Returns:
      line control number or line index
    • lineControlNumber

      public String lineControlNumber()
    • unitCount

      public BigDecimal unitCount()
    • unitCountAsInt

      public int unitCountAsInt()
    • setUnitCount

      public void setUnitCount(BigDecimal quantity)
    • setOriginalUnitCount

      public void setOriginalUnitCount(BigDecimal quantity)
    • providers

      public Set<OrgOrPerson> providers()
    • serviceDateTo

      public LocalDate serviceDateTo()
    • serviceDates

      public hdi.util.DateRange serviceDates()
    • serviceCode

      public String serviceCode()
    • placeOfServiceCode

      public ServiceLine placeOfServiceCode(String code)
    • addFixedFormatRecord

      public void addFixedFormatRecord(String record)
    • addRemarkCode

      public void addRemarkCode(String remarkCode)
    • containsCodeEntity

      public boolean containsCodeEntity(hdi.codeent.CodeEntity codeEntity)
    • addDiag

      public void addDiag(hdi.codeent.CodeEntity claimDiag, int i)
    • getProvider

      public OrgOrPerson getProvider(EntityRole entityRole)
      Specified by:
      getProvider in interface ProviderHolder
    • allCodeEntities

      public List<hdi.codeent.CodeEntity> allCodeEntities()
    • getTotalAdjustmentAmount

      public BigDecimal getTotalAdjustmentAmount()
    • getAllowedAmount

      public BigDecimal getAllowedAmount()
    • adjustments

      public List<Adjustment> adjustments()
    • adjudications

      public List<LineAdjudication> adjudications()
    • supplementalAmounts

      public List<Amount> supplementalAmounts()
    • supplementalQuantities

      public List<Quantity> supplementalQuantities()
    • attachments

      public List<Attachment> attachments()
    • remarks

      public List<hdi.codeent.CodeEntity> remarks()
    • remarkCodes

      public List<String> remarkCodes()
    • serviceIds

      public List<Reference> serviceIds()
    • renderingProviderIds

      public List<Reference> renderingProviderIds()
    • toothInfos

      public List<ToothInfo> toothInfos()
    • diagPointers

      public List<Integer> diagPointers()
    • diags

      public List<hdi.codeent.CodeEntity> diags()
    • fixedFormatRecords

      public List<String> fixedFormatRecords()
    • placeOfServiceType

      public PlaceOfServiceType placeOfServiceType()
    • placeOfServiceCode

      public String placeOfServiceCode()
    • emergencyIndicator

      public String emergencyIndicator()
    • epsdtIndicator

      public String epsdtIndicator()
    • familyPlanningIndicator

      public String familyPlanningIndicator()
    • copayStatusCode

      public String copayStatusCode()
    • oralCavityDesignationCodes

      public List<String> oralCavityDesignationCodes()
    • prosthesisCrownOrInlayCode

      public String prosthesisCrownOrInlayCode()
    • predeterminationOfBenefitsIdentifier

      public String predeterminationOfBenefitsIdentifier()
    • repricedReferenceNumber

      public String repricedReferenceNumber()
    • adjustedRepricedReferenceNumber

      public String adjustedRepricedReferenceNumber()
    • priorAuthorization

      public String priorAuthorization()
    • referralNumber

      public String referralNumber()
    • healthcarePolicyId

      public String healthcarePolicyId()
    • chargeAmount

      public BigDecimal chargeAmount()
    • nonCoveredAmount

      public BigDecimal nonCoveredAmount()
    • salesTaxAmount

      public BigDecimal salesTaxAmount()
    • serviceTaxAmount

      public BigDecimal serviceTaxAmount()
    • facilityTaxAmount

      public BigDecimal facilityTaxAmount()
    • paidAmount

      public BigDecimal paidAmount()
    • serviceDateFrom

      public LocalDate serviceDateFrom()
    • prescriptionDate

      public LocalDate prescriptionDate()
    • beginTherapyDate

      public LocalDate beginTherapyDate()
    • lastSeenDate

      public LocalDate lastSeenDate()
    • testPerformedDate

      public LocalDate testPerformedDate()
    • lastXRayDate

      public LocalDate lastXRayDate()
    • initialTreatmentDate

      public LocalDate initialTreatmentDate()
    • priorPlacementDate

      public LocalDate priorPlacementDate()
    • orthodonticBandingDate

      public LocalDate orthodonticBandingDate()
    • replacementDate

      public LocalDate replacementDate()
    • treatmentStartDate

      public LocalDate treatmentStartDate()
    • treatmentCompletionDate

      public LocalDate treatmentCompletionDate()
    • unitType

      public UnitType unitType()
    • originalUnitCount

      public BigDecimal originalUnitCount()
    • drug

      public hdi.codeent.CodeEntity drug()
    • drugQuantity

      public BigDecimal drugQuantity()
    • drugUnitType

      public UnitType drugUnitType()
    • prescriptionNumber

      public String prescriptionNumber()
    • lineNote

      public String lineNote()
    • thirdPartyNote

      public String thirdPartyNote()
    • procedure

      public hdi.codeent.CodeEntity procedure()
    • revenueCode

      public hdi.codeent.CodeEntity revenueCode()
    • originalProcedure

      public hdi.codeent.CodeEntity originalProcedure()
    • originalRevenueCode

      public hdi.codeent.CodeEntity originalRevenueCode()
    • originalDrug

      public hdi.codeent.CodeEntity originalDrug()
    • index

      public int index()
    • diagPointersHolder

      public hdi.model.ServiceLine.PointersHolder diagPointersHolder()
    • sourceLineId

      public ServiceLine sourceLineId(String sourceLineId)
      Returns:
      this.
    • placeOfServiceType

      public ServiceLine placeOfServiceType(PlaceOfServiceType placeOfServiceType)
      Returns:
      this.
    • emergencyIndicator

      public ServiceLine emergencyIndicator(String emergencyIndicator)
      Returns:
      this.
    • epsdtIndicator

      public ServiceLine epsdtIndicator(String epsdtIndicator)
      Returns:
      this.
    • familyPlanningIndicator

      public ServiceLine familyPlanningIndicator(String familyPlanningIndicator)
      Returns:
      this.
    • copayStatusCode

      public ServiceLine copayStatusCode(String copayStatusCode)
      Returns:
      this.
    • oralCavityDesignationCodes

      public ServiceLine oralCavityDesignationCodes(List<String> oralCavityDesignationCodes)
      Returns:
      this.
    • prosthesisCrownOrInlayCode

      public ServiceLine prosthesisCrownOrInlayCode(String prosthesisCrownOrInlayCode)
      Returns:
      this.
    • predeterminationOfBenefitsIdentifier

      public ServiceLine predeterminationOfBenefitsIdentifier(String predeterminationOfBenefitsIdentifier)
      Returns:
      this.
    • repricedReferenceNumber

      public ServiceLine repricedReferenceNumber(String repricedReferenceNumber)
      Returns:
      this.
    • adjustedRepricedReferenceNumber

      public ServiceLine adjustedRepricedReferenceNumber(String adjustedRepricedReferenceNumber)
      Returns:
      this.
    • priorAuthorization

      public ServiceLine priorAuthorization(String priorAuthorization)
      Returns:
      this.
    • referralNumber

      public ServiceLine referralNumber(String referralNumber)
      Returns:
      this.
    • healthcarePolicyId

      public ServiceLine healthcarePolicyId(String healthcarePolicyId)
      Returns:
      this.
    • chargeAmount

      public ServiceLine chargeAmount(BigDecimal chargeAmount)
      Returns:
      this.
    • nonCoveredAmount

      public ServiceLine nonCoveredAmount(BigDecimal nonCoveredAmount)
      Returns:
      this.
    • salesTaxAmount

      public ServiceLine salesTaxAmount(BigDecimal salesTaxAmount)
      Returns:
      this.
    • serviceTaxAmount

      public ServiceLine serviceTaxAmount(BigDecimal serviceTaxAmount)
      Returns:
      this.
    • facilityTaxAmount

      public ServiceLine facilityTaxAmount(BigDecimal facilityTaxAmount)
      Returns:
      this.
    • paidAmount

      public ServiceLine paidAmount(BigDecimal paidAmount)
      Returns:
      this.
    • supplementalAmounts

      public ServiceLine supplementalAmounts(List<Amount> supplementalAmounts)
      Returns:
      this.
    • supplementalQuantities

      public ServiceLine supplementalQuantities(List<Quantity> supplementalQuantities)
      Returns:
      this.
    • serviceDateFrom

      public ServiceLine serviceDateFrom(LocalDate serviceDateFrom)
      Returns:
      this.
    • serviceDateTo

      public ServiceLine serviceDateTo(LocalDate serviceDateTo)
      Returns:
      this.
    • prescriptionDate

      public ServiceLine prescriptionDate(LocalDate prescriptionDate)
      Returns:
      this.
    • beginTherapyDate

      public ServiceLine beginTherapyDate(LocalDate beginTherapyDate)
      Returns:
      this.
    • lastSeenDate

      public ServiceLine lastSeenDate(LocalDate lastSeenDate)
      Returns:
      this.
    • testPerformedDate

      public ServiceLine testPerformedDate(LocalDate testPerformedDate)
      Returns:
      this.
    • lastXRayDate

      public ServiceLine lastXRayDate(LocalDate lastXRayDate)
      Returns:
      this.
    • initialTreatmentDate

      public ServiceLine initialTreatmentDate(LocalDate initialTreatmentDate)
      Returns:
      this.
    • priorPlacementDate

      public ServiceLine priorPlacementDate(LocalDate priorPlacementDate)
      Returns:
      this.
    • orthodonticBandingDate

      public ServiceLine orthodonticBandingDate(LocalDate orthodonticBandingDate)
      Returns:
      this.
    • replacementDate

      public ServiceLine replacementDate(LocalDate replacementDate)
      Returns:
      this.
    • treatmentStartDate

      public ServiceLine treatmentStartDate(LocalDate treatmentStartDate)
      Returns:
      this.
    • treatmentCompletionDate

      public ServiceLine treatmentCompletionDate(LocalDate treatmentCompletionDate)
      Returns:
      this.
    • unitType

      public ServiceLine unitType(UnitType unitType)
      Returns:
      this.
    • unitCount

      public ServiceLine unitCount(BigDecimal unitCount)
      Returns:
      this.
    • originalUnitCount

      public ServiceLine originalUnitCount(BigDecimal originalUnitCount)
      Returns:
      this.
    • drug

      public ServiceLine drug(hdi.codeent.CodeEntity drug)
      Returns:
      this.
    • drugQuantity

      public ServiceLine drugQuantity(BigDecimal drugQuantity)
      Returns:
      this.
    • drugUnitType

      public ServiceLine drugUnitType(UnitType drugUnitType)
      Returns:
      this.
    • prescriptionNumber

      public ServiceLine prescriptionNumber(String prescriptionNumber)
      Returns:
      this.
    • lineNote

      public ServiceLine lineNote(String lineNote)
      Returns:
      this.
    • thirdPartyNote

      public ServiceLine thirdPartyNote(String thirdPartyNote)
      Returns:
      this.
    • procedure

      public ServiceLine procedure(hdi.codeent.CodeEntity procedure)
      Returns:
      this.
    • revenueCode

      public ServiceLine revenueCode(hdi.codeent.CodeEntity revenueCode)
      Returns:
      this.
    • originalProcedure

      public ServiceLine originalProcedure(hdi.codeent.CodeEntity originalProcedure)
      Returns:
      this.
    • originalRevenueCode

      public ServiceLine originalRevenueCode(hdi.codeent.CodeEntity originalRevenueCode)
      Returns:
      this.
    • originalDrug

      public ServiceLine originalDrug(hdi.codeent.CodeEntity originalDrug)
      Returns:
      this.
    • attachments

      public ServiceLine attachments(List<Attachment> attachments)
      Returns:
      this.
    • providers

      public ServiceLine providers(Set<OrgOrPerson> providers)
      Returns:
      this.
    • adjudications

      public ServiceLine adjudications(List<LineAdjudication> adjudications)
      Returns:
      this.
    • adjustments

      public ServiceLine adjustments(List<Adjustment> adjustments)
      Returns:
      this.
    • fixedFormatRecords

      public ServiceLine fixedFormatRecords(List<String> fixedFormatRecords)
      Returns:
      this.
    • remarkCodes

      public ServiceLine remarkCodes(List<String> remarkCodes)
      Returns:
      this.
    • remarks

      public ServiceLine remarks(List<hdi.codeent.CodeEntity> remarks)
      Returns:
      this.
    • serviceIds

      public ServiceLine serviceIds(List<Reference> serviceIds)
      Returns:
      this.
    • renderingProviderIds

      public ServiceLine renderingProviderIds(List<Reference> renderingProviderIds)
      Returns:
      this.
    • toothInfos

      public ServiceLine toothInfos(List<ToothInfo> toothInfos)
      Returns:
      this.
    • diagPointers

      public ServiceLine diagPointers(List<Integer> diagPointers)
      Returns:
      this.
    • diags

      public ServiceLine diags(List<hdi.codeent.CodeEntity> diags)
      Returns:
      this.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • index

      public ServiceLine index(int index)
      Returns:
      this.