Sei sulla pagina 1di 18

Software Engineering

(Theory)

Assignment # 03

Create data design for Hospital Management System?


Make sure to specify all 5 steps;
• Identify Data structures
• Create data dictionary
• Perform/Show Information Hiding.
• Creation of a library of useful data structures and the
operations
• Select Programming Language
1:
Room Table:
room_no room_type status

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{

private int room_no;


private String room_type:
private String status:

public void setRoom_no(){


this.room_no = value;
}
public int getRoom_no(){
return room_no;
}

public void setRoom_type(){


this.room_type = value;
}

public int getRoom_type(){


return room_type;
}
public void setStatus (){
this.Status = value;
}
public int getStatus(){
return Status;
}
}

public class bill{

private int bill_id;


private int patient_id;
private int doctor_id;
private int bill;

public void setBill_id(){


this.Bill_id = value;
}
public int getBill_id(){
return Bill_id;
}

public void setPatient_id(){


this.Patient_id = value;
}

public int getPatient_id(){


return Patient_id();
}

public void setDoctor_id (){


this.Doctor_id = value;
}
public int getDoctor_id (){
return Doctor_id;
}

public void setBill(){


this.Bill = amount;
}
public int getBill (){
return Bill;
}
}

public class patient{


private int patient_id;
private String name;
private int age;
private int gender;
private int phoneno;
private String disease;
private int doctor_id;

public void setPatient_id(){


this.Patient_id = value;
}

public int getPatient_id(){


return Patient_id();
}

public void setDoctor_id (){


this.Doctor_id = value;
}
public int getDoctor_id (){
return Doctor_id;
}
public void setName(){
this.Name = name;
}
public int getName (){
return Name;
}

public void setAge (){


this.Age = value;
}
public int getAge (){
return Age;
}

public void setGender(){


this.Gender = gender;
}
public int getGender (){
return Gender;
}
public void setPhoneno(){
this.Phoneno = phoneno;
}
public int getPhoneno(){
return Phoneno;
}
public void setDisease(){
this.Disease = value;
}
public int getDisease(){
return Disease;
}

public class doctor{


private int doctor_id;
private String doctorname;
private String dept;

public void setDoctor_id (){


this.Doctor_id = value;
}
public int getDoctor_id (){
return Doctor_id;
}

public void setDoctorname (){


this.Doctorname = value;
}
public int getDoctorname (){
return Doctorname;
}

public void setDept(){


this.Dept = dept;
}
public int getDept(){
return Dept;
}
}

public class lab {


private int lab_no;
private int patient_id;
private int doctor_id;
private int date;

public void setDoctor_id (){


this.Doctor_id = value;
}
public int getDoctor_id (){
return Doctor_id;
}
public void setPatient_id(){
this.Patient_id = value;
}

`public int getPatient_id(){


return Patient_id();
}

public void setLab_no(){


this.Lab_no = value;
}

public int getLab_no(){


return Lab_no();
}

public void setDate(){


this.Date = value;
}

public int getDate(){


return Date();
}
}

4:

Room Table:
public void setRoom_no(){
this.room_no = value;
}
public int getRoom_no(){
return room_no;
}

public void setRoom_type(){


this.room_type = value;
}

public int getRoom_type(){


return room_type;
}

public void setStatus (){


this.Status = value;
}
public int getStatus(){
return Status;
}

Bill Table:
public void setBill_id(){
this.Bill_id = value;
}
public int getBill_id(){
return Bill_id;
}

public void setPatient_id(){


this.Patient_id = value;
}

public int getPatient_id(){


return Patient_id();
}

public void setDoctor_id (){


this.Doctor_id = value;
}
public int getDoctor_id (){
return Doctor_id;
}

public void setBill(){


this.Bill = amount;
}
public int getBill (){
return Bill;
}

Patient Table:
public void setPatient_id(){
this.Patient_id = value;
}

public int getPatient_id(){


return Patient_id();
}

public void setDoctor_id (){


this.Doctor_id = value;
}
public int getDoctor_id (){
return Doctor_id;
}
public void setName(){
this.Name = name;
}
public int getName (){
return Name;
}

public void setAge (){


this.Age = value;
}
public int getAge (){
return Age;
}

public void setGender(){


this.Gender = gender;
}
public int getGender (){
return Gender;
}
public void setPhoneno(){
this.Phoneno = phoneno;
}
public int getPhoneno(){
return Phoneno;
}

public void setDisease(){


this.Disease = value;
}
public int getDisease(){
return Disease;
}

Doctor Table:
public void setDoctor_id (){
this.Doctor_id = value;
}
public int getDoctor_id (){
return Doctor_id;
}

public void setDoctorname (){


this.Doctorname = value;
}
public int getDoctorname (){
return Doctorname;
}

public void setDept(){


this.Dept = dept;
}
public int getDept(){
return Dept;
}

Lab Table:
public void setDoctor_id (){
this.Doctor_id = value;
}
public int getDoctor_id (){
return Doctor_id;
}

public void setPatient_id(){


this.Patient_id = value;
}

`public int getPatient_id(){


return Patient_id();
}

public void setLab_no(){


this.Lab_no = value;
}

public int getLab_no(){


return Lab_no();
}

public void setDate(){


this.Date = value;
}

public int getDate(){


return Date();
}

5:
Selected programming language is Python.

Potrebbero piacerti anche