Class ServiceLine
java.lang.Object
hdi.model.ServiceLine
- All Implemented Interfaces:
hdi.edi.edient.EdiEntity, ProviderHolder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDiag(hdi.codeent.CodeEntity claimDiag, int i) voidaddFixedFormatRecord(String record) voidaddRemarkCode(String remarkCode) adjudications(List<LineAdjudication> adjudications) adjustedRepricedReferenceNumber(String adjustedRepricedReferenceNumber) adjustments(List<Adjustment> adjustments) List<hdi.codeent.CodeEntity> ambulancePatientCount(Integer ambulancePatientCount) ambulanceTransportInfo(AmbulanceTransportInfo ambulanceTransportInfo) attachments(List<Attachment> attachments) beginTherapyDate(LocalDate beginTherapyDate) certificationRevisionDate(LocalDate certificationRevisionDate) chargeAmount(BigDecimal chargeAmount) cliaNumber(String cliaNumber) conditionsIndicators(List<ConditionsIndicator> conditionsIndicators) booleancontainsCodeEntity(hdi.codeent.CodeEntity codeEntity) contractInfo(ContractInfo contractInfo) copayStatusCode(String copayStatusCode) static ServiceLinecreateInstLine(String revenueCode, BigDecimal chargeAmt, BigDecimal quantity) Creates an institutional service line.static ServiceLinecreateProfLine(String procedureCode, BigDecimal chargeAmt, BigDecimal quantity, LocalDate serviceDate, List<Integer> diagPointers) Creates a professional service line.diagPointers(List<Integer> diagPointers) hdi.model.ServiceLine.PointersHolderList<hdi.codeent.CodeEntity> diags()dmeCertification(DmeCertification dmeCertification) dmeService(DmeService dmeService) hdi.codeent.CodeEntitydrug()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) forms()forms(List<FormResponse> forms) getProvider(EntityRole entityRole) healthcarePolicyId(String healthcarePolicyId) healthcarePolicyIds(List<String> healthcarePolicyIds) immunizationBatchNumber(String immunizationBatchNumber) intindex()index(int index) initialTreatmentDate(LocalDate initialTreatmentDate) lastCertificationDate(LocalDate lastCertificationDate) lastSeenDate(LocalDate lastSeenDate) lastXRayDate(LocalDate lastXRayDate) lineNote()mammographyCertificationNumber(String mammographyCertificationNumber) measurements(List<Measurement> measurements) nonCoveredAmount(BigDecimal nonCoveredAmount) notes()obstetricAdditionalUnitCount(BigDecimal obstetricAdditionalUnits) obstetricAdditionalUnits(BigDecimal obstetricAdditionalUnitCount) oralCavityDesignationCodes(List<String> oralCavityDesignationCodes) hdi.codeent.CodeEntityoriginalDrug(hdi.codeent.CodeEntity originalDrug) hdi.codeent.CodeEntityoriginalProcedure(hdi.codeent.CodeEntity originalProcedure) hdi.codeent.CodeEntityoriginalRevenueCode(hdi.codeent.CodeEntity originalRevenueCode) originalUnitCount(BigDecimal quantity) orthodonticBandingDate(LocalDate orthodonticBandingDate) paidAmount(BigDecimal paidAmount) placeOfServiceCode(String code) placeOfServiceType(PlaceOfServiceType placeOfServiceType) voidpostageClaimedAmount(BigDecimal postageClaimedAmount) predeterminationOfBenefitsIdentifier(String predeterminationOfBenefitsIdentifier) prescriptionDate(LocalDate prescriptionDate) prescriptionNumber(String prescriptionNumber) prescriptionNumberType(ReferenceType prescriptionNumberType) priorAuthorization(String priorAuthorization) priorAuthorizationNumbers(List<String> priorAuthorizationNumbers) priorPlacementDate(LocalDate priorPlacementDate) hdi.codeent.CodeEntityprocedure(hdi.codeent.CodeEntity procedure) prosthesisCrownOrInlayCode(String prosthesisCrownOrInlayCode) providers(LinkedHashSet<OrgOrPerson> providers) purchasedServiceChargeAmount(BigDecimal purchasedServiceChargeAmount) purchasedServiceProviderIdentifier(String purchasedServiceProviderIdentifier) referralNumber(String referralNumber) referralNumbers(List<String> referralNumbers) referringCliaNumber(String referringCliaNumber) remarkCodes(List<String> remarkCodes) List<hdi.codeent.CodeEntity> remarks()renderingProviderIds(List<Reference> renderingProviderIds) replacementDate(LocalDate replacementDate) repricedReferenceNumber(String repricedReferenceNumber) hdi.codeent.CodeEntityrevenueCode(hdi.codeent.CodeEntity revenueCode) salesTaxAmount(BigDecimal salesTaxAmount) serviceDateFrom(LocalDate serviceDateFrom) hdi.util.DateRangeserviceDateTo(LocalDate serviceDateTo) serviceIds(List<Reference> serviceIds) serviceTaxAmount(BigDecimal serviceTaxAmount) shippedDate(LocalDate shippedDate) 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 quantity) intunitType()
-
Field Details
-
LINE_LOOP_837
- See Also:
-
-
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- Charge amountquantity- Quantity or number of units. Unit type defaults to UNIT.serviceDate- Service datediagPointers- diagnosis pointers- Returns:
- ServiceLine
-
createInstLine
public static ServiceLine createInstLine(String revenueCode, BigDecimal chargeAmt, BigDecimal quantity) Creates an institutional service line.- Parameters:
revenueCode- Revenue codechargeAmt- Charge amountquantity- 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() -
unitCount
-
originalUnitCount
-
obstetricAdditionalUnits
-
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:
getProviderin interfaceProviderHolder
-
allCodeEntities
-
getTotalAdjustmentAmount
-
getAllowedAmount
-
obstetricAdditionalUnitCount
-
adjustments
-
adjudications
-
supplementalAmounts
-
supplementalQuantities
-
attachments
-
remarks
-
remarkCodes
-
serviceIds
-
renderingProviderIds
-
toothInfos
-
diagPointers
-
diags
-
fixedFormatRecords
-
measurements
-
forms
-
conditionsIndicators
-
notes
-
chargeAmountOrZero
-
paidAmountOrZero
-
populateDefaults
public void populateDefaults() -
healthcarePolicyIds
-
priorAuthorizationNumbers
-
referralNumbers
-
placeOfServiceType
-
placeOfServiceCode
-
emergencyIndicator
-
epsdtIndicator
-
familyPlanningIndicator
-
copayStatusCode
-
oralCavityDesignationCodes
-
prosthesisCrownOrInlayCode
-
predeterminationOfBenefitsIdentifier
-
repricedReferenceNumber
-
adjustedRepricedReferenceNumber
-
priorAuthorization
-
mammographyCertificationNumber
-
cliaNumber
-
referringCliaNumber
-
immunizationBatchNumber
-
referralNumber
-
healthcarePolicyId
-
chargeAmount
-
nonCoveredAmount
-
salesTaxAmount
-
postageClaimedAmount
-
serviceTaxAmount
-
facilityTaxAmount
-
paidAmount
-
purchasedServiceProviderIdentifier
-
purchasedServiceChargeAmount
-
serviceDateFrom
-
prescriptionDate
-
lastCertificationDate
-
certificationRevisionDate
-
beginTherapyDate
-
lastSeenDate
-
testPerformedDate
-
shippedDate
-
lastXRayDate
-
initialTreatmentDate
-
priorPlacementDate
-
orthodonticBandingDate
-
replacementDate
-
treatmentStartDate
-
treatmentCompletionDate
-
unitType
-
originalUnitCount
-
ambulancePatientCount
-
obstetricAdditionalUnitCount
-
drug
public hdi.codeent.CodeEntity drug() -
drugQuantity
-
drugUnitType
-
prescriptionNumber
-
prescriptionNumberType
-
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() -
dmeService
-
contractInfo
-
ambulanceTransportInfo
-
dmeCertification
-
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.
-
priorAuthorizationNumbers
- Returns:
this.
-
mammographyCertificationNumber
- Returns:
this.
-
cliaNumber
- Returns:
this.
-
referringCliaNumber
- Returns:
this.
-
immunizationBatchNumber
- Returns:
this.
-
referralNumber
- Returns:
this.
-
referralNumbers
- Returns:
this.
-
healthcarePolicyId
- Returns:
this.
-
healthcarePolicyIds
- Returns:
this.
-
chargeAmount
- Returns:
this.
-
nonCoveredAmount
- Returns:
this.
-
salesTaxAmount
- Returns:
this.
-
postageClaimedAmount
- Returns:
this.
-
serviceTaxAmount
- Returns:
this.
-
facilityTaxAmount
- Returns:
this.
-
paidAmount
- Returns:
this.
-
purchasedServiceProviderIdentifier
- Returns:
this.
-
purchasedServiceChargeAmount
- Returns:
this.
-
supplementalAmounts
- Returns:
this.
-
supplementalQuantities
- Returns:
this.
-
serviceDateFrom
- Returns:
this.
-
serviceDateTo
- Returns:
this.
-
prescriptionDate
- Returns:
this.
-
lastCertificationDate
- Returns:
this.
-
certificationRevisionDate
- Returns:
this.
-
beginTherapyDate
- Returns:
this.
-
lastSeenDate
- Returns:
this.
-
testPerformedDate
- Returns:
this.
-
shippedDate
- 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.
-
ambulancePatientCount
- Returns:
this.
-
drug
- Returns:
this.
-
drugQuantity
- Returns:
this.
-
drugUnitType
- Returns:
this.
-
prescriptionNumber
- Returns:
this.
-
prescriptionNumberType
- Returns:
this.
-
lineNote
- Returns:
this.
-
thirdPartyNote
- Returns:
this.
-
notes
- Returns:
this.
-
procedure
- Returns:
this.
-
revenueCode
- Returns:
this.
-
originalProcedure
- Returns:
this.
-
originalRevenueCode
- Returns:
this.
-
originalDrug
- Returns:
this.
-
dmeService
- Returns:
this.
-
attachments
- Returns:
this.
-
contractInfo
- Returns:
this.
-
ambulanceTransportInfo
- Returns:
this.
-
dmeCertification
- Returns:
this.
-
conditionsIndicators
- Returns:
this.
-
measurements
- Returns:
this.
-
providers
- Returns:
this.
-
adjudications
- Returns:
this.
-
adjustments
- Returns:
this.
-
fixedFormatRecords
- Returns:
this.
-
remarkCodes
- Returns:
this.
-
remarks
- Returns:
this.
-
forms
- Returns:
this.
-
serviceIds
- Returns:
this.
-
renderingProviderIds
- Returns:
this.
-
toothInfos
- Returns:
this.
-
diagPointers
- Returns:
this.
-
diags
- Returns:
this.
-
toString
-
index
- Returns:
this.
-