Uml Diagrams Usecase Diagram:-: Registration
Uml Diagrams Usecase Diagram:-: Registration
Usecase diagram:-
Registration
Reception
Goto doctor
Take recept
doctor patient
pharmacist
laboratorist
Discharge summary
Collaboration diagram:-
1:Takes Appointment
10:Takes Appointment from doctor
P1 : Patient R1 : Receptionist
4:confirms appointment
9:Ask for payment
7:Take medicins
3:Doctor available
5:Consult doctor
8:paitent ok
D1 : Doctor N1 : Nurse
6:Assist doctor
Class diagram:-
Person
+name_string
Hospital
+age_number
+date of birth_number +name_string
+address_string +* +1
+address_string
+phone num_number +phon_number
+gender_string
+available time()
+date of join() +states()
+date of discharge()
+1
+*
Patient
+gender_string Staff
+prescription_string
-allergies_string +joined: date
+qulification_string
+in_time() +certification_string
+out_time() +languages_string
+work dutes()
+hoil days()
surgen
+opr_type
+free_number
+block_string
+opr_time()
+week period()
Deployment diagram:-
desktop Client
Printer
Database Server
Component diagram:-
Statechart Diagram:
Enter Hospital
Takes Appointment
Undergo Diagnosis
not cured
Takes Treatment
gets cured
Activity diagram:-
Sequence diagram:-
1 : login()
2 : view appointment()
3 : registration()
4 : send request()
6 : go to laboratory()
7 : take medicins()
8 : paitent ok()
10 : discharge paitent()
OUTPUT
HOME PAGE:
Form1- Coding:-
using System.Windows.Forms;
using System.Data.SqlClient;
namespace hospital
{
publicpartialclassForm1 : Form
{
public Form1()
{
InitializeComponent();
}
}
}
PATIENT& EMPLOYEE PAGE:
Form2-Coding:-
using System.Windows.Forms;
using System.Data.SqlClient;
namespace hospital
{
publicpartialclassForm2 : Form
{
public Form2()
{
InitializeComponent();
}
PATIENT REGISTRATION :
Form3-Coding:-
using System.Windows.Forms;
using System.Data.SqlClient;
namespace hospital
{
publicpartialclassForm3 : Form
{
public Form3()
{
InitializeComponent();
}
}
}
EMPLOYEE REGISTRATION:
Form4-Coding:-
using System.Windows.Forms;
using System.Data.SqlClient;
namespace hospital
{
publicpartialclassForm4 : Form
{
public Form4()
{
InitializeComponent();
}
PATIENT DETAILS:
Form5-Coding:-
using System.Windows.Forms;
using System.Data.SqlClient;
namespace hospital
{
publicpartialclassForm5 : Form
{
public Form5()
{
InitializeComponent();
}
}
SqlConnection con = newSqlConnection(@"Data
Source=.\SQLEXPRESS;AttachDbFilename=C:\Users\welcome\Documents\Raj.mdf;Integra
ted Security=True;Connect Timeout=30;User Instance=True");
SqlCommand cmd;
privatevoid button1_Click(object sender, EventArgs e)
{
cmd = newSqlCommand("select *from patientregister where PATIENTID='" +
textBox1.Text + "'", con);
con.Open();
SqlDataAdapter da = newSqlDataAdapter(cmd);
DataSet ds = newDataSet();
da.Fill(ds);
dataGridView1.DataSource = ds.Tables[0].DefaultView;
con.Close();
}
}
}
EMPLOYEE DETAILS:
Form6-Coding:-
using System.Windows.Forms;
using System.Data.SqlClient;
namespace hospital
{
publicpartialclassForm6 : Form
{
public Form6()
{
InitializeComponent();
}
SqlConnection con = newSqlConnection(@"Data
Source=.\SQLEXPRESS;AttachDbFilename=C:\Users\welcome\Documents\Raj.mdf;Integra
ted Security=True;Connect Timeout=30;User Instance=True");
SqlCommand cmd;
privatevoid button1_Click(object sender, EventArgs e)
{
cmd = newSqlCommand("select *from employeedetail where EMPID='" +
textBox1.Text + "'", con);
con.Open();
SqlDataAdapter da = newSqlDataAdapter(cmd);
DataSet ds = newDataSet();
da.Fill(ds);
dataGridView1.DataSource = ds.Tables[0].DefaultView;
con.Close();
}
}
}
}
ACCOUNT DETAILS:
Form7-Coding:-
using System.Windows.Forms;
using System.Data.SqlClient;
namespace hospital
{
publicpartialclassForm7 : Form
{
public Form7()
{
InitializeComponent();
}
SqlConnection con = newSqlConnection(@"Data
Source=.\SQLEXPRESS;AttachDbFilename=C:\Users\welcome\Documents\Raj.mdf;Integra
ted Security=True;Connect Timeout=30;User Instance=True");
SqlCommand cmd;
privatevoid button1_Click(object sender, EventArgs e)
{
cmd = newSqlCommand("insert into accountdetail values('" + textBox1.Text + "','" +
textBox2.Text + "','" + textBox3.Text + "','" + textBox4.Text + "','" + textBox5.Text + "','" +
textBox6.Text + "')", con);
con.Open();
cmd.ExecuteNonQuery();
con.Close();
MessageBox.Show("inserted");
}
}
}
}
PHARMACY:
Form8-Coding:-
using System.Windows.Forms;
using System.Data.SqlClient;
namespace hospital
{
publicpartialclassForm8 : Form
{
public Form8()
{
InitializeComponent();
}
}
}
TABLE DETAILS:-
Account details:-
Employee details:-
Patient registration:-
Pharmacy:-