comp4 unit6d lecture slides
TRANSCRIPT
Introduction to Information and Computer ScienceDatabases and SQL
Lecture d
This material (Comp4_Unit6d) was developed by Oregon Health & Science University, funded by the Department of Health and Human Services, Office of the National Coordinator for Health Information Technology under Award Number
IU24OC000015.
Databases and SQLLearning Objectives
• Define and describe the purpose of databases (Lecture a)• Define a relational database (Lecture a)• Describe data modeling and normalization (Lecture b)• Describe the structured query language (SQL) (Lecture c)• Define the basic data operations for relational databases and how to
implement them in SQL (Lecture c)• Design a simple relational database and create corresponding SQL
commands (Lecture c)• Examine the structure of a healthcare database component (Lecture
d)
2Health IT Workforce Curriculum Version 3.0/Spring 2012
Introduction to Information and Computer Science Databases and SQL
Lecture d
Sample Database Use in VistA• VistA: Veterans
Health Information Systems and Technology Architecture
• Used at Department of Veterans Affairs (VA) health care facilities (US Dept. of Veterans Affairs, 2007, PD-US)
3Health IT Workforce Curriculum Version 3.0/Spring 2012
Introduction to Information and Computer Science Databases and SQL
Lecture d
NUMI• National Utilization Management Integration (NUMI)
supports reviews of clinical care activities• NUMI documents patient movements• NUMI is separate from VistA
(NUMI, 2011, PD-US)
4Health IT Workforce Curriculum Version 3.0/Spring 2012
Introduction to Information and Computer Science Databases and SQL
Lecture d
Workflow
(NUMI, 2011, PD-US)
5Health IT Workforce Curriculum Version 3.0/Spring 2012
Introduction to Information and Computer Science Databases and SQL
Lecture d
NUMI TablesAdmissionReviewTypeCareLevelCermeReviewXMLDismissStayReasonFacilityTreatingSpecialtyMASMovementTransactionTypeMASMovementTypeNumiUserNumiUserSiteActivityBitmaskPatientPatientAuditPatientReviewPatientReviewAuditPatientReviewReasonPatientStay
PatientStayAuditPhysicianPhysicianAdvisorPatientReasonPhysicianAdvisorPatientReviewPhysicianAdvisorPatientReviewAuditReasonRegionReportsReviewTypeServiceSectionSiteStatusVISNWardLocationWebLog
6Health IT Workforce Curriculum Version 3.0/Spring 2012
Introduction to Information and Computer Science Databases and SQL
Lecture d
Patient Table (Select Elements)Element Name Data Type Primary
KeyForeign Key
Comments
PatientID int Yes No ID number for patient
PatientName varchar No No Name that the NUMI system associates with patient
Sex varchar No No Sex designation associated with the patient
SSN varchar No No Social Security Number associated with patient
SiteID smallint Yes Yes ID number for Site
6.24 Table: Patient table (Select elements) (PD-US).
7Health IT Workforce Curriculum Version 3.0/Spring 2012
Introduction to Information and Computer Science Databases and SQL
Lecture d
Site Table (Select Elements)Element Name Data
TypePrimary Key
Foreign Key
Comments
SiteID smallint Yes No ID number for site
SiteName varchar No No Name of site
DisplayName varchar No No Displayed name for site
6.25 Table: Site table (Select elements) (PD-US).
8Health IT Workforce Curriculum Version 3.0/Spring 2012
Introduction to Information and Computer Science Databases and SQL
Lecture d
ER Diagram
6.26 Diagram: Entity-relationship (ER) Diagram. (PD-US, 2011)
9Health IT Workforce Curriculum Version 3.0/Spring 2012
Introduction to Information and Computer Science Databases and SQL
Lecture d
Patient Review Table (Select Elements)
Element Name Data Type Primary Key
Foreign Key
Comments
PatientReviewID bigint Yes No ID number for Patient Review
PatientID int No Yes ID number for Patient
ReviewDate smalldatetime
No No Date patient was reviewed
UMRAttendingPhysicianID int No Yes ID number for Attending Physician
PatientStayID bigint No Yes ID number for Patient Stay
CurrentCareLevelID tinyint No Yes ID number for Level of Care
WardLocationID smallint No Yes ID number for Ward Location
6.27 Table: Patient review table (Select elements) (PD-US, 2011).
10Health IT Workforce Curriculum Version 3.0/Spring 2012
Introduction to Information and Computer Science Databases and SQL
Lecture d
ER Diagram
6.28 Diagram: Entity-relationship diagram (PD-US, 2011).
11Health IT Workforce Curriculum Version 3.0/Spring 2012
Introduction to Information and Computer Science Databases and SQL
Lecture d
Patient Review in NUMI
(NUMI, 2011, PD-US)
12Health IT Workforce Curriculum Version 3.0/Spring 2012
Introduction to Information and Computer Science Databases and SQL
Lecture d
Databases and SQLSummary – Lecture d
• Viewed an example application: NUMI• Examined the NUMI database structure
– Tables– Relationships
13Health IT Workforce Curriculum Version 3.0/Spring 2012
Introduction to Information and Computer Science Databases and SQL
Lecture d
Databases and SQLSummary
• Data and type are independent• Speed and efficiency are critical for data access• Four basic data operations: retrieval, addition, modification and deletion• Information relationships and types are maintained in a relational database• Designed a simple database• Improved the database design using normalization to remove duplicate data• Introduced to SQL statements and data types• Created a database and database tables• Learned basic select, insert, delete and update SQL statements• Examined design of a production healthcare database
14Health IT Workforce Curriculum Version 3.0/Spring 2012
Introduction to Information and Computer Science Databases and SQL
Lecture d
Databases and SQLReferences – Lecture d
References• U.S. Department of Veterans Affairs. (2011, September 21, 2011). Veterans Health Information Systems and
Technology Architecture. Retrieved December 19, 2011, from http://www.va.gov/VISTA_MONOGRAPH/index.asp • U.S. Department of Veterans Affairs. (2011). User Guide for National Utilization Management Integration (NUMI),.
Retrieved Jan 2012 from http://www.va.gov/vdl/documents/HealtheVet/National_Utilization_Management_Integration/numi_user_guide-v1_1_13.doc
• U.S. Department of Veterans Affairs. (2011). Systems Management Guide for National Utilization Management Integration (NUMI). Retrieved Jan 2012 from http://www.index.va.gov/search/va/va_search.jsp?QP=on&QT=Systems+Management+Guide+for+National+Utilization+Management&SQ=http%3A%2F%2Fwww.va.gov%2Fvdl%2Fdocuments%2FHealtheVet%2FNational_Utilization_Management_Integration%2Fnumi_system_management_guide-1_1_13.doc.
15Health IT Workforce Curriculum Version 3.0/Spring 2012
Introduction to Information and Computer Science Databases and SQL
Lecture d
Charts, Tables, Figures• 6.24 Table: Patient table (Select elements) (PD-US). • 6.25 Table: Site table (Select elements) (PD-US). • 6.26 Diagram: Entity-relationship (ER) Diagram. (PD-US, 2011)• 6.27 Table: Patient review table (Select elements) (PD-US, 2011).• 6.28 Diagram: Entity-relationship diagram (PD-US, 2011).
Databases and SQLReferences – Lecture d
IMAGES• Slide 3: VistA Image [image on the Internet]. US Dept. of Veterans Affairs (2007). [Updated 10/29/2007; cited
11/8/2011]. Retrieved Jan 2012 from: http://en.wikipedia.org/wiki/File:VistA_Img.png. (PD-US). • Slides 4,12 : NUMI Screenshot . NUMI (2011). U.S. Department of Veterans Affairs. User Guide for National
Utilization Management Integration (NUMI). Retrieved Jan 2012 from http://www.va.gov/vdl/documents/HealtheVet/National_Utilization_Management_Integration/numi_user_guide-v1_1_13.doc. (PD-US).
• Slide 5: NUMI Workflow. NUMI (2011). U.S. Department of Veterans Affairs. User Guide for National Utilization Management Integration (NUMI). Retrieved Jan 2012 from http://www.va.gov/vdl/documents/HealtheVet/National_Utilization_Management_Integration/numi_user_guide-v1_1_13.doc. (PD-US).
16Health IT Workforce Curriculum Version 3.0/Spring 2012
Introduction to Information and Computer Science Databases and SQL
Lecture d