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