0% found this document useful (0 votes)
685 views

Comm 226 Assignment #2 Database

This document discusses the design of a database for a medical clinic using Microsoft Visio 2010. The entity-relationship diagram identifies key entities like Patient, Appointment, Visit, and Bill with attributes and relationships. The data dictionary defines the data type and format of each attribute. Queries are provided to retrieve specific patient information based on appointments, doctors, and amounts owed over $100. While spreadsheets can track some data, a database is necessary for ongoing record keeping, reports, and information changes.

Uploaded by

tits6969
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
685 views

Comm 226 Assignment #2 Database

This document discusses the design of a database for a medical clinic using Microsoft Visio 2010. The entity-relationship diagram identifies key entities like Patient, Appointment, Visit, and Bill with attributes and relationships. The data dictionary defines the data type and format of each attribute. Queries are provided to retrieve specific patient information based on appointments, doctors, and amounts owed over $100. While spreadsheets can track some data, a database is necessary for ongoing record keeping, reports, and information changes.

Uploaded by

tits6969
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 6

Ewa Filipek (1128000) July 1, 2012

Comm226
Assignment #2: Business Case Medical Clinic
I have designed a daa !ase "o# he $edi%al Clini% &'# $aa( !y using $i%#oso" )isio
2010* +he so"wa#e allowed me o %#eae he eniy,#elaionship diag#am (E-')* I
ideni"ied "ollowing eniies. /aien, 0ppoinmen, 'o%o#, )isi, 1ill* 0ll "ive o" hem
%onain insan%es* -elaionships a#e #ep#esened !y lines !eween eniies* +he
#elaionship lines a#e la!eled o de"ine he #elaionship* In addiion, ea%h eniy %onains
one o# mo#e o" /2 (p#ima#y keys)* 3ome o" hem also %onain F2 ("o#eign keys)*
In my model, I wish o indi%ae ha ea%h paien %an ake &4e#o o# mo#e( appoinmens
wih one o# many do%o#s* +he same "o# do%o#s, ea%h do%o# %an a%%ep &4e#o o# mo#e(
appoinmens* 5oweve#, ea%h appoinmen is made wih only one do%o# and one paien*
Ea%h appoinmen yields a visi* Ea%h do%o# %an !ill many visis* Ea%h visi %#eaes one
!ill* $any !ills %an !e paid !y a paien*
/lease noe ha he daa di%iona#y o" my %omplee model was %#eaed !y using
$i%#oso" E6%el* $o#eove#, wo 7ue#ies a#e asked, whe#e ea%h implies he use o" h#ee
a!les*
1
DBMSs ('aa 1ase $anagemen 3ysems) %ome in many di""e#en shapes, si4es and
"lavo#s, howeve#, he#e a#e wo !asi% %aego#ies. Ene#p#ise and /e#sonal (1u#ns, 2012)*
0n enterprise DBMS is designed "o# s%ala!iliy and high pe#"o#man%e* I mus !e %apa!le
o" suppo#ing ve#y la#ge daa!ases, a la#ge num!e# o" %on%u##en use#s, and muliple ypes
o" appli%aions* +he ene#p#ise '1$3 will #un on a la#ge,s%ale ma%hine, ypi%ally a
main"#ame o# a high,end 8ni6, 9inu6, o# :indows ma%hine* Fu#he#mo#e, an ene#p#ise
'1$3 o""e#s all o" he &!ells and whisles( availa!le "#om he '1$3 vendo# ($ullins,
2011)* Personal DBMSs a#e inended o !e used as lea#ning ools o# in low demand
siuaions, su%h as. pe#sonal p#o;e%s (1u#ns, 2012)*
$edi%al Clini% &'# $aa( #e7ui#es using he &ene#p#ise( %aego#y o" daa!ase* 3in%e any
medium o la#ge medi%al %lini% will have many use#s a he same ime, i is a mus o
p#ovide he %ompany wih he !es soluion* 0lhough, he daa!ase %#eaed !y using
)isio is no %omple6, i sais"ies he needs o" he %lini%* <n he ohe# hand, he#e a#e many
small %ompanies ha #y o %u some e6penses and %hoose he &pe#sonal( %aego#y o"
daa!ase* 3u%h soluion is no #e%ommended !e%ause i migh a""e% he ove#all
pe#"o#man%e o" he %ompany* 0%%o#ding o $ullins (2011), a pe#sonal '1$3 p#odu% is
suied only "o# small s%ale p#o;e%s and should no !e used o deploy muli,use#
appli%aions*
Spreadsheets su%h as $i%#oso" E6%el %an !e used o keep #a%k o" his daa= howeve#,
he#e a#e nume#ous disadvanages o" doing so* 'aa so#age %an !e a #ou!lesome when
using sp#eadshee* 0 sp#eadshee has se#ious d#aw!a%ks when used "o# daa so#age, is
%um!e#some o #e#ieve daa "#om any !u he mos simplisi% 7ue#ies, o""e#s lile o# no
daa validaion and lile o# no p#oe%ion agains daa %o##upion "#om well,meaning !u
poo#ly #ained use#s (I ge i>, 2012)* ?eve#heless, many %ompanies use !oh he
sp#eadshees and daa!ases o keep #a%k o" he daa* In ou# %ase, he use o" a sp#eadshee
%an !e ve#y help"ul i" we wan o %#un%h num!e#s and pe#"o#m auomai% %al%ulaions, o
#a%k a simple lis o" daa, o easily %#eae %ha#s and g#aphs o" his daa, o %#eae @:ha,
i"@ s%ena#ios* <n he ohe# hand, he daa!ase would !e ne%essa#y o mainain #e%o#ds "o#
2
ongoing use, o gene#ae #epo#s !ased on he in"o#maion, and o implemen %hanges o"
he in"o#maion*
Diagram prepared by using Visio
A
Data dictionary
Entities Instances Data Type Format Req'd PK
or
FK
FK Referenced
table
PATIENT Patient_ID INTEGER 99999999
9
Y PK,F
K
APPOINTMENT,
VISIT, BILL
Last_Name VARCHAR!
"#
$$$$$$$$$
$
Fi%st_Name VARCHAR!
"#
$$$$$$$$$
$
A&&%ess VARCHAR!"
'#
$$$$$$$$$
$
Cit( VARCHAR!"
'#
$$$$$$$$$
$
P)*ne_N+m,
e%
VARCHAR!-
#
99999999
9
APPOINTME
NT
A..*intment
_ID
INTEGER 99999999
9
Y PK,F
K
VISIT, BILL
Date INTEGER ((((/mm/
&& ))0mm
1ns2)e&+3e& VARCHAR!"
'#
$$$$$$$$$
$
(
DOCTOR D*2t*%_ID INTEGER 99999999
9
Y PK,F
K
APPOINTMENT,
VISIT, BILL
Fi%st_Name VARCHAR!"
'#
$$$$$$$$$
$
Last_Name VARCHAR!"
'#
$$$$$$$$$
$
M*,i3e_P)*n
e
VARCHAR!-
#
99999999
9
VISIT Visit_ID INTEGER 99999999
9
Y PK,F
K
BILL
Dia4n*sis VARCHAR!"
'#
$$$$$$$$$
$
T%eatment VARCHAR!"
'#
$$$$$$$$$
$
Me&i2a3_Hist
*%(
VARCHAR!"
'#
$$$$$$$$$
$
BILL Am*+nt_O5e
&_ID
N1MBER!6,# 9999799 Y PK
Insta33ments N1MBER!6,# 9999799

Queries:
! 3E9EC+ 'o%o#BI', /aienBI', 0mounB<wedBI', 0ppoinmenBI'
F-<$ 'o%o#, )isi, 1ill
:5E-E 0mounB<wedBI' C 100
+he #esul o" he 7ue#y will show whi%h paiens owe mo#e han 100 o he %lini%, as well
as who !illed hem and du#ing wha appoinmen*
2! 3E9EC+ /aienBI', 'o%o#BI', 0ppoinmenBI'
D
F-<$ 0ppoinmen, )isi, 'o%o#
:5E-E /aienBI' 9I2E EF-<912AFG
+he #esul o" he 7ue#y will show some spe%i"i% in"o#maion a!ou a pa#i%ula# paien,
su%h as. all appoinmens aken o# !ooked and wih whom*
H
"or#s Cited
1u#ns, J* (2012)* HTML Goodies. -e#ieved 06 2012, "#om 5+$9 Ioodies sie.
(hp.JJwww*hmlgoodies*%omJp#ime#sJdaa!aseJa#i%le*phpJADK8121J+o,8se,o#,?o,o,
8se,a,'aa!ase,+ha,is,he,Luesion*hm)
I get it! (2012)* -e#ieved 06 2012, "#om I ge i> sie.
hp.JJwww*igei*neJnewslee#sJM0AB0DJssvd!*asp6
$ullins, C* 3* (2011, ?ov 28)* Data and Technology Today. -e#ieved 06 2012, "#om
'aa and +e%hnology +oday 3ie.
hp.JJdaae%hnologyoday*wo#dp#ess*%omJ2011J11J28J%hoosing,a,d!msJ
6

You might also like