Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
(Theory)
Assignment # 03
Bill Table:
bill_id patient_id bill doctor_id insurance_no
Patient Table:
patient_id name age phoneno disease doctor_id gender
Doctor Table:
doctor_id doctorname dept
Lab Table:
lab_no patient_id doctor_id date
2:
Room Table:
Fields Data Type Relationships
room_no int(50) Primary Key
room_type String(10) Not Null
status String(10) Not Null
Bill Table:
Fields Data Type Relationships
bill_id int(50) Primary Key
patient_id int(10) Foreign Key
doctor_id int(10) Foreign Key
bill Int(15) Not Null
Patient Table:
Fields Data Type Relationships
patient_id int(10) Primary Key
name String(20) Not Null
age int(21) Not Null
gender String(10) Not null
phoneno Int(15) Not Null
disease String(20) Not Null
doctor_id int(10) Not Null
Doctor Table:
Fields Data Type Relationships
doctor_id int(10) Primary Key
doctorname String(15) Not Null
dept String(15) Not Null
Lab Table:
Fields Data Type Relationships
lab_no int(10) Primary Key
patient_id int(10) Not Null
doctor_id int(10) Foreign Key
date Int(10) Not Null
3:
public class room{
4:
Room Table:
public void setRoom_no(){
this.room_no = value;
}
public int getRoom_no(){
return room_no;
}
Bill Table:
public void setBill_id(){
this.Bill_id = value;
}
public int getBill_id(){
return Bill_id;
}
Patient Table:
public void setPatient_id(){
this.Patient_id = value;
}
Doctor Table:
public void setDoctor_id (){
this.Doctor_id = value;
}
public int getDoctor_id (){
return Doctor_id;
}
Lab Table:
public void setDoctor_id (){
this.Doctor_id = value;
}
public int getDoctor_id (){
return Doctor_id;
}
5:
Selected programming language is Python.