-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPatient.java
More file actions
51 lines (48 loc) · 1.24 KB
/
Copy pathPatient.java
File metadata and controls
51 lines (48 loc) · 1.24 KB
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
public class Patient {
private String name;
private int age,oxygen_Level;
private float body_Temp;
private int unique_ID;
private int admit_Status = 0;
private int recovery_Time=0;
private Institute my_Institute;
public Patient(String name,int age, int oxygen_Level,float body_Temp) {
this.name = name;
this.age = age;
this.oxygen_Level = oxygen_Level;
this.body_Temp = body_Temp;
}
void setMy_Institute(Institute my_Institute){
this.my_Institute = my_Institute;
}
void setAdmit_Status(int status){
this.admit_Status = status;
}
String getName(){
return name;
}
void setUnique_ID(int unique_ID){
this.unique_ID = unique_ID;
}
void setRecovery_Time(int day){
this.recovery_Time = day;
}
int getAdmit_Status(){
return admit_Status;
}
int getOxygen_Level(){
return oxygen_Level;
}
String getMy_Institute(){
return my_Institute.getName();
}
float getBody_Temp(){
return body_Temp;
}
int getUnique_ID(){
return unique_ID;
}
int getRecovery_Time(){
return recovery_Time;
}
}