-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpatientModel.java
73 lines (51 loc) · 1.86 KB
/
patientModel.java
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
package model;
import com.jfoenix.controls.datamodels.treetable.RecursiveTreeObject;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
public class patientModel extends RecursiveTreeObject<patientModel>{
public StringProperty patientName,Age,Date,doctorName,diagnosis,treatment;
public patientModel(String patientName,String doctorName,String Age,String Date,String diagnosis,String treatment) {
this.patientName=new SimpleStringProperty(patientName);
this.Age=new SimpleStringProperty(Age);
this.Date=new SimpleStringProperty(Date);
this.diagnosis=new SimpleStringProperty(diagnosis);
this.treatment=new SimpleStringProperty(treatment);
this.doctorName=new SimpleStringProperty(doctorName);
}
public void setAge(String Age) {
this.Age=new SimpleStringProperty(Age);
}
public void setDate(String Date) {
this.Date=new SimpleStringProperty(Date);
}
public void setDiagnosis(String diagnosis) {
this.diagnosis=new SimpleStringProperty(diagnosis);
}
public void setDoctorName(String doctorName) {
this.doctorName=new SimpleStringProperty(doctorName);
}
public void setPatientName(String patientName) {
this.patientName=new SimpleStringProperty(patientName);
}
public void setTreatment(String treatment) {
this.treatment=new SimpleStringProperty(treatment);
}
public String getAge() {
return Age.get();
}
public String getDate() {
return Date.get();
}
public String getDiagnosis() {
return diagnosis.get();
}
public String getDoctorName() {
return doctorName.get();
}
public String getPatientName() {
return patientName.get();
}
public String getTreatment() {
return treatment.get();
}
}