Diff of /contract/lib/Patient.js [000000] .. [de9008]

Switch to side-by-side view

--- a
+++ b/contract/lib/Patient.js
@@ -0,0 +1,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;
\ No newline at end of file