Professional Documents
Culture Documents
A project
By
ZAHRAA KHALID ABDUL-KAREM
Supervised
ASSIST.PROF.DR. FATEN ABD ALI
2.1 Introduction 4
3.1 Introduction 20
i
Chapter Four : Results and Discussions 27
4.1 Introduction 27
References 33
ii
List of Figures
Figure Name Page No.
iii
List of Tables
iv
Abstract
The main goal of this system is to create database for high blood pressure (HBP)
patients based on the electronic healthcare recodes (HER). This EHR is useful
tool to improve HBP management care. Therefore, the overall framework consist
of several steps including: 1) Dataset collection and analysis, 2) System design, 3)
Implementation and 4) System testing. The real dataset of Iraqi patients are
collected from Primary health care Center in AL-Noor training. These dataset
include Personal information (i.e. Patient id, name, age, Gender, Family Number,
Governorates, Practical situation, Measurements) and Medical information (i.e.
HBP, Diabetes, Cardiovascular disease, Treatment, Physical activity, Smoking).
The system is designed by using a set of programming languages (i.e. C#, SQL).
This system contains a set of interfaces that include interfaces for entering patient
information and modifying them, also can Inquired about information previously
entered. The Ensure that the information system meets quality standard (i.e.,
quality assurance). And Ensuring that the information system is operational and
used , Test different aspects of the system (i.e., response time, response to
boundary data, response to no input, response to heavy volumes of input).
v
Dedication
To...
Zahraa Khalid
July-2020
vi
Thanks and appreciation
First thanks, Allah Almighty, and then my parents for all their
efforts since my birth
Dr. Faten Abd Ali Al-Bayati for her continuous support and
her valuable advised me
vii
Chapter One
Introduction
Healthcare is an important domain that must be given a high priority. To get the best
administration and care for the patients, healthcare associations in many nations have proposed
different models of healthcare information systems. These models are customized, prescient,
participatory and preventive and are dependent on utilization of electronic health records (EHRs)
and tremendous measures of complex information and high caliber omics information.
Contemporarily, the information of electronic health records are also in heterogeneous formats
[1]. EHRs are designed to be shared with other providers and authorized users may instantly
access a patient’s EHR from across different healthcare providers. Digital medical records may
offer significant advantages both to patients and healthcare providers. Medical errors are reduced
and healthcare is improved based on accurate and up-to-date information, Patient charts are more
complete and clear — without the need to decipher illegible scribbles [2]. The EHRs process can
be shown in Figure (1.1).
1
1.2 High Blood Pressure Diseases
High blood pressure (HPB), sometimes called arterial hypertension, is a chronic condition in
which the arterial blood pressure is high. This height requires the heart to work harder than usual
to be able to push blood into the blood vessels. Blood pressure consists of two numbers, which
are systolic pressure and diastolic pressure, and this depends on the pressure obtained and
measured during the contraction of the heart muscle (contractility) or relaxation between the
strikes (diastole). The normal systolic blood pressure during rest ranges between 90 - 140 mm
Hg (upper reading) and diastolic between 60 - 100 mm Hg (lower reading). Blood pressure is
considered excessive if it has a value of 90 or 140 mm Hg continuously [3]. There isn’t always
an explanation for the cause of high blood pressure, but most people develop high blood pressure
because of their diet, lifestyle or medical condition [4]. The HBP categories can be illustrated in
Figure (1.2).
2
1.3 Objectives of the project
The main goal of High Blood Pressure (HBP) patient’s management system is to create database
based on the electronic healthcare recodes (HER). This EHR is useful tool to improve HBP
management care. Therefore, several objectives of this proposed system that satisfied to manage
and organize the information about patients with HBP efficiently through the electronic system
which includes these Features:
Chapter Two: In this chapter, we will talk about the problems that we were suffering from
before, and we have eliminated them through this system, as we will talk about the languages
used in the project and the reason for choosing these languages.
Chapter Three: In this chapter, parts of the programming code used in the design of the project
will be clarified.
Chapter Four: In this chapter we will take an overview of the electronic system and explain in
detail with the illustrations, interfaces, as well as control interfaces for data management.
3
Chapter two
Research problem and methodology used
2.1 Introduction
In this chapter, the research problem and the problems that the project addresses will be
illustrated by designing the electronic system to manage the data of high blood pressure patients,
in addition, to clarifying the research methodology, which includes the techniques and languages
used to accomplish this project, the reasons for its selection and the most important advantages,
as well as the program used in designing the electronic system and the reasons that led to choose.
The electronic systems are one of the most prominent features of the era that we are living in
now, as it is one of the basics of the current reality. The research problem is concentrated in
the absence of an electronic system to manage the data and information of patients with high
blood pressure (HBP) in Iraq (according to our knowledge), through which the information is
entered and saved more efficiently and more accurately. Therefore, the project has been chosen
to address and solve this problem by designing the electronic management system for HBP
patients. The programming language #C is used for designing interfaces because the #C
language is a developed language, very powerful, and despite this, it is characterized by
complete ease in dealing and very many uses. Also, tables were added using Access 2016 and
linked with the interfaces for the purpose of display through Microsoft Visual Studio 2012 to
serve as a comprehensive and integrated system and through it focuses on these services and
their management.
4
2.3 The Methodology
The methodology used in designing and implementing the project consists of two main stages:
1- Database management
2- Interface design
For each stage, a set of appropriate programming techniques and languages have been used, as
will be explained in the following subsections, as well as their most important advantages and
reasons for choosing them.
The database was created and designed using (Microsoft Access 2016) that illustrated such as
follows:
Microsoft Access
Access uses software developers, data linguists, and data makers to create complex databases
and link them with various types of called programs. Under this, object and internet programs are
involved, while beginners can use valid evidence bases or create reports on them [6]. Also, more
programmers and designers have been certified by ACCESS internationally to increase demand
and companies for these designers, as there are many forums on the web to teach and teach those
who want to learn Microsoft Access, which is characterized by its support for the Arabic
language.
5
Uses
Access is most used by companies and among designers and developers of programs, and
companies with high client ratios benefit from it to manage their records, and it is also frequently
used in government companies that deal extensively with people. The Access program is a portal
for storing a lot of information so that it can be called for viewing or amendment at any time [6].
The Access database includes a collection of tables, forms, reports, queries, and some macros, as
well as contains modules. The electronic database is a container for many objects, and one
database can contain more than one table, and the supplement for databases created in the format
of the Access program for recent versions such as the 2007 version is accdb, while the extension
for the databases created with the file formats for versions for Access Legacy is mdb, and Access
2007 can be used to create and save an old Access file in version (Access 2003 and Access 2002-
2003) [6].
Tables and data have been organized as closely as possible by isolating some information in
separate tables in order to ensure that the main information is not duplicated.
Figure (2.1) is present the correlation between the tables such as shown; we have made some
isolation of these tables as will be mentioned.
6
Figure (2.1): Tables and relations between them.
As shown in the Figure (2.1), several steps have been done such as the following: -
1- The patient's private information (the patient's name, family number, and the
gender of the patient) are isolated in a table on patients' information.
2- The governorates are isolated in a separate table to reduce data consumption and
stored data.
3- The diabetes screening table are isolated from the first visit table and from the second visit
table because diabetes is not done for every patient in order to ensure that no space is stored
for (diabetes screening information) for each patient but rather only for patients who are
eligible for test and thus we ensure that the storage space is not lost as well as we guarantee
more accurate and optimized data organization.
7
2.3.1.2 Tables Used in Creating the Database
There are several tables are used in creating the database for HBP management system and will
be illustrated such as follows:
1- The first table ‘Patient table’ which contains patient information (Patient id, Patient name,
Patient gender, family number) such as shown in Table (2.1).
8
2- The second table ‘First Reviews’ contains the data of the available donor, such as
(Review-Date , patient-id , patient-age , blood-pressure , diabetes , heat-disease , smoker ,
re-review , dr-name , Assignment) such as shown in Table (2.2).
9
3- The third table ‘Diabetes's Information’ contains the diabetes data such as: (diabetes_id ,
patient_id , Diabetes_Type , Diabetes_Screening , Diabetes_Screening_Rusult ,
Diabetes_Screening_Type ) such as presented in Table (2.3).
10
4- The table ‘Second Reviews’ of the second visits is a table dedicated to the information that
is taken and recorded for the patient in the event he came in a second visit tabled through
the results of the test on the first visit such as shown in Table (2.4).
11
5- The table ‘Re-Reviews’ is designed for the indication of patients who are given an
appointment for re-reviews after 3 days such as shown in Table (2.5).
12
6- Patient files table ‘Patients Files’ is dedicated to the information of patients with chronic
diseases who have been previously infected or have recently been confirmed, where they
are completed a file for them and store more detailed data and information about them.
Table (2.6) is illustrated this information of Patients Files.
13
7- The ‘Treatments table’ is dedicated to the treatment of patients with chronic diseases who
have been previously infected or have been newly confirmed and are taking chronic
therapies, while opening a file for them and storing data. Treatments are also stored in this
table such as presented in Table (2.7).
14
8- Governorates table ‘Governorates’ is a special table for pre-stored Iraqi governorates
that is intended to reduce the consumption of warehouse spaces and reduce the amount of
repetition. Table (2.8) is illustrated Iraqi governorates.
15
2.3.2 Interface design:
The system design stage represents the main stages in our project to find appropriate solutions to
the research problem that was mentioned previously (section 2.2) and that included several major
steps where it was implemented sequentially, such as follows:
This step is important in defining the appropriate technologies and programming languages for
the design of the system that will be explained as follows:
The software used in electronic system design is Microsoft Visual Studio 2016 which is
Microsoft's main integrated development environment. It provides graphical user interface
programming and scripts along with Windows Form, websites, web applications and web
services supported by Microsoft Windows, Windows Mobile, Dot Net framework and Microsoft
Silver Lite.
Visual Studio contains a code editor that supports IntelliSense technology and code rewriting. It
also contains a translator that reveals runtime errors and an interpreter that reveals spelling errors
in the codes. It also contains a template designer to build a graphical user interface, a web
designer, a class designer (computer science class), a database planner, and a designer Crystal
Reports.
Visual Studio 2016 supports many programming languages such as Microsoft C ++, Microsoft
Visual C #, Microsoft Visual Basic, Java script, and many other markup languages such as
HTML, XML, and XSL.
16
2- Programming languages
The electronic system has been designed using the programming language #C. The C# language
is a simple, modern, general-purpose, object-oriented programming language developed by
Microsoft within its .NET initiative led by Anders Hejlsberg [7].
Features of C# Language
There are many important features of C# language that make it more useful and unique
compared to other languages.
Fast Speed
Simple
Object-Oriented
Type-Safe
Interoperability
Rich Library
The overall framework of the proposed management system for High Blood Pressure (HBP)
patients consists of several steps that designed such as depicted in Figure (2.2).
17
Figure (2.2) The overall framework of HBP system.
In the first stage, data analysis and organization are applied based on real dataset for Iraqi HBP
patients to design and manage EHRs. The second stage is implemented by using ‘Main Interface’
which contains several steps including: 1) First visit, 2) Second visit, 3) Modify visits, 4)
Research and reports and 5) View or Add Patients Files.
In addition, a number of multimedia elements have been used, including: the text, pictures,
menus, and tables, for the purpose of presenting the information related to blood pressure
patients' data management in a clear and interesting way, as shown in Figure (2.3) that shows the
main interface (i.e. First frame) of the project. The implementation steps will be explained with
more detailed in Chapter four and the source code in Chapter three.
18
Figure (2.3) The main interface of the proposed HBP system.
19
Chapter Three
Practical part
3.1 Introduction:
In this chapter, the main sections of the programming code that used to design and
implement the project will be clarified. The following section presents the 'source
code' for each step has been implemented in our proposed management system of
High blood pressure (HBP) patients.
if (!U_S)
{
if(f1conect.State != ConnectionState.Open)
f1conect.Open();
cmd = new OleDbCommand("select Patient_ID from First_Reviews
where Form_Sequence = '" + textBox1.Text + "'", f1conect);
r = cmd.ExecuteReader();
dt = new DataTable();
dt.Load(r);
if(f1conect.State != ConnectionState.Closed)
f1conect.Close();
}
if (dt.Rows.Count == 0 || U_S)
20
{
if (age >= 20)
{
if (textBox2.Text != "" && textBox3.Text != "" &&
textBox10.Text != "" &&
(radioButton1.Checked == true || radioButton2.Checked ==
true) && ((age < 40) ||
(age >= 40 && textBox11.Text != "" &&
(radioButton3.Checked == true || radioButton4.Checked == true))))
{
int c=0;
for (int i = 0; i < textBox2.Text.ToString().Length; i++)
{
if (textBox2.Text[i] == ' ')
c++;
}
if (c == 2)
{
string gender;
if (radioButton1.Checked)
gender = radioButton1.Text;
else
gender = radioButton2.Text;
//update
if (!U_S)
{
if(f1conect.State != ConnectionState.Open)
f1conect.Open();
2- Part of the Code (Patient Data save Button for second visit):
OleDbCommand cmd;
DataTable dt = new DataTable();
21
if (D_ID != "" && update)
{
cmd = new OleDbCommand("update Diabeteses set Diabetes_Screening
= '" + textBox7.Text + "' , Diabetes_Screening_Rusult = '" + textBox11.Text + "' ,
Diabetes_Screening_Type = '" + sta + "' where Diabetes_ID = " + D_ID, f2conect);
cmd.ExecuteNonQuery();
}
if (update)
{
cmd = new OleDbCommand("update Second_Reviews set
Blood_Pressure_High = '" + textBox5.Text + "' , Blood_Pressure_Low = '" + textBox6.Text +
"' , Blood_Pressure_Result = '" + textBox10.Text + "' where Patient_ID = " + P_ID + " And
Review_Date = #" + dt_R.Month + "/" + dt_R.Day + "/" + dt_R.Year + "#", f2conect);
cmd.ExecuteNonQuery();
Form8.U_State = true;
Close();
}
else
{
string T;
if (radioButton3.Checked)
T = radioButton3.Text;
else
T = radioButton4.Text;
cmd = new OleDbCommand("Insert into Diabeteses (Patient_ID ,
Diabetes_Type , Diabetes_Screening , Diabetes_Screening_Rusult , Diabetes_Screening_Type)
" +
"values(" + ID + " , 2 ,
'" + textBox7.Text + "' , '" + textBox11.Text + "' , '" + T + "')", f2conect);
cmd.ExecuteNonQuery();
22
private void button5_Click(object sender, EventArgs e)
{
if (f3conect.State != ConnectionState.Open)
f3conect.Open();
DateTime dt_R = DateTime.Now.Date;
OleDbCommand cmd = new OleDbCommand("select Patient_ID from Patients where
Patient_Name = '" + comboBox1.SelectedItem.ToString() + "'", f3conect);
OleDbDataReader r = cmd.ExecuteReader();
dt = new DataTable();
dt.Load(r);
if (f3conect.State == ConnectionState.Open)
f3conect.Close();
ID = Convert.ToInt16(dt.Rows[0][0].ToString());
Form f2 = new Form2(comboBox1.SelectedItem.ToString(), ID);
f2.ShowDialog();
23
"Second_Reviews.Blood_Pressure_Result As [ ]التشخيصي الضغط فحص, "
+
"Diabeteses.Diabetes_Screening_Rusult As [ " ]التشخيصي السكر فحص+
"from Sub_Query left join Diabeteses on Diabeteses.Diabetes_ID
= " +
"Sub_Query.Second_Reviews.Diabetes_ID ";
if (radioButton1_1.Checked)
{
if (comboBox1.SelectedIndex > -1)
{
Con_Str += "where Patient_Name = '" +
comboBox1.SelectedItem.ToString() + "'";
}
else
{
MessageBox.Show(";)"المريض اسم تحديد يرجى
f = false;
}
}
else
{
if (radioButton1_2.Checked)
{
if (dateTimePicker1_1.Value <= dateTimePicker1_2.Value)
{
Con_Str += "where ((First_Reviews.Review_Date >= #" +
dateTimePicker1_1.Value.Month + "/" + dateTimePicker1_1.Value.Day + "/" +
dateTimePicker1_1.Value.Year + "# " +
"and First_Reviews.Review_Date <= #" +
dateTimePicker1_2.Value.Month + "/" + dateTimePicker1_2.Value.Day + "/" +
dateTimePicker1_2.Value.Year + "#) " +
"or (Second_Reviews.Review_Date >= #" +
dateTimePicker1_1.Value.Month + "/" + dateTimePicker1_1.Value.Day + "/" +
dateTimePicker1_1.Value.Year + "# " +
"and Second_Reviews.Review_Date <= #" +
dateTimePicker1_2.Value.Month + "/" + dateTimePicker1_2.Value.Day + "/" +
dateTimePicker1_2.Value.Year + "#))";
}
else
{
MessageBox.Show("او اكبر الثاني التاريخ يكون ان يجب الفترة تاريخ تحديد من تأكد
;)"االول يساوي
f = false;
}
}
24
{
if (dataGridView1.SelectedRows.Count > 0)
{
int index = dataGridView1.Rows.IndexOf(dataGridView1.SelectedRows[0]);
if (Update_Type == 1)
{
Form f1 = new Form1(dt.Rows[index], dt_c[index]);
f1.ShowDialog();
if (U_State)
{
Ref_1();
}
}
else
{
Form f2 = new Form2(dt.Rows[index], dt_c[index], dt_ID[index]);
f2.ShowDialog();
if (U_State)
{
Ref_2();
}
Fill();
}
25
f3.ShowDialog();
}
26
Chapter Four
Results and Discussions
4.1 Introduction
In this chapter, we will look at an overview of the results that obtained when applied the
proposed management system for patients with high blood pressure (HBP). The result of each
step will be explained in detail with illustrations as well as the system interfaces in the following
sub-sections.
27
Figure (4.1) The main interface of HBP system.
28
4.2.2 Second visit interface
This interface contains a combo box that includes the names of the patients that were entered on
the first visit as shown in Figure (4.3). This process includes important step that explained in
detailed in the following sub-section.
Figure (4.3) The patient identification interface for the second visit.
29
Figure (4.4) Interface of the second visit
30
4.2.4 Interface of Patients File
This interface is intended to display patient information that was previously stored and organized
in a coordinated and divided form and is done through buttons (right, left) to move between files
for patients from the first patient to the second and so on, respectively. In addition, we can also
modify the patient data by pressing Button “Modify” the data to move to the interface of the
amendment or delete the file by pressing the Button “Delete” the file and then confirm the
deletion. Finally, the Button “Exit” is used to close the interface and return to the main interface
or the reporting interface such as seen in Figure (4.6).
31
4.2.5 Interface of Research and Reports
This process is important and consists of three main steps including: 1) First visit report, 2)
Second visit report and 3) Patients report. Through which the type of report, its details, and
conditions are determined through an organized research and display technology as shown in
Figure (4.7). In order to create one of these reports, we need to press the button “Create Report”.
Then, the report is prepared and sent to the report display interface for displaying. The exit
button is used to closes the interface and returns to the main interface.
32
References
[1] Electronic Health Record - an overview | Science Direct Topics Science Direct
(https://www.sciencedirect.com › topics)
33
الملخص
الهدف الرئيسي من هذا النظام هو إنشاء قاعدة بيانات لمرضى ارتفاع ضغط الدم ( )HBPعلى أساس
سجالت الرعاية الصحية اإللكترونية ( .)HERيعد هذا EHRأداة مفيدة لتحسين رعاية إدارة .HBPلذلك
،يتكون اإلطار العام من عدة خطوات بما في ذلك )1 :جمع وتحليل مجموعة البيانات )2 ،تصميم النظام ،
)3التنفيذ و )4اختبار النظام .يتم جمع مجموعة البيانات الحقيقية للمرضى العراقيين من مركز الرعاية
الصحية األولية في النور التدريبي .تتضمن مجموعة البيانات هذه معلومات شخصية (أي هوية المريض ،
واالسم ،والعمر ،والجنس ،ورقم األسرة ،والمحافظات ،والوضع العملي ،والقياسات) ومعلومات طبية
(مثل ، HBPوالسكري ،وأمراض القلب واألوعية الدموية ،والعالج ،والنشاط البدني ،والتدخين) .تم
تصميم النظام باستخدام مجموعة من لغات البرمجة (مثل .)SQL ،C #يحتوي هذا النظام على مجموعة
ضا االستفسار عن
من الواجهات التي تتضمن واجهات إلدخال معلومات المريض وتعديلها ،ويمكن أي ً
المعلومات التي تم إدخالها مسبقًا .ضمان أن نظام المعلومات يفي بمعايير الجودة (أي ضمان الجودة) .والتأكد
من تشغيل نظام المعلومات واستخدامه ،اختبار جوانب مختلفة من النظام (أي ،وقت االستجابة ،االستجابة
لبيانات محدودة ،االستجابة لعدم اإلدخال ،االستجابة لكميات ضخمة من المدخالت).
34
جمهورية العراق
وزارة التعليم العالي والبحث العلمي
جامعة بغداد ـ كلية العلوم
قسم علوم الحاسوب
من قبل
زهراء خالد عبدالكريم
بأشراف
أ.م.د فاتن عبد علي
0202تموز 1441ذوالقعدة
35