Title: Introduction to Personal Databases
1Introduction to Personal Databases
Biomedical Informatics Fall 2008 Woods Hole, MA
- David Remsen
- 23 September 2008
2Two data management practicals
3Workshop Objectives
- Extend Principles of Database Design to a
hands-on practical that applies the principles - Create a set of tables to model a simple use case
- Add content (data) to the tables
- Define the relationships between the tables
- Define different views of the data
- Utilize the power of RDBMS to optimize a workflow
4Use Case
- Create a simple data structure that tracks tests
given to patients across one or more admissions. - Records information about a patient
- Enable a patient to be admitted one or more times
- Create a catalog of tests administered to
patients during the admission period - Record test results given to patients
- Complete in 2 hours!!
5Sample Data
6One to Many
7Many to Many
8One to Many in One Table
9One to Many in One Table
10Simple patient record database
11Relational Database Management System
12End of Introduction
13Create first table Patients
14Specify options for columns
15Add records with initial entry View
16Changing the view with Layouts
17Add additional views of the same table
Select from pre-defined general types or start
with a blank view
18Proceed through steps select columns
19New view is created as new layout
20Create the Admissions table
Its generally a good idea to create a primary
key for every table
21Have the system work for you
RDBMS features facilitate data entry
22Better, but still doing it the hard way
Manually entering the patient ID.
23Your first relationship
24Finding common ground/maintaining integrity
25Making relationships work for you
A one to one relationship view
26One to Many Relationship Views
View multiple admissions for one patient.
27One to Many Relationship Views
Select the columns from the related database to
add to the view
28Modify to optimize data entry
Enable new admissions to be made from the
Patients Table view
29Create a new admission the easy way
30Create two more tables Tests
Create the table and make at least the following
records
31Create two more tables Test Results
32Relationships can be complicated
Table Results joins Admissions and Tests in a
many-to-many relationship
33View test results from Admissions View
34Let the system work for you
Create a Value List made up of tests from the
Test tables
35Define a list of values
36Attach the value list to a field
37Select a Test from the list to enter a new result
38Summary
A normalized view of the use case we created.