Summary Table
Categories |
Total Count |
PII |
0 |
URL |
0 |
DNS |
0 |
EKL |
0 |
IP |
0 |
PORT |
0 |
VsID |
0 |
CF |
0 |
AI |
0 |
VPD |
0 |
PL |
0 |
Other |
0 |
File Content
import { Injectable, OnInit } from '@angular/core';
import { BehaviorSubject } from 'rxjs/BehaviorSubject';
import { BillingInfoService } from '../ewv-components/billing-info/billing-info.service';
import { BillingMiscellaneousService } from '../ewv-components/billing-miscellaneous/billing-miscellaneous.service';
import { OhiInfoService } from '../ewv-components/ohi/ohi-info.service';
import { OhiClaimAdjustmentsService } from '../ewv-components/ohi-claim-adjustments/ohi-claim-adjustments.service';
import { OhiLineAdjustmentService } from '../ewv-components/ohi-line-adjustment/ohi-line-adjustment.service';
import { ServiceLinesService } from '../ewv-components/service-lines/service-lines.service';
import { ActivatedRoute } from '@angular/router';
@Injectable()
export class EwvHighlightService {
leftClaimPdiNumber;
rightClaimPdiNumber;
constructor(private billingInfoService: BillingInfoService,
private billingMiscService: BillingMiscellaneousService,
private ohiInfoService: OhiInfoService,
private ohiClaimAdjService: OhiClaimAdjustmentsService,
private ohiLineAdjService: OhiLineAdjustmentService,
private serviceLinesService: ServiceLinesService
) {}
// subscribeToUrl() {
// console.log('subbed');
// this.route.url.subscribe(
// (data) => {
// console.log('url data:', data);
// }
// );
// }
checkIfBothPdiNumbersSame() {
if (this.leftClaimPdiNumber === this.rightClaimPdiNumber) {
// console.log('same pdi loadded');
// this.billingInfoService.samePdiLoaded = true;
// this.billingInfoService.pdiIsSame();
this.billingMiscService.samePdiLoaded = true;
this.ohiInfoService.samePdiLoaded = true;
this.ohiClaimAdjService.samePdiLoaded = true;
this.ohiLineAdjService.samePdiLoaded = true;
this.serviceLinesService.samePdiLoaded = true;
}
}
clearFirstClaimObject() {
this.billingInfoService.firstClaimObject = null;
this.billingMiscService.firstClaimObject = null;
this.ohiInfoService.firstClaimObject = null;
this.ohiClaimAdjService.firstClaimObject = null;
this.ohiLineAdjService.firstClaimObject = null;
this.serviceLinesService.firstClaimObject = null;
// console.log(this.billingInfoService.firstClaimObject);
// console.log(this.billingMiscService.firstClaimObject);
// console.log(this.ohiInfoService.firstClaimObject);
// console.log(this.ohiClaimAdjService.firstClaimObject);
// console.log(this.ohiLineAdjService.firstClaimObject);
// console.log('FIRST SERVICE', this.serviceLinesService.firstClaimObject);
}
clearSecondClaimObject() {
this.billingInfoService.clearCompareInstance();
// this.billingInfoService.secondClaimObject = null;
// this.billingMiscService.secondClaimObject = null;
// this.ohiInfoService.secondClaimObject = null;
// this.ohiClaimAdjService.secondClaimObject = null;
// this.ohiLineAdjService.secondClaimObject = null;
// this.serviceLinesService.secondClaimObject = null;
// console.log(this.billingInfoService.secondClaimObject);
// console.log(this.billingMiscService.secondClaimObject);
// console.log(this.ohiInfoService.secondClaimObject);
// console.log(this.ohiClaimAdjService.secondClaimObject);
// console.log(this.ohiLineAdjService.secondClaimObject);
// console.log('SECOND SERVICE', this.serviceLinesService.secondClaimObject);
}
clearBothClaims() {
this.billingInfoService.retrievedButtonClicked();
// console.log('all claims cleared');
// this.billingInfoService.firstClaimObject = null;
// this.billingMiscService.firstClaimObject = null;
// this.ohiInfoService.firstClaimObject = null;
// this.ohiClaimAdjService.firstClaimObject = null;
// this.ohiLineAdjService.firstClaimObject = null;
// this.serviceLinesService.firstClaimObject = null;
// this.billingInfoService.secondClaimObject = null;
// this.billingMiscService.secondClaimObject = null;
// this.ohiInfoService.secondClaimObject = null;
// this.ohiClaimAdjService.secondClaimObject = null;
// this.ohiLineAdjService.secondClaimObject = null;
// this.serviceLinesService.secondClaimObject = null;
// console.log(this.billingInfoService.firstClaimObject);
// console.log(this.billingMiscService.firstClaimObject);
// console.log(this.ohiInfoService.firstClaimObject);
// console.log(this.ohiClaimAdjService.firstClaimObject);
// console.log(this.ohiLineAdjService.firstClaimObject);
// console.log('SERV LINE FIRST', this.serviceLinesService.firstClaimObject);
// console.log('******************************************');
// console.log(this.billingInfoService.secondClaimObject);
// console.log(this.billingMiscService.secondClaimObject);
// console.log(this.ohiInfoService.secondClaimObject);
// console.log(this.ohiClaimAdjService.secondClaimObject);
// console.log(this.ohiLineAdjService.secondClaimObject);
// console.log('SERV LINE SECOND', this.serviceLinesService.secondClaimObject);
}
// retrieveWasClicked() {
// this.billingInfoService.retrieveClicked();
// }
// watchUrl() {
// this.route..subscribe(
// (data) => {
// console.log('url data:', data);
// }
// );
// }
}