This commit is contained in:
Olu Amey
2020-12-07 13:49:51 -05:00
parent ad9a72789c
commit f5cfe86c3e
2 changed files with 11 additions and 7 deletions
+3 -7
View File
@@ -37,7 +37,7 @@
<img src="./../../assets/imgs/avatar.svg">
</ion-avatar>
<ion-label>
<h2 style="font-weight: bold;color: #8e54e9;">{{type.appt}} {{type.gender}} , {{type.age}} yrs</h2>
<h3 style="font-weight: bold;color: #8e54e9;">{{type.appt}} {{type.gender}} , {{type.age}} yrs</h3>
<h3>{{type.firstname}} {{type.lastname}}</h3>
<h3>{{type.reason}}</h3>
</ion-label>
@@ -51,14 +51,10 @@
<h3 style="font-weight: bold;">Recent Consult(s)</h3>
</ion-list-header>
<ion-item *ngFor="let type of cardData" (click)="goPatient(type)">
<ion-avatar slot="start">
<img src="./../../assets/imgs/avatar.svg">
</ion-avatar>
<ion-item *ngFor="let type of cardData" (click)="goSelectPatient(type)">
<ion-label>
<h3 style="font-weight: bold;color: #8e54e9;">{{type.appt}} {{type.gender}} , {{type.age}} yrs</h3>
<h2>{{type.firstname}} {{type.lastname}}</h2>
<h3>{{type.reason}}</h3>
<p>{{type.appt}} {{type.gender}} , {{type.age}} yrs</p>
</ion-label>
</ion-item>
+8
View File
@@ -111,5 +111,13 @@ goPracticepatients(){
this.router.navigateByUrl('/merms-wallet');
}
goSelectPatient(patientData: any) {
let navigationExtras: NavigationExtras = {
queryParams: {
special: JSON.stringify(patientData)
}
};
this.router.navigateByUrl('/merms-selectedpatient',navigationExtras);
}
}