Beruflich Dokumente
Kultur Dokumente
INTRODUCTION
Electronic Medical Records (EMRs) are computerized medical
information systems that collect, store and display patient information.
They are a means to create legible and organized recordings and access
to clinical information about patients. EMRs are intended to replace
existing (paper based) medical records which are already familiar with
practitioners (physicians). As the national growth rate increases, the
tendency of medical exercises and attention also compound. This
population growth tends to overwhelm the limited physicians, health
workers and available facilities. Physicians are in constant need of
innovations that would boost their day to day encounters with patients.
Several documented research have taken place in this regard. Some
include the development of record systems/information systems to
store and manage patient health history. Paper based systems were
introduced in the early age of mankind to support physicians by
keeping track of their patients.
1.1 Background to Study
Information management is an important and integral aspect of every
organization as it provides a means for data query and retrieval. The
health sector with its vital position as the chief information office, is
not left out of this need. This is so because physicians on daily bases
are faced with the challenges of how to effectively store and retrieve
patient health history. Over the years, the paper based system of
recording patient information dominated the health sector, but one
question is needful here. How efficient, secured and reliable has it
been? With its open-endedness there is a need to critically look at it. A
recent survey placed the daily health demand at an alarming rate hence
the need for an optimized and efficient information system. This is so
because research has shown that ensuring a speedy medical access; an
improved medical recording system must be adopted.
According to the United Nations, the population of Nigeria is expected
to reach 258.5million by 2050 (World Population, UN). Health care
systems are managed by the three tiers of government, with the federal
government taking responsibility for policy, drug regulations, diseases
control, vaccinations, and trainings. The federal government runs the
management of teaching and orthopedic hospitals.
Health care professionals in Nigeria have reportedly complained of the
declining quality of health care in the country. Adeyi (2011) attributes
the deterioration state to the funding, mismanagement, politics and the
impact of civil war. He argued that educational resources to improve
the existing infrastructure must be provided by the government. Other
authors like Awokola et al. (2012) cited the use of health IT like EMR
as a tool to improve the quality of health care.
Paper records are increasingly obsolete and inadequate in this 21st
Century. They limit the flow of information, insufficiently document
patient care, impede the integration of health care delivery, create
barriers to research, and limit the information available for
administration and decision making (Roy Romanow, 2002). The
quality of care provided to patients matters. If one cannot measure it,
one can improve it (Lord Kelvin); the ability to repeatedly measure and
monitor the care that is provided is a prerequisite for quality
improvement efforts. Such an undertaking can be laborious and time
consuming if the data are recorded on paper.
Owing to the above documented disadvantages in the continued usage
of the paper based systems in this 21 st century, a new system which is
capable of meeting current demands has been proposed which is the
development of an electronic/ computerized medical record system.
Although, this idea has been around since the late 1960s, when Larry
Weed introduced the concept of the Problem Oriented Medical Record
(Tim Benson, 2012) into medical practice, as a means to help doctors
through the aid of a third party who verifies a diagnosis, accurately
treat patients based on the available health history. The early
computing powers limited the technology even when the first medical
improve the quality of healthcare (Biruk et al. 2014). They also stated
that EMR saved physician time and has allowed them to spend more
time with their patients (Rosen, et al. 2011). In this study, I have
detailed the weaknesses of the current recording system, which is still
widely used in Federal Medical Center Asaba. I have also explored the
significant impact EMR have had in developed nations and budgetary
plans in those nations. I have also detailed how an EMR can be
implemented in a Nigerian hospital with Federal Medical Center Asaba
as a case study.
1.2 Statement of the Problem
Patients records have been stored in paper form for centuries and, over
this period of time; they have consumed increasing space and notably
delayed access to efficient medical care. The cost involved in
maintaining a paper based system is very high due to duplication of
efforts and records. One typical example of this duplication is the
copying of records and the distribution of such files around which is a
redundant practice, amounting huge maintenance cost. Storage of the
paper record necessitates the use of valuable spaces that could be better
utilized in other areas like drug packing or equipment keeping. The
records also need to be protected from water, fire, or mishandling to
preserve their physical integrity.
computerized
medical
recording
system
using
Develop a system that would not wear nor tear like the paper
based type.
To reduce the death rate and delay rate associated with the
obsolete paper based systems.
To
create
medical-information
and
communication
technology relationship.
10
especially during war, flood and trying times. Going by the recent
happenings in the world and in Nigerias north east for instance, where
there have been cases of bombings and floods; one would agree that
hospitals around such areas receive more patients than those in other
parts of the world or country. This is indeed a problem if the records of
such patients are not properly stored. That is if their records are stored
on papers. Research has shown that before a patient is attended to, his
health records must and will be checked first. This is to avoid
complications during treatment. That is why the need for accurate, safe
and proper documentation of such records cannot be overemphasized.
Economically, the health sector will be able to generate more revenue
for the country as more patients will be attended to on daily bases. The
allocation shared to the health care sector shows how important the
sector is to the nation hence the improvement in the sector affairs. The
high cost associated with the paper based system will be reduced if not
removed with the implementation of the electronic based record
system which not only is very convenient but also very efficient.
Academically, this research will benefit students as it will serve as a
base for future research in this area particularly in improving it. It will
also open the eyes of most young programmers to try their hand in
developing software for different sectors and not just on one side.
11
It is on these factors that I can categorically say that the study EMR
will not only provide accuracy, efficiency, integrity to physicians,
health workers and patients but also to the academic institutions and
the nations economy.
1.7 Limitations of the Study
The limitations faced during the project include; getting information
from health workers, most were willing to share their day-to-day
experience with paying with me. Majority of nurses in the hospitals I
visited did not see the project as feasible due their strong desire to
continue using the paper based system, while the physicians received
the idea with open arms. Information derived from my studies where
through questionnaires, most persons gave their views, while in certain
cases some refused to be a part of the session. Frequent power outages
during my online research stage marred my speed and activities online,
also getting materials on the proposed topics witnessed drawbacks as
much publication are not available. The cost of executing the project is
huge and that left me with an option of quitting or continuing.
1.8 Scope of Study
Although the health sector has several departments, this project is
aimed at developing a computerized patient record for both out-patient
and in-patients in a given department. Two computer languages were
12
13
CHAPTER TWO
REVIEW OF RELATED LITERATURE
Healthcare in Nigeria as in some other African countries is confronted
with increased pressure and demand for medical treatment and services
due to factors such as growing population and higher standard of
living. Miller argues that healthcare has been an issue of growing
importance for national government. Many national and regional
healthcare plans have been developed in the past decades, in order to
control the cost, quality and the availability of healthcare for all
citizens. Brown opined that the application of Electronic Medical
Information System (EMIS) has generated useful insight into the
quality of data accuracy and health care provision in primary care
settings. This is partly one of the adapted style and approach to data
entry influenced by the design presented in recent structure. They
14
further emphasize that there is a great need for improved education and
protocols for constituting data entry in the (EMIS) and also subsequent
follow up of patient clarification on the policy for duration and
frequency treatment.
Laubbel, define medical health record, or medical documentation of a
patients medical history and care as medical record used bath as the
physical folder of patients and for the body of information which
comprises the total of each patients health history. Medical records are
intensely personal document and there are many legal issues
surrounding them such as the degree of third-party access and
appropriate storage and disposal. The key advantage of shifting to
electronic/computer based patient record is the opportunity to
strengthen the link between the hospital records and management
information system. So that resource usage and quality of care can be
analyzed using Hospital database (electronic means) which increases
physician efficiency and reduce costs, as well as promote
standardization of care.
2.1 Overview of Paper Based Patient Medical Record System
Most of the patient and administrative information that flow
throughout the health care system is still recorded on paper. This is not
without reasons, Dick and Steen (1991) note that the traditional paper
15
record is still used due to its familiarity to users, portability, and ease
of recording findings. A survey by cnnmoney.com in the United States
estimates that only 8% of the nations 5,000 and 17% of its 800,000
physicians currently use the computerized record-keeping systems
(cnnmoney.com, 2009). Paper records usually require large space for
storage and hence cannot be used in hospitals with limited space.
Mutilations can occur in the paper systems thus reducing the integrity
of reports. Paper records are usually stored in different locations thus,
collecting and transporting them to a single location for usage/review
by a health care provider is time consuming. In 2004, an estimate was
made that 1 in 7 hospitalizations occurred when medical records were
not available. Additionally, 1 in 5 laboratory tests were repeated
because of mutilation and non-availability at the point of treatment.
Electronic medical records are estimated to improve efficiency by 6%
yearly, and the monthly cost of an EMR is offset by the cost of only a
few unnecessary tests or admissions. Handwritten paper medical
records can be associated with poor legibility, which can contribute to
medical errors. In an analysis of U.S Army outpatient clinics, Tufo and
Speidel (1971) found as many as 20% of charts had missing
information, such as laboratory data and radiology report. Furthermore,
abstractions of paper record are stored in large databases, such as those
of the Medical Information Bureau, which are maintained by health
insurance companies to prevent fraud but contain medical information
16
of
more
than
12million
Americans
(Rothfeder,
1992).
An
17
clinics across town or even across the country which would result in
data not lost or misplaced. With an appropriate back-up mechanism, it
should serve as a permanent record of an individuals interaction with
the health care system. Furthermore, with the EMR, queries can be
carried out efficiently with respect to time. Finally, with the potential
for the incorporation of reminders and decision support, the likelihood
of mistakes and omissions should decrease.
In addition to benefiting the individual patient, the Electronic Medical
Record is also likely to benefit the larger population. Clinical research
will likely be enhanced, as researchers have easier access to
information about patients that will increase understanding of disease
and its treatment.
Screening and other preventive measures will become easier to
implement as patients of various attributes (i.e., gender, age, presence
of other risk factors) can be identified and contacted.
Fielde, stated that transformation of medical practices is emerging not
only as a result of the availability of these technology but as a
deliberate attempt to address the image challenges facing the health
care delivery. According to National Alliance for Health Information
Technology (NAHIT), The EHR refers to an electronic record of
health-related information on an individual that conforms to nationally
18
Comput
ation
Provide
Review
Display
Patient
History
history
and view
demographics
Decision Collabora
Support
Recommend
tion
Incorpora
care based on te
of patient
informati
patients
characteristic
on
health
outside
Action
sources
Coordina
oriented
tes across
for Compute
from
Conduct
Prompt
Patient
required
Assessment
information
clinical
multiple
Determine
Relate
reminders
Support
providers
Staff
clinical
assessment
based
views or
decisions
patient history
statistics
Display
to trends,
reference
ranges
recommendat ns
ions
19
Develop
Standard
of Apply
treatment plan
on
Evidence
Patient
care summary
based adjusted
by education
patient patient
al tools
characteristi
characteristic
s
Alignment
Create
Order
Review
c
Determine
additional
previous
appropriate
with
referral
service
services
provider
insurance
facility
requirements
provider
communi
Instructions,
cation
Patients
contraindicat
instructio
formulary
ion,
ns
effectiveness
effects
Prescribe
Medication
medications
Dose
side
and
Document
Diagnosis
and Prompt/auto
visit
treatment codes
matic
population
Insurance
warnings
Patient
guidelines
education
,
coordinat
ion with
multiple
20
providers
Table 2.1
2.3.1 Financial Benefit of EMR
One of the reforms of the Patient Protection and Affordable Care Act
by the Obama Administration is to contain the cost of health care by
the use of EMR system (Encinosa & Bae, 2011). Boonstra and
Broekhuis (2010) showed that the cost of setting up EMR was mostly
reported among the barriers to adopting the technology in their
practices. However, the business case for the adoption of the
technology is that it has the potential to cut costs by reducing the
length of stay in the hospital, reducing the demand for clinicians, and
reducing inappropriate laboratory procedures (Furukuwa, Raghu, &
Shao, 2010). Since the cost of setting up EMR is prohibitive, clinicians
are worried about the ROI that they have made (Boonstra & Broekhuis,
2010). Boonstra and Broekhuis argued that it could take years before
any return can be manifested. In spite of the high cost of purchasing
EMR, the technology is widely believed by some circles that it would
yield both financial and clinical benefit (Thompson & Fleming, 2008).
Moreover, Thompson and Fleming (2008) argued that the benefits of
the tool do outweigh the cost of implementation and maintenance. In
an attempt to encourage the adoption of EMR in the United States, the
Bush administration proposed a plan that all medical records of the
21
the
assessment
of
project
scope
(partial
of
full
22
Furukuwa et al. (2010) stated that the business case for investment in
EMR is that it would eventually cut down the cost of health care, but
they could not justify it in their experience. In their studies of EMR
implementation at a California hospital from 1998 to 2007, they found
out that the use of EMR increased the cost of treatment at the hospital.
According to Furukuwa et al., there was an increase of 6% to 10% in
the cost per discharge in medical acute units. These researchers argued
that EMR may even lead to an increase in demand for skilled nurses,
which would not necessarily lead to cost savings. Furukuwa et al.
stated that they focused on EMR implementation in the first 3 years
rather than the long-term effect. For this reason, they concluded that
they could not generalize their findings as being applicable to other
hospitals. Thompson and Fleming (2008) also argued that published
information on the financial benefit on EMR does not have a common
basis for comparison and that there are inconsistencies between studies
regarding financial benefit of the technology.
2.3.2 Technical
A full adoption of EMR would make IT a critical component of
helping hospitals to deliver health care (Boonstra & Broekhuis, 2010).
However, Boonstra and Broekhuis (2010) argued that a lack of
technical skills is one of the barriers to full adoption of EMR in health
care settings. According to Boonstra and Broekhuis, a certain level of
23
24
25
time on EMR per patient than they would normally spend on using
[PBMR].
On the contrary, Calder (as cited in Smith, 2010), argued that the use of
EMR has provided him with an opportunity to spend more time with
his patients. The 2001 Institute of Medicine (IOM) on Crossing the
Quality Chasm reported that timeliness is an area that needs
improvement in health care management (Rosen, Spalding, Hannon,
Boudreau, & Kwoh, 2011). Calder argued that the time that he saved
by using EMR has allowed him to spend more time with his patients
and as a result, was able to improve the quality of health care for them.
In a survey of parents of patients at pediatric rheumatology practice in
Pittsburgh, Pennsylvania, in a month before implementation of EMR
system, and 3 months after the implementation, Rosen, et al. (2011)
reported that parents were satisfied with EMR usage. According to
Rosen et al., parents of the patients agreed that EMR has improved the
quality of health care of their children. Rosen et al. also stated that the
parents of those children were reportedly happy that doctors were able
to spend more time with their children.
2.3.4 Safety
Electronic medical record has been reported to have improved the
quality of care for patients with minimal increase in the cost of health
26
and Ma Melendez
and his team developed a scenario that was based on a day in the life of
a patients from admission to discharge visit. According to Melendez,
his team was not sure whether buffered data from medical device
(which were generated by network interruption) were loaded correctly
into every patient record all of the time.
Loading incorrect data into patient records raises significant safety
implications (Melendez, 2011). According to the Melendez, most
EMRs today receive data from Health Level 7 (HL7) interface or
terminal servers by location rather than by patient identifier (PID).
Melendez and his team were able to resolve this issue by using a
computer system that used PID to load the data, rather than using a
medical device that identifies patients by location. Melendez advised
that hospitals should use medical devices that identify patient with PID
rather than the room location identifier.
27
28
to avoid legal issues that could arise from it. Boonstra and Broekhuis
stated that physicians are not sure if EMR is secure enough to prevent
unauthorized users from accessing the data of their patients. The
breach of confidentiality of patients information was not taken lightly
at University of California (UCLAS) Medical Center (Mir, 2011).
According to Mir, the hospital disengaged 13 of its employee (none
were physicians) for unauthorized access to Britney Spears
confidential medical records (Mir, 2011). Moreover, Mir stated that,
six physicians of the same medical center were also disciplined for
improperly looking at Spears medical record.
2.3.6 Social
In medical practices, physicians usually work with other parties such
as vendors, insurance companies, patients, administrative staff, and
other clinicians (Boonstra & Broekhuis, 2010). According to Boonstra
and Broekhuis, the decision to implement EMR by physicians is
influenced by these parties, and this could also affect the relationship
between physicians and their patients. The lack of support and
technical training by vendor can be a barrier to the adoption of EMR
systems (Boonstra & Broekhuis, 2010). According to these authors, the
lack of competition in this industry testifies to the fact that the industry
has not matured, and as such, many of these vendors could disappear
before EMR systems get better. Some physicians also stated that their
29
own
devices,
the
early
RELATIONAL
DATABASE
30
31
32
33
34
solution, Gosling and others began work on a portable, platformindependent language that could be used to produce code that would
run on a variety of CPUs under differing environments. This effort
ultimately led to the creation of Java.
About the time that the details of Java were being worked out, a
second, and ultimately more important, factor was emerging that
would play a crucial role in the future of Java.
This second force was, of course, the World Wide Web. Had the Web
not taken shape at about the same time that Java was being
implemented, Java might have remained a useful but obscure language
for programming consumer electronics. However, with the emergence
of the World Wide Web, Java was propelled to the forefront of
computer language design, because the Web, too, demanded portable
programs.
Because of the similarities between Java and C++, it is tempting to
think of Java as simply the Internet version of C++. However, to do
so would be a large mistake. Java has significant practical and
philosophical differences. While it is true that Java was influenced by
C++, it is not an enhanced version of C++. For example, Java is neither
upwardly nor downwardly compatible with C++. Of course, the
similarities with C++ are significant, and if you are a C++
35
programmer, then you will feel right at home with Java. One other
point: Java was not designed to replace C++. Java was designed to
solve a certain set of problems.
CHAPTER THREE
RESEARCH METHODOLOGY
The purpose of this research was to explore by qualitative means, how
EMR can reduce time wastage seen in the use of paper based record
system and to see to the implementation of EMR as a means to help
revamp the health sector. I have selected Federal Medical Center Asaba
as my case study. Currently, the hospital has EMR running in one of
the departments, while in other departments, paper based record is still
used. I was able to assess the time spent on medical records and time
spent by physicians on patients to ascertain the gap in treatment. In this
chapter, I will describe the research design, methodology, data
collection procedures, data analysis, and a summary.
3.1 Research Design
36
37
38
39
The study was to explore using qualitative means on how EMR can
reduce time wastage seen in the use paper based systems and to ensure
the implementation of it as a means to revamp the health sector.
I used non-probability purposive sampling for participant selection in
this study. Frankfort-Nachmias and Nachmias (2008) stated that nonprobability sampling does not guarantee that every unit of the
population will have some chance of being included in the sample.
However, the authors wrote that probability sampling is characterized
by a sampling size in which every individual has an equal chance of
being selected. Having equal access to a target population would
engender the use of probability sampling. However, I conducted the
non-probability purposive sampling method because it was impractical
to select a sample that was large enough to be a probability sample.
The three major non-probability sampling techniques employed by
social scientists are quota samples, purposive samples, and
convenience samples (Frankfort and Nachmias, 2008). In this study, a
purposive sampling technique was used. This technique allows
researcher to select sampling units that appear to be representative of
the population (Frankfort and Nachmias, 2008, p.168). For this study I
interviewed 20 patients, 28 doctors, and 16 record management staffs
from Federal Medical Center Asaba. I conducted my interviews from
September 1 through September 22, 2015.
40
41
CHAPTER FOUR
IMPLEMENTATION AND EVALUATION
4.1 Medical Record Hardware Requirement
42
Location
FMC-ASABA
Males
15
43
Females
13
Participants
20
Table 4.2
Location
FMC-ASABA
Males
11
Females
9
Location
FMC-ASABA
Males
8
44
Females
8
Study Results.
The result of the study was analyzed using structural auto coding
(Nvivo 11). The transcribed data were later categorized. Thematic
coding was used to reveal recurring themes and patterns. Three
different interviews schedules were adopted: one for doctors, one for
patients, and one for record management staffs.
The following questions were adapted from the questionnaire questions
in the appendix.
The first of them is for doctors and their response to fielded questions
include:
4.4.1 What are the current challenges faced with the paper based
medical record (PBMR)?
Responses include:
Using (PBMR) is our normal daily experience and it affects the
number of patients we see daily. It leads to spending a lot of time on a
patient, where we have to do several verifications.
The use of (PBMR) has negatively affected the time I spend with my
patients. I spend most of my time looking for missing case notes rather
than attending to patients.
45
The use of (PBMR) has not really affected the number of patients I see
on a daily basis, said one of the doctors.
Using (PBMR) will make you start searching forever, for example if
you have a patient who has regularly been visiting, say for five years.
I have no problem with the (PBMR) as it has been in use for ages, I am
very conversant with it and accustomed to its operation and
deficiencies.
What are the current challenges faced with the paper based medical
record (PBMR)?
Responses of Participants
Frequency
as stated by
FMC
Practitioners
PBMR leads to time wastage
7
PBMR has no effect on my 1
patients
PBMR should be replaced by a 8
more efficient type e.g. EMR
I have treated the wrong patient 5
due to wrong record
Table 4.4
4.4.2 What do you think should be done to remedy the PBMR.
46
47
7
6
48
49
50
. Table 4.10
4.6 Implementation Procedure
The three major aspects of implementation are:
Training personnel
Conversion procedures
Post-implementation review
51
and
where
improvements
are
needed.
A post
implementation review measures the systems, performance against predefined requirements. It determines how well the system continues to
meet performance specifications. It also provides information to
determine whether major re-design or modification is required. A postimplementation review is an evaluation of a system in terms of the
extent to which the system accomplishes stated objectives and actual
52
Fig 4.1
4.7.1 Sample Implementation Input Snapshot
53
Fig 4.2
4.7.2 Sample Implementation Output Snapshot
Fig 4.3
4.8 Evaluation of Results
54
CHAPTER FIVE
55
5.2 Conclusion
Medical record system as proposed was designed and developed to
help reduce the issues in PBMR, the software developed and integrated
with MySQL. The Software was tested and run to ascertain its
capability. The need for such a system that can electronically store
patient information without fear of fire or danger cannot be
56
Recommendations
Having carried out this work thus far, some recommendations are
necessary to ensure its deployment and use, and also for further
research around this work. My recommendation includes:
(1).The addition of more windows that may include other features
(2) The application should be packaged for installation
(3) MySQL server should be available to store the contents
automatically
(4).I use this opportunity to encourage those who will like to develop
software with an object oriented programming language to consider
using Java.
57
REFERENCES
Adeyi, O. A. (2011). Pathology services in developing country-the
West African experience.
Archives of Pathology &
Laboratory Medicine, 135(2), 183-186. Retrieved from
http://www.archivesofpathology.org/
Aiken, M., Gu, L., & Wang, J. (2013). Task knowledge and tasktechnology fit in a virtual team.
International Journal of
Management,
30(1),
3-11.
Retrieved
from
http://www.internationaljournalofmanagement.co.uk/
Akinyemi, K. O., Oshundare, Y. O., Oyeyinka, O. G., & Coker, A. O.
(2012). A retrospective study of community-acquired
Salmonella infections in patients attending public hospitals in
Lagos, Nigeria. Journal of Infection in Developing Countries,
6(5), 387-395. doi:10.3855/jidc.2120
Aljabre, A. (2012). Cloud computing for increased business value.
International Journal of Business & Social Science, 3(1), 234239. Retrieved from http://www.ijbssnet.com/
Amakom, U., & Ogujiuba, K. (2010). Distribution impact of public
expenditure on education and healthcare in Nigeria: A gender
based welfare dominance analysis. International Journal of
Business & Management, 5(12), 116-127. Retrieved
http://www.ccsenet.org/journal/index. php/ijbm
Analysis & design of information systems James A Senn, Mc-Graw
Hill Book Co. (1986)
Angell, M. (2013). Obamacare confronts a fiscal crisis: Why the
Affordable Care Act doesntNewaddLabor Forumup.(Murphy
Institute), 22(1), 44-46. doi:10.1177/1095796012471306
Aremo, A. G., Aeolian, M., Irrechukwu, J., & Olugbenle, T. (2004).
Critical success factors in establishing the electronic health
record. The experience of ChevronTexaco Hospital, Lagos,
Nigeria.
Retrieved
from
http://library.ahima.org/xpedio/groups/public/documents/ahima
/bok3_005553.hcs p?dDocName=bok3_005553
58
from
59
60
61
62
63
Technology,
30(1),
doi:10.1080/0144929X.2010.516018
113-129.
64
65
(n.d.).
NVvivo.
Retrieved
http://www.qsrinternational.com/products_nvivo.aspx
from
66
67
68
APPENDIX
Appendix A:
Questionnaire on EMR implementation to replace PBMR
The interview schedule for patients
Date and time of interview:
Date of interview: ____________/___________/____________
Start time of interview: _____________________ End time of
interview _________________
Hospital name: ___________________________________________
The interview:
1. How is your experience with PBMR like?
2. How would you describe your experience on the time it took to
complete your registration?
3. How would you describe the level of caring by your doctor?
4. How satisfied are you with your treatment today?
5. Can you comment on how long it took the doctor to locate your
information before attending to you?
6. Do you have any technological experience?
7. Can you detail the processes involved in replacing a lost card?
8. How do you rate your hospital?
9. Do you think the PBMR is inefficient?
10. Is there a need to change the PBMR?
69
Appendix B
Questionnaire on EMR implementation to replace PBMR
The interview schedule for Doctors
70
________________________
Yrs
of
experience:
____________________________
Hospital name: _________________________________________
The interview:
1. How many patients on average do you see daily?
2. How has PBMR usage affected the time spent on patients by
3.
4.
5.
6.
you?
Do you have technological experience?
Have you heard of EMR?
How do you see ICT in Medicine?
How has PBMR affected your daily work-flow with respect to
productivity?
7. How has PBMR affected transferring of patient data or
information from one department to another?
8. Do you think PBMR should be replaced?
9. Describe your experience on PBMR with respect to getting the
information you need on time?
10. How does the use of PBMR make it easier to consider all
aspects of a patients condition?
71
Appendix C
Questionnaire on EMR implementation to replace PBMR
The interview schedule for record management staffs
Date and time of interview:
Date of interview: ____________/___________/____________
Start time of interview: _____________________ End time of
interview _________________
Hospital name: _________________________________
72
The interview:
1. What is your view on the use of PBMR for recording?
2. Is there inefficiency in PBMR?
3. Can you list the inefficiencies?
4. What do you think can solve the inefficiencies?
5. Do you welcome ICT in medicine?
6. Are you technologically good?
7. How often do patients complain of missing records/
8. How do you deal with legibility problem?
9. Have you ever loosed a record?
10. Have you ever seen a patient record in the wrong hands or
place?
11. Do you know about EMR?
73
Appendix D
Informed Consent Letter
CONSENT FORM
You are invited to take part in a research study on EMR
implementation, as a way to replace PBMR. You are one among the
participants for this survey, comprising of patients, doctors, and record
management staffs drawn from Federal Medical Center Asaba. This is
a formal process of obtaining your written agreement to take part in
this study which is called informed consent, and it is designed to
allow you understand all aspect of this study before making a decision
of taking part. You are selected to be part of the study because you fit
into a group identified as patients waiting in the Out-patient
department, doctors in the Out-patient department or record
management staffs in the Out-patient department. In addition to this,
you were selected because of the following:
74
75
76
SOURCE CODE:
/*
* To change this license header, choose License Headers in Project
Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package medrecord;
/**
*
* @author 15N
*/
import java.sql.*;
import javax.swing.*;
import javax.swing.table.DefaultTableModel;
import javax.swing.text.Position;
77
con
78
79
80
81
jMenu3.setText("File");
jMenuBar2.add(jMenu3);
jMenu4.setText("Edit");
jMenuBar2.add(jMenu4);
jMenu5.setText("File");
jMenuBar3.add(jMenu5);
jMenu6.setText("Edit");
jMenuBar3.add(jMenu6);
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_
CLOSE);
setResizable(false);
jLabel1.setFont(new java.awt.Font("Tahoma", 1, 36)); // NOI18N
jLabel1.setText(" ELECTRONIC MEDICAL RECORD
SYSTEM FOR PATIENTS");
jLabel2.setFont(new java.awt.Font("Tahoma", 3, 14)); // NOI18N
jLabel2.setForeground(new java.awt.Color(51, 51, 255));
jLabel2.setText("PATIENT PERSONAL INFORMATION");
jLabel3.setText("NAME");
jLabel4.setText("Date of Birth");
jLabel5.setText("TEL_NO");
82
83
84
85
}
));
jTable.setColumnSelectionAllowed(true);
jScrollPane1.setViewportView(jTable);
jTable.getColumnModel().getSelectionModel().setSelectionMode(java
x.swing.ListSelectionModel.SINGLE_SELECTION);
fldPatient.addActionListener(new java.awt.event.ActionListener()
{
public void actionPerformed(java.awt.event.ActionEvent evt) {
fldPatientActionPerformed(evt);
}
});
fldDept.setModel(new javax.swing.DefaultComboBoxModel(new
String[] { "Pharmacy", "Out-Patient", "Orthopaedic", "A&E", "Dental
Clinic", "Gynaecology", "Eye Clinic", " " }));
fldDept.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
fldDeptActionPerformed(evt);
}
});
fldBlg.setModel(new javax.swing.DefaultComboBoxModel(new
String[] { "A", "B", "AB", "O" }));
fldBlg.addActionListener(new java.awt.event.ActionListener() {
86
87
fldAge2.setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "Year" }));
fldAge1.setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "Month", "01",
"02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12" }));
List1.addListSelectionListener(new
javax.swing.event.ListSelectionListener() {
Public
valueChanged(javax.swing.event.ListSelectionEvent evt) {
void
List1ValueChanged(evt);
}
});
jScrollPane2.setViewportView(List1);
SearchBtn.setText("Search");
SearchBtn.addActionListener(new
java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
SearchBtnActionPerformed(evt);
}
});
jMenu1.setText("File");
jMenuItem1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java
.awt.event.KeyEvent.VK_N,
java.awt.event.InputEvent.CTRL_MASK));
jMenuItem1.setText("New");
88
jMenu1.add(jMenuItem1);
jMenuBar1.add(jMenu1);
jMenu2.setText("Edit");
jMenu2.add(jSeparator1);
jMenuBar1.add(jMenu2);
setJMenuBar(jMenuBar1);
javax.swing.GroupLayout
javax.swing.GroupLayout(getContentPane());
layout
new
getContentPane().setLayout(layout);
layout.setHorizontalGroup( layout.createParallelGroup(javax.swi
ng.GroupLayout.Alignment.TRAILING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(32, 32, 32)
.addComponent(jScrollPane1))
.addGroup(layout.createSequentialGroup()
.addGap(47, 47, 47)
.
addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Align
ment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(64, 64, 64)
89
.
addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Align
ment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.LEADING)
.addComponent(jLabel3,
javax.swing.GroupLayout.PREFERRED_SIZE,
60,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel5,
javax.swing.GroupLayout.PREFERRED_SIZE,
60,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel8,
javax.swing.GroupLayout.PREFERRED_SIZE,
60,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel4,
javax.swing.GroupLayout.PREFERRED_SIZE,
75,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18,
18,
18)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEA
DING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
layout.createSequentialGroup()
.addComponent(fldSex,
javax.swing.GroupLayout.PREFERRED_SIZE,
99,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(188, 188, 188))
.addGroup(layout.createSequentialGroup()
90
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.LEADING)
.addComponent(fldTel,
javax.swing.GroupLayout.PREFERRED_SIZE,
143,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.TRAILING, false)
.addGroup(layout.createSequentialGroup()
.addComponent(Addbtn)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.REL
ATED,
javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
.addComponent(Updatebtn))
.addGroup(javax.swing.GroupLayout.Alignment.LEADING,
layout.createSequentialGroup()
.addComponent(fldAge,
javax.swing.GroupLayout.PREFERRED_SIZE,
82,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UN
RELATED)
.addComponent(fldAge1,
javax.swing.GroupLayout.PREFERRED_SIZE,
82,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(18, 18, 18)
.
addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Align
ment.LEADING)
91
.addComponent(fldAge2,
javax.swing.GroupLayout.PREFERRED_SIZE,
82,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(Delbtn))))
.addGap(21, 21, 21)))
.addGroup(layout.createSequentialGroup()
.addComponent(fldName,
javax.swing.GroupLayout.PREFERRED_SIZE,
195,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(92, 92, 92)))
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.LEADING)
.addComponent(jLabel7,
javax.swing.GroupLayout.PREFERRED_SIZE,
93,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel12,
javax.swing.GroupLayout.PREFERRED_SIZE,
93,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel11,
javax.swing.GroupLayout.PREFERRED_SIZE,
79,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel10,
javax.swing.GroupLayout.PREFERRED_SIZE,
60,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel9)
.addComponent(jLabel13))
.addGap(51, 51, 51)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.LEADING)
92
.addGroup(layout.createSequentialGroup()
.addComponent(fldPatient,
javax.swing.GroupLayout.PREFERRED_SIZE,
152,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(90, 90, 90)
.addComponent(jLabel15))
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.LEADING)
.addComponent(fldDept,
javax.swing.GroupLayout.PREFERRED_SIZE,
140,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(fldBlg,
javax.swing.GroupLayout.PREFERRED_SIZE,
99,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(fldGtp,
javax.swing.GroupLayout.PREFERRED_SIZE,
99,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(fldRf,
javax.swing.GroupLayout.PREFERRED_SIZE,
99,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(Cadm,
javax.swing.GroupLayout.PREFERRED_SIZE,
196,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(46, 46, 46)
.
addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Align
ment.LEADING)
93
.addComponent(Dtreat,
javax.swing.GroupLayout.PREFERRED_SIZE,
172,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel14,
javax.swing.GroupLayout.PREFERRED_SIZE,
141,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(Cdoc,
javax.swing.GroupLayout.PREFERRED_SIZE,
180,
javax.swing.GroupLayout.PREFERRED_SIZE)))))
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel2,
javax.swing.GroupLayout.PREFERRED_SIZE,
273,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(111, 111, 111)
.addComponent(jLabel6,
javax.swing.GroupLayout.PREFERRED_SIZE,
238,
javax.swing.GroupLayout.PREFERRED_SIZE))))
.addComponent(jLabel1,
javax.swing.GroupLayout.PREFERRED_SIZE,
1133,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(0, 0, Short.MAX_VALUE)))
.addContainerGap())
.addGroup(layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
.addGroup(layout.createParallelGroup(javax.swing.GroupLa
yout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
layout.createSequentialGroup()
94
.addComponent(SearchText,
javax.swing.GroupLayout.PREFERRED_SIZE,
253,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(34, 34, 34))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
layout.createSequentialGroup()
.addComponent(SearchBtn,
javax.swing.GroupLayout.PREFERRED_SIZE,
96,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(125, 125, 125)))
.addComponent(jScrollPane2,
javax.swing.GroupLayout.PREFERRED_SIZE,
565,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(130, 130, 130))
);
layout.setVerticalGroup( layout.createParallelGroup(javax.swin
g.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel1,
javax.swing.GroupLayout.PREFERRED_SIZE,
36,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(28, 28, 28)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.LEADING)
.addComponent(jLabel2,
javax.swing.GroupLayout.PREFERRED_SIZE,
26,
javax.swing.GroupLayout.PREFERRED_SIZE)
95
.addComponent(jLabel6,
javax.swing.GroupLayout.PREFERRED_SIZE,
26,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(37, 37, 37)
.addComponent(jLabel5,
javax.swing.GroupLayout.PREFERRED_SIZE,
26,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addGap(8, 8, 8)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.BASELINE)
.addComponent(jLabel3,
javax.swing.GroupLayout.PREFERRED_SIZE,
26,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(fldName,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))))
.addGap(12, 12, 12))
96
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
layout.createSequentialGroup()
.addPreferredGap(javax.swing.LayoutStyle.Compo
nentPlacement.RELATED)
.addComponent(fldTel,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UN
RELATED)))
.
addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Align
ment.BASELINE)
.addComponent(jLabel4,
javax.swing.GroupLayout.PREFERRED_SIZE,
26,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(fldAge,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(fldAge1,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(fldAge2,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel11,
javax.swing.GroupLayout.PREFERRED_SIZE,
26,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UN
97
RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.LEADING)
.addComponent(jLabel8,
javax.swing.GroupLayout.PREFERRED_SIZE,
26,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(fldSex,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(34, 34, 34)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.BASELINE)
.addComponent(Addbtn)
.addComponent(Updatebtn)
.addComponent(Delbtn)))
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
layout.createSequentialGroup()
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.REL
ATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.BASELINE)
.addComponent(fldPatient,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
98
.addComponent(jLabel15,
javax.swing.GroupLayout.PREFERRED_SIZE,
26,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.REL
ATED)
.addComponent(Cdoc,
javax.swing.GroupLayout.PREFERRED_SIZE,
46,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(11, 11, 11))
.addGroup(layout.createSequentialGroup()
.addGap(11, 11, 11)
.addComponent(jLabel7,
javax.swing.GroupLayout.PREFERRED_SIZE,
26,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.REL
ATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.BASELINE)
.addComponent(jLabel12,
javax.swing.GroupLayout.PREFERRED_SIZE,
26,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(fldDept,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(fldBlg,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.LEADING)
99
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.BASELINE)
.addComponent(jLabel10,
javax.swing.GroupLayout.PREFERRED_SIZE,
26,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(fldGtp,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addGap(15, 15, 15)
.addComponent(jLabel14,
javax.swing.GroupLayout.PREFERRED_SIZE,
26,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UN
RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.BASELINE)
.addComponent(jLabel9,
javax.swing.GroupLayout.PREFERRED_SIZE,
26,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(fldRf,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UN
RELATED)
100
.
addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Align
ment.LEADING)
.addComponent(jLabel13,
javax.swing.GroupLayout.PREFERRED_SIZE,
26,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(Cadm,
javax.swing.GroupLayout.PREFERRED_SIZE,
42,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addComponent(Dtreat,
javax.swing.GroupLayout.PREFERRED_SIZE,
55,
javax.swing.GroupLayout.PREFERRED_SIZE))))
.
addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.REL
ATED, 20, Short.MAX_VALUE)
.addComponent(jScrollPane1,
javax.swing.GroupLayout.PREFERRED_SIZE,
112,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UN
RELATED)
.
addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Align
ment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(SearchText,
javax.swing.GroupLayout.PREFERRED_SIZE,
42,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UN
RELATED)
101
.addComponent(SearchBtn,
javax.swing.GroupLayout.PREFERRED_SIZE,
32,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(jScrollPane2,
javax.swing.GroupLayout.PREFERRED_SIZE,
318,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(344, Short.MAX_VALUE))
);
pack();
}// </editor-fold>
private void CadmActionPerformed(java.awt.event.ActionEvent evt)
{
// TODO add your handling code here:
}
private void CdocActionPerformed(java.awt.event.ActionEvent evt)
{
// TODO add your handling code here:
}
private void DtreatActionPerformed(java.awt.event.ActionEvent
evt) {
// TODO add your handling code here:
}
private void fldTelActionPerformed(java.awt.event.ActionEvent evt)
{
// TODO add your handling code here:
102
}
private void fldNameActionPerformed(java.awt.event.ActionEvent
evt) {
// TODO add your handling code here:
}
private void AddbtnActionPerformed(java.awt.event.ActionEvent
evt) {
DefaultTableModel model = (DefaultTableModel)
jTable.getModel();
model.addRow(new Object[] {fldName.getText(),
fldPatient.getText(),
fldTel.getText(),
fldDept.getSelectedItem(),
fldAge.getSelectedItem(),
fldAge1.getSelectedItem(),
fldAge2.getSelectedItem(),
fldBlg.getSelectedItem(),
fldSex.getSelectedItem(),
fldGtp.getSelectedItem(),
fldRf.getSelectedItem(),
Cadm.getText(),
Cdoc.getText(),
Dtreat.getText()})
try{
String url = "jdbc:mysql://localhost:3306/henry?
zeroDateTimeBehavior=convertToNull";
String username = "root";
String password = "henry";
Connection
DriverManager.getConnection(url,username,password);
con
103
BLOOD_GROUP,
GENOTYPE,
RHESUS_FACTOR,
CAUSE_OF_ADMISSION,
COMMENT_BY_DOCTOR,DURATION_OF_TREATMENT
)
VALUES ('"+fldName.getText()+"' , '"+fldPatient.getText()+"' ,
'"+fldTel.getText()+"'
,
'"+fldAge.getSelectedItem()+"',
'"+fldAge1.getSelectedItem()+"', '"+fldAge2.getSelectedItem()+"' ,
'"+fldSex.getSelectedItem()+"',
'"+fldDept.getSelectedItem()+"',
'"+fldBlg.getSelectedItem()+"',
'"+fldGtp.getSelectedItem()+"',
'"+fldRf.getSelectedItem()+"', '"+Cadm.getText()+"', '"+Cdoc.getText()
+"', '"+Dtreat.getText()+"' )";
stmt.execute(Query);
JOptionPane.showMessageDialog(null, "Patient Record added
to database");
fldName.setText(null);
fldTel.setText(null);
fldPatient.setText(null);
fldDept.setSelectedItem("00");
fldAge.setSelectedItem("00");
fldAge1.setSelectedItem("00");
fldAge2.setSelectedItem("0000");
fldBlg.setSelectedItem("00");
fldSex.setSelectedItem("00");
fldGtp.setSelectedItem("00");
fldRf.setSelectedItem("00");
Cadm.setText(null);
Cdoc.setText(null);
104
Dtreat.setText(null);
}
catch(SQLException ex){
JOptionPane.showMessageDialog(null, ex.toString());
}
}
private void UpdatebtnActionPerformed(java.awt.event.ActionEvent
evt) {
DefaultTableModel model = (DefaultTableModel)
jTable.getModel();
model.addRow(new Object[] {fldName.getText(),
fldPatient.getText(),
fldTel.getText(),fldDept.getSelectedItem(),
fldAge.getSelectedItem(),
fldAge1.getSelectedItem(),
fldAge2.getSelectedItem(),
fldBlg.getSelectedItem(),fldSex.getSelectedItem(),
fldGtp.getSelectedItem(), fldRf.getSelectedItem(), Cadm.getText(),
Cdoc.getText(), Dtreat.getText()});
try{
String url = "jdbc:mysql://localhost:3306/henry?
zeroDateTimeBehavior=convertToNull";
String username = "root";
String password = "henry";
Connection
DriverManager.getConnection(url,username,password);
Statement stmt = con.createStatement();
105
con
106
107
Connection
DriverManager.getConnection(url,username,password);
con
108
con
109
JOptionPane.showMessageDialog(null, ex.toString());
}
}
private void SearchBtnActionPerformed(java.awt.event.ActionEvent
evt) {
int result = List1.getNextMatch(SearchText.getText(), 0,
Position.Bias.Forward);
List1.setSelectedIndex(result);
}
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel
setting code (optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with
the default look and feel.
*
For
details
see
http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.ht
ml
*/
try {
110
111
}
});
}
// Variables declaration - do not modify
private javax.swing.JButton Addbtn;
private javax.swing.JTextField Cadm;
private javax.swing.JTextField Cdoc;
private javax.swing.JButton Delbtn;
private javax.swing.JTextField Dtreat;
private javax.swing.JList List1;
private javax.swing.JButton SearchBtn;
private javax.swing.JTextField SearchText;
private javax.swing.JButton Updatebtn;
private javax.swing.ButtonGroup buttonGroup1;
private javax.swing.JComboBox fldAge;
private javax.swing.JComboBox fldAge1;
private javax.swing.JComboBox fldAge2;
private javax.swing.JComboBox fldBlg;
private javax.swing.JComboBox fldDept;
private javax.swing.JComboBox fldGtp;
private javax.swing.JTextField fldName;
112
113
114