[de9008]: / contract / lib / Patient.js

Download this file

33 lines (25 with data), 648 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
'use strict';
class Patient {
/**
*
* Patient
*
* Constructor for a Patient object. *
*
* @param args.adharNo - the adhar number of the patient
* @param args.name - name of patient
* @param args.age - age of patient
* @param args.phNo - phone number of patient
* @returns - patient object
*/
constructor(patientId, adharNo, name, age, phNo) {
this.patientId = patientId;
this.adharNo = adharNo;
this.name = name;
this.age = age;
this.phNo = phNo;
this.type = 'patient';
return this;
}
}
module.exports = Patient;