|
@@ -209,6 +209,7 @@ export class PatientSearchComponent implements OnInit {
|
209
|
209
|
patientName: ['', [Validators.required]],
|
210
|
210
|
gender: [null],
|
211
|
211
|
age: [undefined],
|
|
212
|
+ patientCode: ['', [Validators.required]],
|
212
|
213
|
residenceNo: ['', [Validators.required]],
|
213
|
214
|
barCode: ['', [Validators.required]],
|
214
|
215
|
bedNum: [''],
|
|
@@ -238,6 +239,7 @@ export class PatientSearchComponent implements OnInit {
|
238
|
239
|
id: this.validateForm.value.gender
|
239
|
240
|
},
|
240
|
241
|
age: this.validateForm.value.age,
|
|
242
|
+ patientCode: this.validateForm.value.patientCode,
|
241
|
243
|
residenceNo: this.validateForm.value.residenceNo,
|
242
|
244
|
barCode: this.validateForm.value.barCode,
|
243
|
245
|
bedNum: this.validateForm.value.bedNum,
|
|
@@ -265,6 +267,7 @@ export class PatientSearchComponent implements OnInit {
|
265
|
267
|
id: this.validateForm.value.gender
|
266
|
268
|
},
|
267
|
269
|
age: this.validateForm.value.age,
|
|
270
|
+ patientCode: this.validateForm.value.patientCode,
|
268
|
271
|
residenceNo: this.validateForm.value.residenceNo,
|
269
|
272
|
barCode: this.validateForm.value.barCode,
|
270
|
273
|
bedNum: this.validateForm.value.bedNum,
|
|
@@ -326,6 +329,7 @@ export class PatientSearchComponent implements OnInit {
|
326
|
329
|
this.validateForm.controls.gender.setValue(null);
|
327
|
330
|
}
|
328
|
331
|
this.validateForm.controls.age.setValue(data.age);
|
|
332
|
+ this.validateForm.controls.patientCode.setValue(data.patientCode);
|
329
|
333
|
this.validateForm.controls.residenceNo.setValue(data.residenceNo);
|
330
|
334
|
this.validateForm.controls.barCode.setValue(data.barCode);
|
331
|
335
|
this.validateForm.controls.bedNum.setValue(data.bedNum);
|