fix
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { Component, OnInit, Input } from '@angular/core';
|
||||
import { ModalController } from '@ionic/angular';
|
||||
import { MermsServiceProviderService } from './../../providers/merms-service-provider.service';
|
||||
import { MermsSessionService } from './../../merms-session.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-consult-billing',
|
||||
@@ -8,10 +10,62 @@ import { ModalController } from '@ionic/angular';
|
||||
})
|
||||
export class ConsultBillingPage implements OnInit {
|
||||
|
||||
constructor(private modalCtrl:ModalController) { }
|
||||
|
||||
@Input() patient_name: string;
|
||||
@Input() patient_id: number;
|
||||
@Input() patientData: any;
|
||||
|
||||
constructor(private modalCtrl: ModalController,
|
||||
private mermsServiceProviderService: MermsServiceProviderService,
|
||||
private mermsSessionService: MermsSessionService
|
||||
) {
|
||||
this.getPriceData();
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
|
||||
priceData: any;
|
||||
pendingEncounterData: any;
|
||||
|
||||
currentProviderData: {
|
||||
sessionid: string,
|
||||
member_id: number,
|
||||
card_count: number
|
||||
card_type: number
|
||||
};
|
||||
|
||||
|
||||
getPriceData() {
|
||||
console.log('MermsServiceProviderService::getPriceData() ######## @@@@ ########');
|
||||
this.currentProviderData = {
|
||||
sessionid: this.mermsSessionService.session,
|
||||
member_id: this.mermsSessionService.member_id,
|
||||
card_count: 100,
|
||||
card_type: 22000
|
||||
};
|
||||
|
||||
try {
|
||||
this.mermsServiceProviderService.genericGetService('provider/recentencounter', this.currentProviderData).subscribe(priceData => {
|
||||
console.log("card data result 22k: ", priceData[0]['payload']);
|
||||
this.priceData = priceData[0]['payload'];
|
||||
if (priceData.hasOwnProperty('payload') && Array.isArray(priceData['payload'])) {
|
||||
this.priceData = priceData['payload'];
|
||||
console.log("card data result 22k: ", this.priceData);
|
||||
}
|
||||
});
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
}
|
||||
|
||||
|
||||
|
||||
//
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
dismiss() {
|
||||
// using the injected ModalController this page
|
||||
// can "dismiss" itself and optionally pass back data
|
||||
|
||||
Reference in New Issue
Block a user