fix
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
<ion-content fullscreen>
|
<ion-content fullscreen>
|
||||||
<ion-grid>
|
<ion-grid style="scroll-padding-bottom: 0px;">
|
||||||
<ion-row>
|
<ion-row>
|
||||||
<ion-col>
|
<ion-col>
|
||||||
<div>
|
<div>
|
||||||
<h4>{{ welcomeName }}</h4>
|
<h4 style="font-weight: bold;">{{ welcomeName }}</h4>
|
||||||
</div>
|
</div>
|
||||||
</ion-col>
|
</ion-col>
|
||||||
<ion-col>
|
<ion-col>
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
<ion-list>
|
<ion-list>
|
||||||
<ion-list-header>
|
<ion-list-header>
|
||||||
Pending Consults
|
<h3 style="font-weight: bold;">Pending Consult(s)</h3>
|
||||||
</ion-list-header>
|
</ion-list-header>
|
||||||
|
|
||||||
<ion-item *ngFor="let type of pendingEncounterData" (click)="goPatient(type)">
|
<ion-item *ngFor="let type of pendingEncounterData" (click)="goPatient(type)">
|
||||||
@@ -37,9 +37,9 @@
|
|||||||
<img src="./../../assets/imgs/avatar.svg">
|
<img src="./../../assets/imgs/avatar.svg">
|
||||||
</ion-avatar>
|
</ion-avatar>
|
||||||
<ion-label>
|
<ion-label>
|
||||||
<h2>{{type.firstname}} {{type.lastname}}</h2>
|
<h2 style="font-weight: bold;color: #8e54e9;">{{type.appt}} {{type.gender}} , {{type.age}} yrs</h2>
|
||||||
|
<h3>{{type.firstname}} {{type.lastname}}</h3>
|
||||||
<h3>{{type.reason}}</h3>
|
<h3>{{type.reason}}</h3>
|
||||||
<p>{{type.appt}} {{type.gender}} , {{type.age}} yrs</p>
|
|
||||||
</ion-label>
|
</ion-label>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
|
|
||||||
@@ -48,7 +48,7 @@
|
|||||||
|
|
||||||
<ion-list>
|
<ion-list>
|
||||||
<ion-list-header>
|
<ion-list-header>
|
||||||
Recent Consults
|
<h3 style="font-weight: bold;">Recent Consult(s)</h3>
|
||||||
</ion-list-header>
|
</ion-list-header>
|
||||||
|
|
||||||
<ion-item *ngFor="let type of cardData" (click)="goPatient(type)">
|
<ion-item *ngFor="let type of cardData" (click)="goPatient(type)">
|
||||||
|
|||||||
@@ -51,7 +51,12 @@ export class MermsMypatientsPage implements OnInit {
|
|||||||
|
|
||||||
}
|
}
|
||||||
goSelectPatient(patientData: any) {
|
goSelectPatient(patientData: any) {
|
||||||
this.router.navigateByUrl('/merms-selectedpatient');
|
let navigationExtras: NavigationExtras = {
|
||||||
|
queryParams: {
|
||||||
|
special: JSON.stringify(patientData)
|
||||||
|
}
|
||||||
|
};
|
||||||
|
this.router.navigateByUrl('/merms-selectedpatient',navigationExtras);
|
||||||
}
|
}
|
||||||
|
|
||||||
goAddPatient() {
|
goAddPatient() {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<ion-col size="2" class="navigation">
|
<ion-col size="2" class="navigation">
|
||||||
<ion-back-button text="" (click)="goBack()"></ion-back-button>
|
<ion-back-button text="" (click)="goBack()"></ion-back-button>
|
||||||
</ion-col>
|
</ion-col>
|
||||||
<ion-col size="8" class="page-title">Paient Name Here</ion-col>
|
<ion-col size="8" class="page-title">{{patient_name}}</ion-col>
|
||||||
</ion-row>
|
</ion-row>
|
||||||
</ion-grid>
|
</ion-grid>
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,10 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
import { Router, NavigationExtras, ActivatedRoute } from '@angular/router'
|
||||||
|
import {
|
||||||
|
NavController,
|
||||||
|
AlertController,
|
||||||
|
LoadingController,
|
||||||
|
} from '@ionic/angular'
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-merms-selectedpatient',
|
selector: 'app-merms-selectedpatient',
|
||||||
@@ -7,11 +13,39 @@ import { Component, OnInit } from '@angular/core';
|
|||||||
})
|
})
|
||||||
export class MermsSelectedpatientPage implements OnInit {
|
export class MermsSelectedpatientPage implements OnInit {
|
||||||
|
|
||||||
constructor() { }
|
patient_name: string = "Selected Patient";
|
||||||
|
patientData: any;
|
||||||
|
reason: string;
|
||||||
|
patient_id : number = 0;
|
||||||
|
lastname : string ='';
|
||||||
|
firstname : string ='';
|
||||||
|
appt : string ='';
|
||||||
|
gender : string ='';
|
||||||
|
age : number =0;
|
||||||
|
|
||||||
|
constructor(public navCtrl: NavController, private router: Router, private route: ActivatedRoute) {
|
||||||
|
console.log('-----------------------------xxxx-----------------------------');
|
||||||
|
console.log(this.router.getCurrentNavigation().extras.queryParams);
|
||||||
|
this.patientData = this.router.getCurrentNavigation().extras.queryParams;
|
||||||
|
|
||||||
|
console.log(this.patientData.special);
|
||||||
|
var params = JSON.parse(this.patientData.special);
|
||||||
|
this.patient_name = params.firstname + ' ' + params.lastname;
|
||||||
|
this.reason = params.reason;
|
||||||
|
|
||||||
|
this.age = params.age;
|
||||||
|
this.gender = params.gender;
|
||||||
|
this.appt = params.appt;
|
||||||
|
this.patient_id = params.id;
|
||||||
|
this.firstname = params.firstname;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
}
|
}
|
||||||
goBack(){
|
goBack(){
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user