Package hdi.model
Class ServiceLine
java.lang.Object
hdi.model.ServiceLine
- All Implemented Interfaces:
hdi.edi.edient.EdiEntity
,ProviderHolder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDiag
(hdi.codeent.CodeEntity claimDiag, int i) void
addFixedFormatRecord
(String record) void
addRemarkCode
(String remarkCode) adjudications
(List<LineAdjudication> adjudications) adjustedRepricedReferenceNumber
(String adjustedRepricedReferenceNumber) adjustments
(List<Adjustment> adjustments) List
<hdi.codeent.CodeEntity> attachments
(List<Attachment> attachments) beginTherapyDate
(LocalDate beginTherapyDate) chargeAmount
(BigDecimal chargeAmount) boolean
containsCodeEntity
(hdi.codeent.CodeEntity codeEntity) copayStatusCode
(String copayStatusCode) static ServiceLine
createInstLine
(String revenueCode, BigDecimal chargeAmt, BigDecimal quantity) Creates an institutional service line.static ServiceLine
createProfLine
(String procedureCode, BigDecimal chargeAmt, BigDecimal quantity, LocalDate serviceDate, List<Integer> diagPointers) Creates a professional service line.diagPointers
(List<Integer> diagPointers) hdi.model.ServiceLine.PointersHolder
List
<hdi.codeent.CodeEntity> diags()
hdi.codeent.CodeEntity
drug()
drug
(hdi.codeent.CodeEntity drug) drugQuantity
(BigDecimal drugQuantity) drugUnitType
(UnitType drugUnitType) emergencyIndicator
(String emergencyIndicator) epsdtIndicator
(String epsdtIndicator) facilityTaxAmount
(BigDecimal facilityTaxAmount) familyPlanningIndicator
(String familyPlanningIndicator) fixedFormatRecords
(List<String> fixedFormatRecords) getProvider
(EntityRole entityRole) healthcarePolicyId
(String healthcarePolicyId) int
index()
index
(int index) initialTreatmentDate
(LocalDate initialTreatmentDate) lastSeenDate
(LocalDate lastSeenDate) lastXRayDate
(LocalDate lastXRayDate) lineNote()
nonCoveredAmount
(BigDecimal nonCoveredAmount) oralCavityDesignationCodes
(List<String> oralCavityDesignationCodes) hdi.codeent.CodeEntity
originalDrug
(hdi.codeent.CodeEntity originalDrug) hdi.codeent.CodeEntity
originalProcedure
(hdi.codeent.CodeEntity originalProcedure) hdi.codeent.CodeEntity
originalRevenueCode
(hdi.codeent.CodeEntity originalRevenueCode) originalUnitCount
(BigDecimal originalUnitCount) orthodonticBandingDate
(LocalDate orthodonticBandingDate) paidAmount
(BigDecimal paidAmount) placeOfServiceCode
(String code) placeOfServiceType
(PlaceOfServiceType placeOfServiceType) predeterminationOfBenefitsIdentifier
(String predeterminationOfBenefitsIdentifier) prescriptionDate
(LocalDate prescriptionDate) prescriptionNumber
(String prescriptionNumber) priorAuthorization
(String priorAuthorization) priorPlacementDate
(LocalDate priorPlacementDate) hdi.codeent.CodeEntity
procedure
(hdi.codeent.CodeEntity procedure) prosthesisCrownOrInlayCode
(String prosthesisCrownOrInlayCode) providers
(Set<OrgOrPerson> providers) referralNumber
(String referralNumber) remarkCodes
(List<String> remarkCodes) List
<hdi.codeent.CodeEntity> remarks()
renderingProviderIds
(List<Reference> renderingProviderIds) replacementDate
(LocalDate replacementDate) repricedReferenceNumber
(String repricedReferenceNumber) hdi.codeent.CodeEntity
revenueCode
(hdi.codeent.CodeEntity revenueCode) salesTaxAmount
(BigDecimal salesTaxAmount) serviceDateFrom
(LocalDate serviceDateFrom) hdi.util.DateRange
serviceDateTo
(LocalDate serviceDateTo) serviceIds
(List<Reference> serviceIds) serviceTaxAmount
(BigDecimal serviceTaxAmount) void
setOriginalUnitCount
(BigDecimal quantity) void
setUnitCount
(BigDecimal quantity) Returns line control number (REF*F6) or line index if the line control number was not setsourceLineId
(String sourceLineId) supplementalAmounts
(List<Amount> supplementalAmounts) supplementalQuantities
(List<Quantity> supplementalQuantities) testPerformedDate
(LocalDate testPerformedDate) thirdPartyNote
(String thirdPartyNote) toothInfos
(List<ToothInfo> toothInfos) toString()
treatmentCompletionDate
(LocalDate treatmentCompletionDate) treatmentStartDate
(LocalDate treatmentStartDate) unitCount
(BigDecimal unitCount) int
unitType()
-
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 codechargeAmt
-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
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
-
unitCount
-
unitCountAsInt
public int unitCountAsInt() -
setUnitCount
-
setOriginalUnitCount
-
providers
-
serviceDateTo
-
serviceDates
public hdi.util.DateRange serviceDates() -
serviceCode
-
placeOfServiceCode
-
addFixedFormatRecord
-
addRemarkCode
-
containsCodeEntity
public boolean containsCodeEntity(hdi.codeent.CodeEntity codeEntity) -
addDiag
public void addDiag(hdi.codeent.CodeEntity claimDiag, int i) -
getProvider
- Specified by:
getProvider
in interfaceProviderHolder
-
allCodeEntities
-
getTotalAdjustmentAmount
-
getAllowedAmount
-
adjustments
-
adjudications
-
supplementalAmounts
-
supplementalQuantities
-
attachments
-
remarks
-
remarkCodes
-
serviceIds
-
renderingProviderIds
-
toothInfos
-
diagPointers
-
diags
-
fixedFormatRecords
-
placeOfServiceType
-
placeOfServiceCode
-
emergencyIndicator
-
epsdtIndicator
-
familyPlanningIndicator
-
copayStatusCode
-
oralCavityDesignationCodes
-
prosthesisCrownOrInlayCode
-
predeterminationOfBenefitsIdentifier
-
repricedReferenceNumber
-
adjustedRepricedReferenceNumber
-
priorAuthorization
-
referralNumber
-
healthcarePolicyId
-
chargeAmount
-
nonCoveredAmount
-
salesTaxAmount
-
serviceTaxAmount
-
facilityTaxAmount
-
paidAmount
-
serviceDateFrom
-
prescriptionDate
-
beginTherapyDate
-
lastSeenDate
-
testPerformedDate
-
lastXRayDate
-
initialTreatmentDate
-
priorPlacementDate
-
orthodonticBandingDate
-
replacementDate
-
treatmentStartDate
-
treatmentCompletionDate
-
unitType
-
originalUnitCount
-
drug
public hdi.codeent.CodeEntity drug() -
drugQuantity
-
drugUnitType
-
prescriptionNumber
-
lineNote
-
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
- Returns:
this
.
-
placeOfServiceType
- Returns:
this
.
-
emergencyIndicator
- Returns:
this
.
-
epsdtIndicator
- Returns:
this
.
-
familyPlanningIndicator
- Returns:
this
.
-
copayStatusCode
- Returns:
this
.
-
oralCavityDesignationCodes
- Returns:
this
.
-
prosthesisCrownOrInlayCode
- Returns:
this
.
-
predeterminationOfBenefitsIdentifier
public ServiceLine predeterminationOfBenefitsIdentifier(String predeterminationOfBenefitsIdentifier) - Returns:
this
.
-
repricedReferenceNumber
- Returns:
this
.
-
adjustedRepricedReferenceNumber
- Returns:
this
.
-
priorAuthorization
- Returns:
this
.
-
referralNumber
- Returns:
this
.
-
healthcarePolicyId
- Returns:
this
.
-
chargeAmount
- Returns:
this
.
-
nonCoveredAmount
- Returns:
this
.
-
salesTaxAmount
- Returns:
this
.
-
serviceTaxAmount
- Returns:
this
.
-
facilityTaxAmount
- Returns:
this
.
-
paidAmount
- Returns:
this
.
-
supplementalAmounts
- Returns:
this
.
-
supplementalQuantities
- Returns:
this
.
-
serviceDateFrom
- Returns:
this
.
-
serviceDateTo
- Returns:
this
.
-
prescriptionDate
- Returns:
this
.
-
beginTherapyDate
- Returns:
this
.
-
lastSeenDate
- Returns:
this
.
-
testPerformedDate
- Returns:
this
.
-
lastXRayDate
- Returns:
this
.
-
initialTreatmentDate
- Returns:
this
.
-
priorPlacementDate
- Returns:
this
.
-
orthodonticBandingDate
- Returns:
this
.
-
replacementDate
- Returns:
this
.
-
treatmentStartDate
- Returns:
this
.
-
treatmentCompletionDate
- Returns:
this
.
-
unitType
- Returns:
this
.
-
unitCount
- Returns:
this
.
-
originalUnitCount
- Returns:
this
.
-
drug
- Returns:
this
.
-
drugQuantity
- Returns:
this
.
-
drugUnitType
- Returns:
this
.
-
prescriptionNumber
- Returns:
this
.
-
lineNote
- Returns:
this
.
-
thirdPartyNote
- Returns:
this
.
-
procedure
- Returns:
this
.
-
revenueCode
- Returns:
this
.
-
originalProcedure
- Returns:
this
.
-
originalRevenueCode
- Returns:
this
.
-
originalDrug
- Returns:
this
.
-
attachments
- Returns:
this
.
-
providers
- Returns:
this
.
-
adjudications
- Returns:
this
.
-
adjustments
- Returns:
this
.
-
fixedFormatRecords
- Returns:
this
.
-
remarkCodes
- Returns:
this
.
-
remarks
- Returns:
this
.
-
serviceIds
- Returns:
this
.
-
renderingProviderIds
- Returns:
this
.
-
toothInfos
- Returns:
this
.
-
diagPointers
- Returns:
this
.
-
diags
- Returns:
this
.
-
toString
-
index
- Returns:
this
.
-