SlideShare a Scribd company logo
1 of 31
1
TABLE OF CONTENTS
Page No
Acknowledgement.......................................................................................................................i
Certificate…...............................................................................................................................ii
List of Figures...........................................................................................................................iii
Abstract.....................................................................................................................................iv
Chapter 1
1 The Development of Medical Databases.................................................................................2
1.1 The Origins of Medical Databases……..………………………………………………….2
1.2 Requirements and Structural Designs for Medical Databases..…………………………...5
Chapter 2
Classification of Medical Databases…………………………………………………………..7
Chapter 3
Health Care…………………………………………………………………………………...12
3.1 Health Care Value Cycle…………………………………………………………………12
3.2 Health Care Bill…………………………………………………………………………..15
3.3 Roles Played by the Date Dimension…………………………………………………….18
3.4 Multivalued Diagnosis Dimensions……………………………………………………...19
3.5 Extending a Billing Fact Table to show Profitability…………………………………….23
3.6 Dimensions for Billed Hospital Stays……………………………………………………23
3.7 Complex Health Care Events…………………………………………………………….24
3.8 Medical Records………………………………………………………………………….26
3.9 Fact Dimension for Sparse Facts…………………………………………………………26
4. Conclusion…………………………………………………………………………………29
5. References…………………………………………………………………………………31
2
Chapter I
THE DEVELOPMENT OF MEDICAL DATABASES
Since the early 1900s physicians have followed the teachings of the famed clinician. W Osler,
to study and learn from their patients and from the medical records of their patients, in order to
improve their knowledge of diseases. In the 2000s, as in the 1900s, physicians continue to
initiate this learning process by taking a history of the patient’s medical problems, performing
a physical examination of the patient, and then recording the history and physical examination
findings in the patient’s medical record. To confirm a preliminary diagnosis and to rule-out
other possible diagnoses, physicians refer the patients for selected tests and procedures that
usually involve the clinical laboratory, radiology, and other clinical-support services. After
reviewing the information received from these services, physicians usually arrive at a more
certain diagnosis, and then prescribe appropriate treatment. For an unusual
or a complex medical problem, physicians may refer the patient to appropriate clinical
specialists, and may also review evidence-based reports of appropriate therapies by consulting
relevant medical literature and bibliographic databases.
1.1 The Origins of Medical Databases
Lindberg (1979) described the degrees of difficulty in the development of medical innovations
in the grades of their complexity: (1) the easiest was the automation of a simple function such
as providing a patient’s billing for services; (2) more difficult was the automation of a more
complex function such as collecting and storing a patient’s medical history; (3) very difficult
was constructing a very complex func-tion such as a medical database; and (4) the most
difficult was developing the highly complex medical information and database-management
system for a hospital, as Starr (1982) had aptly ranked the hospital to be the most complex
organizational structure created by man.
Databases were defined by Frawley et al. (1992) as logically integrated collections of data in
one or more computer files, and organized to facilitate the efficient storage, change, query, and
retrieval of contained relevant information to meet theneeds of its users. Frawley estimated that
the amount of information generated in the world doubled every 20 months, and that the size
and number of computer data-bases increased even faster. Clinical repositories was the term
proposed by Johnson (1996) as more accurately representing a shared resource of patient data
that was collected for the purpose of supporting clinical care. Johnson advised that a large-
3
scale, clinical repository required: (a) a data model to define its functional require-ments and
to produce a formal description, (b) a conceptual schema of all the data generated in the
enterprise and how it was all related, and (c) a database structural design to define its technical
requirements. Since a medical database usually oper-ated within a medical database-
management system, the database needed to be compatible with the information system of the
enterprise of which it was a part; and it also needed to be operationally and structurally
independent of all subsystems and applications programs. The evolution, design,
implementation, and management of computer-stored databases were described in some detail
by Connolly and Begg (1999), Collen (1986, 1990, 1994, 1995); and also by Coltri (2006) who
considered computer-stored databases to be one of the most important developments in soft-
ware engineering.
Database-management systems soon replaced the earlier file-based systems that often stored
the same data in multiple files, and where it could be more difficult to retrieve and coordinate
a patient’s data. A database-management system was defined by Blum (1986a, b, c) as software
consisting of a collection of procedures and pro-grams with the requirements for: (1) entering,
storing, retrieving, organizing, updat-ing, and manipulating all of the data within its database;
(2) managing the utilization and maintenance of the database; (3) including a metadatabase to
define applica-tion-specific views of the database; (4) entering data only once, even though the
same data might be stored in other subsystems; (5) retrieving, transferring, and communicating
needed data in a usable format, and having the ability to create inverted files indexed by key
terms; (6) maintaining the integrity, security, and required level of confidentiality of its
patients’ data; and (7) fulfilling all manage-ment, legal, accounting, and economic
requirements.
In the 1950s with the development of computers, physicians began to bring their work in
batches to a central computer to be processed. Patient-care data were ini-tially collected,
entered, and merged into computer files that were stored on mag-netic tape, and a file-
management system was designed to enter, store, and retrieve the data. In the 1960s time-
shared, mainframe computers that communicated by telephone lines to remote data-entry
terminals and printers, allowed many users to process their data concurrently, and also provided
a relatively acceptable turn-around time for data services. Patients’ data were initially stored in
computer data-bases on magnetic tape; but were soon moved to storage on random-access,
magnetic disc drives; and were then better organized in a manner more suitable for query and
4
retrieval of the data. However, at that time the high costs for computer storage greatly limited
database capacities. In the 1970s as clinical support subsystems evolved for the clinical
laboratory, radiology, pharmacy, and for other clinical services, most developed their own
separate databases. With the emergence of random-access disc storage, subsystem databases
could be more readily merged into larger databases and then needed an integrating database-
management system. The retrieval of subsets of selected data from various databases required
some re-organization of the stored data, and also needed an index to the locations of the various
data subsets. Attempts were made to design more efficient databases to make them independent
of their applications and subsystems, so that a well-designed database could process almost
any type of data presented to it. Terdiman (1982) credited the development of microcomputer
technology in the 1970s with many of the subsequent advances in database-management
systems.
In the 1980s microcomputers and minicomputers were increasingly used for small database
systems. As storage technology continued to become more efficient, and larger and cheaper
storage devices became available, then computer-based registries expanded their storage
capacity for larger amounts of data and were then generally referred to as databases. When
huge storage capacity became available at a relatively low-cost, very large collections of data
were then often referred to as data warehouses. Bryan (1988) called 1988 the “year of the
database”; and he reported that more than 20 new or improved database-management systems
became available in that year. In 1989 the total number of computer-stored databases in the
world was estimated to be about five-million; and although most of the databases were
considered to be relatively small, some were huge as was the 1990 U.S. census database
comprising a million-million bytes of data (Frawley et al. 1992). Prior to the 1990s most
physicians documented their patient-care activities by handwriting in paper-based charts.
Surgeons and pathologists usually dictated their reports describing their procedures and
findings; and medical secretaries then transcribed their dictations. With the increasing access
to larger computers in the 1990s, medical centre-based physicians began entering a patient’s
data directly into the patient’s electronic medical record (EMR) using keyboard terminals and
clinical workstations. Dedicated computers became database servers to store and integrate
multiple databases; and to be able to add new data without disrupting the rest of the system. In
the 2000s EMRs became more common; and new advances in informatics technology resulted
in more efficient data management of expanding, multi-media, patient-care databases (Coltri
2006). More details on the origins and the development of medical databases can be found in
5
Blum (1983, 1986), Blum and Duncan (1990), Collen (1986, 1994, 1995), Coltri (2006), Duke
and Bowers (2006), Campell-Kelly (2009).
1.2 Requirements and Structural Designs for Medical
Databases
Data-modelling designs to provide the conceptual schema that represented the information in
clinical repositories were advocated by Johnson (1996) to be as important for large medical
databases as were their structural designs. He defined the conceptual schema for patient care
as a representation of all of the data types required to manage the health-care process, whether
using a hierarchical, a relational, or an object oriented structural database design, or a
combination of database structural designs. He advised that the structural design of a database
needed to be able to provide rapid retrieval of data for individual patients, and to have the
capability to adapt to changing information needs of growth and new technology; yet he
emphasized that the primary purpose of the database structural design was to implement the
conceptual schema. To properly build a database, Johnson (1996) proposed that it was
necessary to first develop a model of the database that defined its functional requirements, its
technical requirements, and its structural design. The database model needed to produce a
formal description, a conceptual schema of all the data generated in the enterprise, and how all
of the data were related. Thus the users of a medical database needed to define its functional
requirements as to exactly what they wanted the database and its database-management system
to do. Since a medical database usually operated within a larger medical-information system,
the functional requirements of the medical database needed to be compatible with those of the
medical enterprise of which it was a part. Whether a medical database served as the primary
electronic medical record (EMR), or served as a secondary medical database, such as a clinical
research database with its data derived from the EMR, both had some similar basic functional
requirements. Davis and Terdiman (1974) recommended that as a minimum, the major goals
of a medical database should be:
(1)Tto maintain readily accessible all of the relevant data for each patient served; and
(2)To provide a resource for the systematic retrieval of all relevant data from all patients’
records for any desired primary purpose, or for a secondary administrative or a research
purpose.
6
The structural design of medical databases was substantially developed by Wiederhold
(1981, 1982, 1983, 1984), Wiederhold et al. (1975, 1987) at Stanford University. Wiederhold
emphasized that the effectiveness of a database depended on its relevance to its organizational
purposes; that it had to serve as a resource to the enterprise which had collected the data; and
that a database-management system was needed to control, store, process, and retrieve the data.
He advised that when using very large databases it was helpful to apply automated methods for
the acquisition and retrieval of the desired information. Several database structural designs
evolved as new medical and informatics technologies were developed to meet the various
users’ requirements.
Hierarchical tree-structured databases were considered by Coltri (2006) to be the simplest and
earliest structural design used for medical databases. In a hierarchical designed database the
data was organized in what was usually described as a “parent–child” relationship, where each
“parent” could have many “children”, but each “child” had only one “parent”. Hierarchical
data subclasses with inheritance of attributes could also appear in other designed databases,
such as in relational and in object-oriented databases. A. Coltri reported that the best known
early example of a hierarchical structured, medical database was the one developed in the 1960s
by Barnett (1974), Barnett et al. (1981) and associates (Greenes et al. 1969; Grossman et al.
1973). Their Massachusetts General Hospital Utility Multi-Programming System (MUMPS)
was designed for building and managing dynamic hierarchical databases with interactive
computing applications and online transactional processing.
7
CHAPTER 2
CLASSIFICATION OF MEDICAL DATABASE
Medical databases are classified in this book in accordance with their objectives, which can be
to support clinical patient care, or to support medical research, or sup-port administrative
functions, or public health objectives. Medical databases collect, integrate, and store data from
various sources; and they are usually considered to be primary databases if the data were
initially collected and used to serve the direct purposes of the user; and are considered to be
secondary databases when data derived from primary databases were stored in other databases
and used for other objectives (Glichlich et al. 2007).
Clinical databases include a variety of primary and secondary databases that are used primarily
by physicians to support their clinical patient care by helping in making decisions for the
diagnosis and treatment of patients. The great utility of clinical databases resides in their
capacity for storing huge volumes of information collected from large numbers of patients and
from other clinical sources; and for their ability to help users to search, retrieve, and analyze
information relevant to their clinical needs. Michalski et al. (1982) described clinical databases
as constructed to collect patient data and to learn more about the phenomena which produced
the data; and he divided techniques for using clinical databases into:
(a) Descriptive analyses to extract summaries of important features of a database, such as
grouping patients with similar syndromes and identifying important characteristics of each
syndrome; and
(b) Predictive analyses to derive classification rules, such as developing rules which predict the
course of a disease. Clinical databases were differentiated by Hlatky (1991) as either primary
medical databases that are intended to assist and support decision making in direct patient care;
or as secondary medical data-bases that are the repositories of data derived from medical
primary databases, and these include medical specialized databases and medical research
databases.
Primary medical record databases, also more commonly referred to as patient record databases,
as electronic medical records (EMRs) or as electronic health records (EHRs), are the data
repositories used by physicians, nurses, and other health-care providers to enter, store, and
8
retrieve patients’ data during the process of providing patient care. The National Library of
Medicine’s MESH terms defines an electronic medical record (EMR) as a computer-based
system for input, storage, display, retrieval, and printing of information contained in a patient’s
medical record (Moorman et al. 2009). Primary clinical databases also include the separate
repositories for storing data collected from clinical specialties, such as from surgery,
paediatrics, obstetrics, and other clinical services; and from the clinical support services, such
as from laboratory, radiology, pharmacy, and others. Patient record databases may contain data
collected over long periods of time, sometimes for a patient’s life-time; they are accessed by a
variety of users for different patient-care purposes; and they need to satisfy legal requirements
for maintaining the security, privacy and confidentiality of all of their patients’ data. When
computer-based patients’ records replaced paper-based patients’ charts, the hospital record
room was replaced by a computer centre that initially stored the patient-record databases on
magnetic tapes or discs. The rapidly increasing volume of computer-based information
stimulated the development of larger storage devices and more efficient database-management
systems. For most medical applications, Blum (1986a) emphasized that the primary utility of
a clinical information system depended on its database-management system. It soon became
apparent that the complex requirements of patient-record databases required combined
hierarchical, relational, and object-oriented structural approaches. After a review of the patient-
record database structures employed in the 1990s, Stead et al. (1992) et al. reported that the
major problem for a patient-record database-management system was the difficulty of mapping
complex logical structures into a physical media; and concluded that patient-record databases
were much more complicated than were databases used for other purposes, that none of the
existing database structural designs was adequate for developing, as an example, a com-mon
national patient-record database, and some combination of database designs would needed to
be employed. Dick and Steen (1992) and E. Steen also reviewed the essential technologies
needed for a patient-record database system, and agreed that in the 1990s there was not yet one
medical database system available that could serve as a model for computer-based patient
record systems, and that could satisfy all the continual changing requirements for timely
processing of all the information commerce in a comprehensive patient-care system, with all
of its different information modalities and changing patient-care technologies, and with its
strict legal requirements for assuring patients’ data security and confidentiality.
Camp et al. (1983) described some of the complexities of primary clinical data-bases,
namely:
9
(1) At the time when patient-care information was being obtained it was not always known
what data might be needed in the future, so this tended to enlarge a database with some data
that was never used;
(2) The database had to store information that could be differently structured and formatted,
and was often unstandardized;
(3) It needed to allow exploring complex data relationships in (frequently) a minimal access
time, and not unduly interfere with the productivity of busy health care providers who were not
computer programmers; and
(4) A common deficiency of primary clinical databases was that they tended to lack patients’
data for events that occurred between recorded visits to their health care providers.
Connolly and Begg (1999) noted that since most clinical data were “time-stamped”, it was
necessary that data transactions be recorded and retrieved in their correct time sequence.
Graves (1986) added that another requirement for a medical database was to provide a natural
language processing (NLP) program that had the capability to query textual information such
as were obtained by patient interviews, and that could include relevant expressed feelings and
experiential information. The availability of online access to clinical databases greatly
facilitated the process of searching and retrieving information when needed in a timely way by
physicians for clinical decision-making. The factors that influenced the rate of diffusion of
medical databases and other computer applications in medical practice were studied by
Anderson and Jay (1984) at Purdue and Indiana Universities; and they concluded that
physicians had the major role in their diffusion.
Specialized clinical databases can be disease-specific (as for heart disease or cancer), or
device- or procedure-specific (as for coronary artery bypass surgery), or therapy-specific (as
for anti-viral drugs), or population-specific (as for a geriatric or a racial group). Safran and
Chute (1995) observed that a clinical database could be used to query for information on an
individual patient, or to find data on patients with similarities to the one being cared for, or to
describe a group of patients with some common attributes, or to analyze data patterns in terms
of trends or relation-ships. Fries ( 1984) noted that some of the most important medical
problems were the chronic diseases, such as arthritis, cancer, and heart disease; and a study of
the management of these disorders could be benefited by chronic diseases databases (see also
Sect. 5.3). A large medical centre often had many specialized clinical databases for its various
inpatient and outpatient clinical services, and for its clinical support subsystems (laboratory,
radiology, pharmacy, and others). As a result it usually needed a distributed database-
10
management system to service them all. Each clinical subsystem’s database needed extract-
load-transfer (ETL) programs to move data to-and-from its subsystem database and the central,
integrated, clinical database.
Clinical research databases may be primary databases when the clinical patient data was
collected for the primary purpose of supporting clinical research, such as for clinical trials; but
they are usually secondary research databases that contain selected data extracted from primary
medical databases, such as when they contain clinical data extracted from primary medical
records for groups of patients with the same problem. This differs from primary patient care
databases where the medical record of each patient needs to contain all of the information
collected for all of the medical problems of that individual patient. In a secondary research
database it is usually necessary to extract and transfer the selected data from the primary
patient-record database into the secondary research database; and all patient data transferred
from a primary patient-record database has additional special legal requirements for assuring
the data validity, data security, and the strict privacy and confidentiality of each patient’s data.
Garfolo and Keltner (1983) emphasized the importance of the need to de-identify patient data
when a clinical database is also used for research purposes.
Bio surveillance databases were developed by the FDA for the surveillance of adverse drug
events and by the CDC for the surveillance of epidemics of infectious diseases. Claims
databases were established by Medicare, Medicaid, and commercial health care insurers for
collecting from health care providers their relevant sub-sets of primary medical record data for
the purpose of arranging payments for claims of provided clinical services. Medical knowledge
databases are comprehensive collections of information from a variety of sources, including
clinical and research databases, textbooks, and publications by experts in specific medical
issues. They are used to communicate medical information in order to support the clinical
decision-making process and large knowledge bases with other medical databases have been
combined and used for data mining to discover new knowledge. Medical bibliographic
databases are collections of medical literature developed as fact-and-information locators in
libraries and other collections of relevant medical publications, and are used to pro-vide and
communicate medical information. The National Library of Medicine (NLM) is the primary
resource in the world for a variety of bibliographic databases.
Metadatabases are developed to store metadata, that are data that describe the data contained
in a database for the purposes of providing a dictionary with definitions of terms; and a list of
11
coded data in the database with their codes; and to serve as a the saurus to recognize different
terms that have similar meanings; and to provide a lexicon of standard, accepted, defined, and
correctly spelled terms. A metadatabase needs to contain associated relevant information to
aid: in the storage and retrieval of data in the database; in providing linkages to other data items
and files; in providing keys to related tables; in providing logical connections for data
presentation, interactive validation, data extraction, permitting ad-hoc query; and also
providing users with inter-faces for any metadata additions or corrections. A data dictionary
was usually initiated as a part of a metadatabase by selecting commonly used terms from a
standard medical dictionary and from related medical literature; and needed to be capable of
adding new terms from the database itself; so the design of the data dictionary had to allow for
incorporating new data items when they were introduced, such as for new procedures. As these
lexicons became the basis for automated natural-language processing, they also usually
included:
(1) Syntactical information as to whether a word was a noun, a verb, or other; and
(2) The word’s semantical information as to its meaning in the language of medicine
(McCray et al. 1987).
An important role of a healthcare data warehouse is to provide information for Executive
manager to analyze situations and make decisions. Put in another way, a healthcare data
warehouse provides information for doctors to make decisions and do their jobs more
effectively. The top level of decision making involves strategic decision making. At this level
managers make decisions about the overall goals of the organization. For instance, types of
decisions made on this level include which services need to be provided (such as acute,
ambulatory or long term care) and at which geographical location to operate (such as local,
state, national). The second level concerns tactical decision making. The decisions made on
this level relate to the tactical units of the organization such as patient care services and
marketing. The third level concerns the day to day decisions of the organization such as hiring
employees, ordering supplies and medications, processing bills. Good systems provide the
information needed, so that Managers are making more efficient decisions. Described in this
paper is the development and implement of a prototype healthcare data warehouse specific to
cancer diseases, employing the new ‘data warehouse’ technology incorporating large quantity
of analysis information needed for healthcare decision-making.
12
CHAPTER 3
HEALTH CARE
Health care presents several interesting data warehouse design situations. In this chapter we
will imagine first that we work for a large health care consortium, then that we work for a
billing organization for care providers and hospitals, and finally that we work for a large clinic
with millions of complex patient treatment records. Each of these situations will suggest
important design techniques applicable to health care and other industries.
Chapter 3 discusses the following concepts:
 Value circle within health care, centred on the patient treatment records
 Accumulating snapshot fact table to handle medical bill line items
 More dimension role-playing as applied to multiple dates and providers
 Multivalued dimensions, such as an open-ended number of diagnoses along with
effective dates and weighting factors to support allocations
 Extended fact set to support profitability analysis
 Handling of complex medical events
 Fact dimension to organize extremely sparse, heterogeneous measurements
3.1 Health Care Value Circle
A typical large health care consortium is a network of providers, clinics, hospitals, pharmacies,
pharmaceutical manufacturers, laboratories, employers, insurance companies, and government
agencies. A health care consortium resembles more of a value circle, as illustrated in Figure
3.1. This figure is not a schema diagram! It is a picture of how all these diverse organizations
need to share the same critical data: the patient treatment record. There are two main types of
patient treatment records. The treatment billing record corresponds to a line item on a patient
bill from a provider’s office, a clinic, a hospital, or a laboratory. The treatment medical record,
on the other hand, is more comprehensive and includes not only the treatments that result in
charges but also all the laboratory tests, findings, and provider’s notes during the course of
treatment. The issues involved in these two kinds of records are quite different, and we will
look at them in separate sections. Our large health care consortium must be able to share
treatment billing records smoothly from organization to organization. Billing records from all
13
the different kinds of providers must have a complete set of common dimensions in order to be
processed by the insurance companies and medical bill payers. As individuals move from
location to location, employer to employer, and insurance company to government health care
program, a coherent picture of that individual’s history needs to be creatable at any time. And
finally, on the scrimmage line of health care delivery, the medical records of a patient need to
be available on short notice for legitimate medical use by any of the primary providers.
The health care value circle differs from the classic linear value chain because there is no
obvious ordering in time. However, the issues of conforming the common dimensions remain
exactly the same. The health care consortium will be able to function if and only if it can
implement a set of conformed dimensions. A representative set of dimensions that must be
confirmed by the health care consortium include:
 Calendar date
 Patient
 Responsible party (parent, guardian, employee)
 Employer
 Health plan
 Payer (primary, secondary)
 Provider (all forms ofhealth care professionals who administer treatments)
 Treatment (billable procedure, lab test, examination)
 Drug
Fig 3.1. Typical Health
Care Value
14
 Diagnosis
 Outcome
 Location (office, clinic, outpatient facility, hospital)
The diagnosis and treatment dimensions are considerably more structured and predictable than
one might expect because the insurance industry and government have mandated their content.
Diagnoses usually follow the International Classification of Diseases, 9th Revision: Clinical
Modification, Volumes 1 and 2 (ICD-9-CM) standard. The U.S. Department of Health and
Human Services (HHS) maintains this standard as far as the United States is concerned. The
ICD-9-CM standard, Volume 3, defines treatment and management codes.
The Health Care Financing Administration Common Procedure Coding System (HCPCS)
standard, also updated and distributed by HHS; and Current Procedural Terminology, 4th
Edition (CPT-4), as updated and distributed by the American Medical Association, cover
health-related services and other items, including:
 Physician services
 Physical and occupational therapy services
 Radiological procedures
 Clinical laboratory tests
 Other medical diagnostic procedures
 Hearing and vision services
 Transportation services (including ambulance)
 Medical supplies
 Orthotic and prosthetic devices
 Durable medical equipment
Dentists are able to use the Code on Dental Procedures and Nomenclature, as updated and
distributed by the American Dental Association, for dental services. When all the dimensions
in our list have been conformed, then any organization with appropriate access privileges can
drill across the separate fact tables, linking together the information by matching the row
headers of each row. The use of conformed dimensions guarantees that this matching process
is well defined.
15
3.2 Health Care Bill
Let us imagine that we work for a billing organization for health care providers and hospitals.
We receive the primary billing transactions from the providers and hospitals, prepare and send
the bills to all the responsible payers, and track the progress of the payments made.
Our health care billing data warehouse must meet a number of business objectives. We want
to analyse the counts and dollar amounts of all the bills by
every dimension available to us, including by patient, provider, diagnosis, treatment, date, and
any combinations of all these. We want to see how these bills have been paid and what
percentage of the bills have not been collected. We want to see how long it takes to get paid,
and we want to see the current
status of all unpaid bills, updated every 24 hours. And of course, the queries need to be simple,
and the response time must be instantaneous!
The transaction grain is the most fundamental. In the health care bill example, the transaction
grain would include every input transaction from the providers and the hospitals, as well as
every payment transaction resulting from the bill being sent. Although the world can be
reconstructed from individual transactions, this grain may not be the best grain to begin with
to meet our business reporting objectives because many of the queries would require rolling
the transactions forward from the beginning of the patient’s treatment. The periodic snapshot
grain is the grain of choice for long-running time-series processes such as bank accounts and
insurance policies. However, the periodic snapshot doesn’t do a good job of capturing the
behaviour of a quickly moving, short-lived process such as orders or medical bills. Most of the
interesting activity surrounding a medical bill takes place quickly in one or two months.
Also, if the periodic snapshot is available only at month-end, we cannot see the current status
of the unpaid bills.
We will choose the accumulating snapshot grain for our health care bill. A single row in our
fact table will represent a single line item on a health care bill. Furthermore, this single row
will represent the accumulated history of that line item from the moment of creation of the row
to the current day. When anything about the line item changes, we revisit the unique
accumulating row and modify the row appropriately. From the point of view of the billing
organization, we’ll assume that the standard scenario of a bill includes:
 Treatment date
16
 Primary insurance billing date
 Secondaryinsurance billing date
 Responsible party billing date
 Last primary insurance payment date
 Last secondaryinsurance payment date
 Last responsible party payment date
We choose these dates to be an adequate description of a normal bill. An accumulating snapshot
does not attempt to describe unusual situations fully. If the business users occasionally need to
see all the details of a particularly messy bill payment situation, then a companion transaction
grained fact table would be needed. The purpose of the accumulating snapshot grain is to place
every health care bill into a uniform framework so that the business objectives we described
earlier can be satisfied easily. Now that we have a clear idea of what an individual fact table
row represents (for example, the accumulated history of a line item on a health care bill), we
can complete the list of dimensions by carefully listing everything we know to be true in the
context of this row. In our hypothetical billing organization, we know the responsible party,
employer, patient, provider, provider organization, treatment performed, treatment location,
diagnosis, primary insurance organization, secondary insurance organization, and master bill
ID number. These become our dimensions, as shown in Figure 3.2.
17
The interesting facts that we choose to accumulate over the history of the line item on the health
care bill include the billed amount, primary insurance paid amount, secondary insurance paid
amount, responsible party paid amount, total paid amount (calculated), amount sent to
collections, amount written off, amount remaining to be paid (calculated), number of treatment
units (depending on treatment type), treatment duration, number of days from billing to first
primary insurance payment, number of days from billing to first secondary insurance payment,
and number of days from billing to first responsible party payment. We’ll assume that a row is
created in this fact table when the activity transactions are first received from the providers and
hospitals and the initial bills are sent. On a given bill, perhaps the primary insurance company
is billed, but the secondary insurance and the responsible party are not billed, pending a
response from the primary insurance company. For a period of time after the row is first entered
into the database, the last five dates are not applicable. The surrogate date key in the fact table
must not be null, but the full date description in the corresponding date dimension table row
can indeed be null. In the next few days and weeks after creation of the row, payments are
Fig 3.2. Accumulating snapshot fact table for health care billing
18
received, and bills are sent to the secondary insurance company and responsible party. Each
time these events take place, the same fact table row is revisited, and the appropriate keys and
facts are destructively updated. This destructive updating poses some challenges for the
database administrator.
The row widths in databases such as Oracle will grow each time an update occurs because
numeric facts may be changed from a small number to a larger number. This can cause block
splits and fragmentation if enough space is not available at the disk block level to accommodate
this growth. If most of these accumulating rows stabilize and stop changing within 90 days (for
instance), then a physical reorganization of the database at that time can recover disk storage
and improve performance. If the fact table is partitioned on the treatment date key, then the
physical clustering (partitioning) probably will be well preserved throughout these changes
because we assume that the treatment date is not normally revisited and changed.
3.3 Roles Played By the Date Dimension
Accumulating snapshot fact tables always involve multiple date stamps. Our example, which
is typical, has seven foreign keys pointing to the date dimension. This is a good place to
reiterate several important points:
 The foreign keys in the fact table cannot be actual date stamps because they have to
handle the “Not Applicable” case. The foreign keys should be simple integers serving
as surrogate keys.
 The surrogate keys assigned in the date dimension should be assigned consecutively in
order of date. This is the only dimension where the surrogate keys have any relationship
to the underlying semantics of the dimension. We do this so that physical partitioning
of a fact table can be accomplished by using one of the date-based foreign keys. In our
example we recommend that the treatment date key be used as the basis for physically
partitioning the fact table.
 Surrogate keys corresponding to special conditions such as “Not Applicable,”
“Corrupted,” or “Hasn’t Happened Yet” should be assigned to the top end of the
numeric range so that these rows are physically partitioned together in the hot partition
with the most recent data. We do this if these rows are ones that are expected to change.
19
 We do not join the seven date-based foreign keys to a single instance of the date
dimension table. Such a join would demand that all seven dates were the same date.
Instead, we create seven views on the single underlying date dimension table, and we
join the fact table separately to these seven views, just as if they were seven independent
date dimension tables. This allows the seven dates to be independent. We refer to these
seven views as roles played by the date dimension table.
 The seven view definitions using the date dimension table should cosmetically relabel
the column names of each view to be distinguishable so that query tools directly
accessing the views will present the column names through the user interface in a way
that is understandable to the end user.
Although the role-playing behaviour of the date dimension is very characteristic of
accumulating snapshot fact tables, other dimensions often play roles in similar ways, such as
the payer dimension in Figure 13.2. Later in this chapter we will see how the physician
dimension needs to have several roles in complex surgical procedures depending on whether
the physician is the primary responsible physician, working in a consulting capacity, or
working in an assisting capacity.
3.4 Multivalued Diagnosis Dimension
Normally we choose the dimensions surrounding a fact table row by asking, what do we know
to be true in the context of the measurement? Almost always we mean, what takes on a single
value in the context of the measurement? If something has many values in the context of the
measurement, we almost always disqualify that dimension because the many-valuedness
means that the offending dimension belongs at a lower grain of measurement.
However, there are a few situations in which the many-valuedness is natural and unavoidable,
and we do want to include such a dimension in our design, such as the case when we associated
multiple customers with an account. The diagnosis dimension in our health care billing fact
table is another good example. At the moment of treatment, the patient has one or more
diagnoses, which are well known. Furthermore, there is good incentive for keeping these
diagnoses along with the billing row.
If there were always a maximum of three diagnoses, for instance, we might be tempted to create
three diagnosis dimensions, almost as if they were roles. However, diagnoses don’t behave like
20
roles. Unfortunately, there are often more than three diagnoses, especially for elderly patients
who are hospitalized. Real medical bill-paying organizations sometimes encounter patients
with more than 50 diagnoses! Also, the diagnoses don’t fit into well-defined roles other than
possibly admitting diagnosis and discharging diagnosis. The role-playing dimensions we talked
about in the preceding section are categorized much more naturally and disjointly. Finally, the
multiple-slots style of design makes for very inefficient applications because the query doesn’t
know a priori which dimensional slot to constrain for a particular diagnosis.
We handle the open-ended nature of multiple diagnoses with the design shown in Figure 3.3.
We replace the diagnosis foreign key in the fact table with a diagnosis group key. This
diagnosis group key is connected by a many to-many join to a diagnosis group bridge table,
which contains a separate row for each diagnosis in a particular group.
Fig 3.3 Design for a multivalued diagnosis dimension.
21
If a patient has three diagnoses, then that patient is assigned a diagnosis group with three
diagnoses. We assign a numerical weighting factor to each diagnosis in the group such that the
sum of all the weighting factors in the group is exactly 1.00. We can then use the weighting
factors to allocate any of the numeric additive facts across individual diagnoses. In this way we
can add up all billed amounts by diagnosis, and the grand total will be the correct grand total
billed amount. This kind of report would be called a correctly weighted report.
We see that the weighting factors are simply a way to allocate the numeric additive facts across
the diagnoses. Some would suggest that we change the grain of the fact table to be line item by
diagnosis rather than just line item. In this case we would take the weighting factors and
physically multiply them against the original numeric facts. This is done rarely, for three
reasons. First, the size of the fact table would be multiplied by the average number of diagnoses.
Second, in some fact tables we have more than one multivalued dimension. The number of
rows would get out of hand in this situation, and we would start to question the physical
significance of an individual row. Finally, we may want to see the unallocated numbers, and it
is hard to reconstruct these if the allocations have been combined physically with the numeric
facts. If we choose not to apply the weighting factors in a given query, we can still summarize
billed amounts by diagnosis, but in this case we get what is called an impact report. A question
such as “What is the total billed amount across all possible treatments in any way involving the
diagnosis of XYZ?” would be an example of an impact report.
In Figure 3.3, an SQL view could be defined combining the fact table and the diagnosis group
bridge table so that these two tables, when combined, would appear to data access tools as a
standard fact table with a normal diagnosis foreign key. Two views could be defined, one using
the weighting factors and one not using the weighting factors.
Finally, if the many-to-many join in Figure 3.3 causes problems for your modelling tool that
insists on proper foreign-key-to-primary-key relationships, the equivalent design of Figure 13.4
can be used. In this case an extra table whose primary key is diagnosis group is inserted between
the fact table and the bridge table.
22
Now both the fact table and the bridge table have conventional many-to one joins in all
directions. There is no new information in this extra table. In the real world, a bill-paying
organization would decide how to administer the diagnosis groups. If a unique diagnosis group
were created for every outpatient treatment, the number of rows could become astronomical
and unworkable. Probably the best approach is to have a standard portfolio of diagnosis groups
that are used repeatedly. This requires that each set of diagnoses be looked up in the master
diagnosis group table. If the existing group is found, it is used. If it is not found, then a new
diagnosis group is created. In a hospital stay situation, however, the diagnosis group probably
should be unique to the patient because it is going to evolve over time as a type 2 slowly
changing dimension (SCD). In this case we would supplement the bridge table with two date
stamps to capture begin and end dates. While the twin date stamps complicate the update
administration of the diagnosis group bridge table, they are very useful for querying and change
tracking. They also allow us to perform time-span queries, such as identifying all patients who
presented a given diagnosis at any time between two dates.
To summarize this discussion of multivalued dimensions, we can list the issues surrounding a
multivalued dimension design:
 In the context of the fact table measurement, the multivalued dimension takes on a small
but variable number of well-defined values.
 Correctly allocated reports can be created only if weighting factors can be agreed to.
 Weighting factors can be omitted, but then only impact reports can be generated using
the multivalued dimension.
 In high-volume situations such as medical bills and bank accounts, a system of
recognizing and reusing groups should be used.
 In cases where the relationship represented in the bridge table changes over time, we
embellish the bridge table with begin and end dates.
Fig 3.4 Diagnosis group dimension to create a primary key relationship.
23
3.5 Extending a Billing FactTable to show Profitability
Figure 3.5 shows an extended set of facts that might be added to the basic billing schema of
Figure 3.2. These include the consumables cost, provider cost, assistant cost, equipment cost,
location cost, and net profit before general and administrative (G&A) expenses, which is a
calculated fact. If these additional facts can be added to the billing schema, the power of the
fact table grows enormously. It now becomes a full-fledged profit-and-loss (P&L) view of the
health care business.
These costs are not part of the billing process and normally would not be collected at the same
time as the billing data. Each of these costs potentially arises from a separate source system. In
order to bring this data into the billing fact table, the separately sourced data would have to be
allocated down to the billing line item. For activity-based costs such as the ones we have
included in the list, it may be worth the effort to do this allocation. All allocations are
controversial and to an extent arbitrary, but if agreement can be reached on the set of
allocations, the P&L database that results is incredibly powerful. Now the health care
organization can analyse profitability by all the dimensions!
3.6 Dimensions for billed Hospital Stays
The first part of this chapter described a comprehensive and flexible design for billed health
care treatments that would cover both inpatient and outpatient bills. If an organization wished
Fig 3.5 Billing line-item fact table extended at the same grain with activity-based costs for
profit and loss.
24
to focus exclusively on hospital stays, it would be reasonable to tweak the dimensional structure
of Figure 3.2 to provide more hospital-specific information. Figure 13.6 shows a revised set of
dimensions specialized for hospital stays, with the new dimensions set in bold type. In Figure
3.6 we show two roles for provider: admitting provider and attending provider. We show
provider organizations for both roles because providers may represent different organizations
in a hospital setting.
We also have three multivalued diagnosis dimensions on each billed treatment row. The
admitting diagnosis is determined at the beginning of the hospital stay and should be the same
for every treatment row that is part of the same hospital stay. The current diagnosis describes
the state of knowledge of the patient at the time of the treatment. The discharge diagnosis is
not known until the patient is discharged and is applied retroactively to all the rows that have
been entered as part of the hospital stay.
3.7 Complex Health Care Events
In a hospital setting, we may want to model certain very complex events, such as major surgical
procedures. In a heart-transplant operation, whole teams of specialists and assistants are
assembled for this one event. A different heart transplant may involve a team with a different
makeup. We can model these complex events with the design shown in Figure 3.7. We combine
the techniques of role-playing dimensions and multivalued dimensions. We assume that a
surgical procedure involves a single responsible physician and variable numbers of attending
physicians, assisting professional’s procedures, and equipment types. We also assume that the
Fig 3.6 Accumulating snapshot for hospital stays billing.
25
patient has a multivalued diagnosis before the surgery and a separate multivalued diagnosis
after the surgery. Thus we have six multivalued dimensions, indicated by the bold type in
Figure3.7. The responsible physician, attending physician, and assisting professional
dimensions are all roles played by an overall provider dimension. The presurgery and post-
surgery multivalued diagnosis dimensions are roles played by a single diagnosis dimension.
Since the grain of the fact table is the surgical procedure itself, it is natural to supply a
comprehensive set of facts. We show the extended set of facts that would allow a complete
P&L analysis to be done on surgical procedures, assuming that the various costs can be
allocated to each surgical event. We leave out the weighting factors on all the multivalued
dimensions in this design. If we tried to provide weighting factors for the multivalued
dimensions, we would be implicitly supporting all the complex combinations of weighting
values, some of which would be nonsensical. It doesn’t seem worth the trouble to claim that
the correctly allocated portion of the total billed amount of the surgery conjointly assigned to
each possible assistant and each possible piece of equipment has much meaning. Our technique
of placing the weighting factors independently in each dimension is only part of the problem.
A more practical concern is that most organizations would not be willing to assign dozens or
hundreds of weighting factors. Without the eighting factors, we nevertheless can create many
useful impact reports. For instance, what is the total value of all surgeries performed that used
a heart-lung machine? We also can ask which physicians, which assisting professionals, and
which pieces of equipment were involved in various kinds of surgery. And finally, if we have
Fig 3.7 Surgical events transaction fact table extended to show profit and loss.
26
allocated the costs to each surgery in a rational way, we can ask which types of surgery are
profitable or non-profitable and why.
3.8 MedicalRecords
General medical records are challenging for the data warehouse because of their extreme
variability. The records in a patient file take many different forms, ranging from standard-
format numeric data captured online, to one-of a- kind laboratory test results, to free-text
comments entered by a health care professional, to graphs and photographs. Given this extreme
variability, we don’t attempt to do queries and reports simultaneously analysing every data
type. However, we still would like to provide a standard, simple framework for all the records
for a given patient. We are driven by the suspicion that if the grain could be defined as an
individual record entry for a patient, we should be able to capture most of a medical record in
a single fact table. In such a fact table we might be tempted to provide a fact field for each type
of measurement. Some fields would be numeric, and some fields would be flags. However, the
sheer variety of possible medical record entries defeats us. We would soon end up with a
ridiculously wide fact table row with too many fact fields, almost all of which would be null
or zero for any specific medical entry. In addition, this fixed-slot style of design is very
inflexible because new measurement types could be added only by physically altering the fact
table with the addition of a new field.
3.9 Fact Dimension for Sparse Facts
We handle the extreme variability of the medical record entry with a special dimension we call
a fact dimension. In Figure 3.8 the entry type is a fact dimension that describes what the row
means or, in other words, what the fact represents. The entry type dimension also determines
which of the four kinds of fact fields (amount, flag, comment, and JPEG file name) are valid
for the specific entry and how to interpret each field. For example, the generic amount column
is used for every numeric entry. The unit of measure for a given numeric entry is found in the
attached entry type dimension row, along with any additivity restrictions. If the entry is a flag
(for example, Yes/No or High/Medium/Low), the types of flag values are found in the entry
type dimension. If the entry is a free-text comment or a multimedia object such as JPEG graphic
image or photograph, the entry type dimension alerts the requesting application to look in these
fact table fields.
27
This approach is elegant because it is superbly flexible. We can add new measurement types
just by adding new rows in the fact dimension, not by altering the structure of the fact table.
We also eliminate the nulls in the classic positional fact table design because a row exists only
if the measurement exists. However, there are some significant trade-offs. Using a fact
dimension may generate lots of new fact table rows. If an event resulted in 10 numeric
measurements, we now have 10 rows in the fact table rather than a single row in the classic
design. For extremely sparse situations, such as clinical/laboratory or manufacturing test
environments, this is a reasonable compromise. However, as the density of the facts grows, we
end up spewing out too many fact rows. At this point we no longer have sparse facts and should
return to the classic fact table approach. Moreover, we must be aware that this approach
typically complicates data access applications. Combining two numbers that have been taken
as part of a single event is more difficult because now we must fetch two rows from the fact
table. SQL likes to perform arithmetic functions within a row, not across rows. In addition, we
must be careful not to mix incompatible amounts in a calculation because all the numeric
measures reside in a single amount column. The other dimensions in Fig 3.8 should be fairly
obvious. The patient, responsible provider, attending provider, location, equipment, and
diagnosis dimensions were all present in various forms in our earlier designs. The test panel ID
is a standard degenerate dimension because it probably is just a simple natural key that ties
together multiple medical record entries that were all part of a particular test panel.
Free text comments should not be stored in a fact table directly because they waste space and
rarely participate in queries. Presumably, the free text comments occur only on some records.
Rather, the fact table should have a foreign key that points to a comment dimension, as shown
Fig 3.8 Transaction table with sparse, heterogeneous medical record facts and a
fact dimension.
28
in Figure 3.8. The use of a JPEG file name to refer to an image, rather than embedding the
image as a blob directly in the database, is somewhat of an arbitrary decision.
29
CONCLUSION
In the 1950s patients’ medical records were paper-based and were stored in stacks of charts on
shelves in a medical record room. In the early 1960s the development of computers allowed
patient-care data to be entered into a computer by using punched paper cards; and the data were
stored and accessed sequentially in computer flat files that had little structured relationships;
and they were aggregated in file-management systems. In the late 1960s structured computer
databases began to evolve with associated data-base-management systems. In the 1970s
distributed database systems began to be developed; and in the following decades of the 1980s,
1990s, and the 2000s the development of increasingly large and enhanced medical databases
was truly phenomenal.
In the 1990s international communications used computers and local-area net-works; and the
use the Internet and the World Wide Web became commonplace. As patient-care data
expanded in both volume and complexity, frequent innovations in informatics technology
provided more efficient computer-based, clinical-information systems in hospitals and in
medical offices. In the 2000s distributed information systems allowed physicians to enter
orders and retrieve test results using clinical workstations connected to client–server computers
in local-area-networks that linked multiple medical centre databases. By the end of the 2000s
there had evolved global wireless communications with translational networks that linked data
ware-houses in collaborating medical centres in the nation.
Health care not only is an important application area in its own right, but it also provides the
data warehouse designer with a number of clear design examples that can be used in many
other situations. In this chapter we have seen: The value circle, where a large number of
organizations need to look at the same data in parallel without any strong sense of time
sequencing. However, the issues of building a value-circle data warehouse bus architecture
with conformed dimensions and conformed facts are exactly the same as the more conventional
value chains.
The accumulating snapshot grain of fact table applied to a medical bill line item. This grain
was appropriate because of the relatively brief duration of a medical bill compared with
something like a bank account, where the periodic snapshot is more appropriate. Roles played
by the date dimension in the accumulating snapshot grain, as well as roles played by the
30
provider and payer dimensions in other fact tables of this chapter. Roles are implemented as
separate, specifically named views on a single underlying master dimension. Multivalued
dimensions, especially the diagnosis dimension. In many cases we are able to associate a
weighting factor with each of the values in a multivalued dimension entry so as to allow
allocations to be calculated on numeric facts in the fact table. We would call this kind of report
a correctly weighted report. However, in some cases where we are unwilling to assign
weighting factors, the multivalued dimension still lets us produce impact reports.
An extended set of cost-based facts that allow us to implement a P&L schema. Adding these
cost-based facts is very attractive, but it is a lot of work. The best costs to add to a design are
activity-based costs because these are not too controversial to associate with individual fact
rows such as our medical bill line items. Complex events modelled as single fact table rows
containing several multivalued dimensions. In these cases we often do not build weighting
factors into all the multivalued dimensions because the interaction between the weighting
factors becomes nonsensical. Fact dimensions used to organize extremely sparse,
heterogeneous measurements into a single, uniform framework. Our example plausibly
covered general medical records consisting of standardized numeric measures, one-of-a-kind
lab results, categorical textual measurements, free-text comments, and image data.
The advantage of using a JPEG file name is that other image creation, viewing, and editing
programs can access the image freely. The disadvantage is that a separate database of graphic
files must be maintained in synchrony with the fact table.
However, the future improvement is necessary and continuous modification is needed to
approach the final success:
1) The security problem should be solved;
2) Visual Basic and/or other language should be more used to implement different functions;
3) A more user-friendly interface should be provided;
4) The system should be web-based.
31
REFERENCES
1). The Data Warehouse Toolkit Second Edition The Complete Guide to Dimensional
Modelling by Ralph Kimball & Margy Ross Wiley Computer Publications Chapter 13 Health
Care
2). A. Silbershatz, H. Korth., S. Sudarshan, Database System Concepts, McGraw Hill, 5th
Edition, 2005
3). Database System Concepts Slides: http://www.cse.iitb.ac.in/sudarsha/dbbook/slide-
dir/ch1.pdf, Accessed 2010
4). http://www.ncbi.nlm.nih.gov/pmc/articles/PMC2047311/
5). http://informatica2009.sld.cu/conferences/design-and-development-of-the-public-
healthcare-laboratory-information?set_language=en
6). http://agile.csc.ncsu.edu/iTrust/wiki/doku.php?id=requirements
7).

More Related Content

What's hot

Understanding the Need of Data Integration in E Healthcare
Understanding the Need of Data Integration in E HealthcareUnderstanding the Need of Data Integration in E Healthcare
Understanding the Need of Data Integration in E Healthcare
ijtsrd
 
Db And Dbms Galvan
Db And Dbms GalvanDb And Dbms Galvan
Db And Dbms Galvan
CorinaF
 

What's hot (7)

Introduction to data management
Introduction to data managementIntroduction to data management
Introduction to data management
 
Managing, Sharing and Curating Your Research Data in a Digital Environment
Managing, Sharing and Curating Your Research Data in a Digital EnvironmentManaging, Sharing and Curating Your Research Data in a Digital Environment
Managing, Sharing and Curating Your Research Data in a Digital Environment
 
Understanding the Need of Data Integration in E Healthcare
Understanding the Need of Data Integration in E HealthcareUnderstanding the Need of Data Integration in E Healthcare
Understanding the Need of Data Integration in E Healthcare
 
Db And Dbms Galvan
Db And Dbms GalvanDb And Dbms Galvan
Db And Dbms Galvan
 
Dats nih-dccpc-kc7-april2018-prs-uoxf
Dats  nih-dccpc-kc7-april2018-prs-uoxfDats  nih-dccpc-kc7-april2018-prs-uoxf
Dats nih-dccpc-kc7-april2018-prs-uoxf
 
Data citation and sharing during article publication
Data citation and sharing during article publicationData citation and sharing during article publication
Data citation and sharing during article publication
 
What funders want you to do with your data
What funders want you to do with your dataWhat funders want you to do with your data
What funders want you to do with your data
 

Viewers also liked

Medical center using Data warehousing
Medical center using Data warehousingMedical center using Data warehousing
Medical center using Data warehousing
Saleem Almaqashi
 
Multidimentional data model
Multidimentional data modelMultidimentional data model
Multidimentional data model
jagdish_93
 
Project Proposal Sample: RFID on Warehouse Management System
Project Proposal Sample: RFID on Warehouse Management SystemProject Proposal Sample: RFID on Warehouse Management System
Project Proposal Sample: RFID on Warehouse Management System
Cheri Amour Calicdan
 

Viewers also liked (15)

Use of Star Schema in Health Care
Use of Star Schema in Health CareUse of Star Schema in Health Care
Use of Star Schema in Health Care
 
Medical center using Data warehousing
Medical center using Data warehousingMedical center using Data warehousing
Medical center using Data warehousing
 
What is the best Healthcare Data Warehouse Model for Your Organization?
What is the best Healthcare Data Warehouse Model for Your Organization?What is the best Healthcare Data Warehouse Model for Your Organization?
What is the best Healthcare Data Warehouse Model for Your Organization?
 
Star schema
Star schemaStar schema
Star schema
 
Star schema
Star schemaStar schema
Star schema
 
Difference between star schema and snowflake schema
Difference between star schema and snowflake schemaDifference between star schema and snowflake schema
Difference between star schema and snowflake schema
 
Data Warehousing - in the real world
Data Warehousing - in the real worldData Warehousing - in the real world
Data Warehousing - in the real world
 
Multi dimensional model vs (1)
Multi dimensional model vs (1)Multi dimensional model vs (1)
Multi dimensional model vs (1)
 
Cloud Connect 2013- Lock Stock and x Smoking EC2's
Cloud Connect 2013- Lock Stock and x Smoking EC2'sCloud Connect 2013- Lock Stock and x Smoking EC2's
Cloud Connect 2013- Lock Stock and x Smoking EC2's
 
Healthcare Dashboards: 3 Keys for Creating Effective and Insightful Executive...
Healthcare Dashboards: 3 Keys for Creating Effective and Insightful Executive...Healthcare Dashboards: 3 Keys for Creating Effective and Insightful Executive...
Healthcare Dashboards: 3 Keys for Creating Effective and Insightful Executive...
 
SMART HEALTH PREDICTION USING DATA MINING by Dr.Mahboob Khan Phd
SMART HEALTH PREDICTION USING DATA MINING by Dr.Mahboob Khan PhdSMART HEALTH PREDICTION USING DATA MINING by Dr.Mahboob Khan Phd
SMART HEALTH PREDICTION USING DATA MINING by Dr.Mahboob Khan Phd
 
Multidimentional data model
Multidimentional data modelMultidimentional data model
Multidimentional data model
 
4.2 spatial data mining
4.2 spatial data mining4.2 spatial data mining
4.2 spatial data mining
 
Airlines Database Design
Airlines Database DesignAirlines Database Design
Airlines Database Design
 
Project Proposal Sample: RFID on Warehouse Management System
Project Proposal Sample: RFID on Warehouse Management SystemProject Proposal Sample: RFID on Warehouse Management System
Project Proposal Sample: RFID on Warehouse Management System
 

Similar to Final Report on Use of Star Schema

Paper MIE2016 from Proceedings pags 122-126
Paper MIE2016 from Proceedings pags 122-126Paper MIE2016 from Proceedings pags 122-126
Paper MIE2016 from Proceedings pags 122-126
vilaltajo
 
Cibm work shop 2chapter six
Cibm  work shop 2chapter sixCibm  work shop 2chapter six
Cibm work shop 2chapter six
Shaheen Khan
 
Blue Canopy Semantic Web Approach v25 brief
Blue Canopy Semantic Web Approach v25 briefBlue Canopy Semantic Web Approach v25 brief
Blue Canopy Semantic Web Approach v25 brief
Nick Savage
 
accelerating-data-driven
accelerating-data-drivenaccelerating-data-driven
accelerating-data-driven
Joshua Chudy
 

Similar to Final Report on Use of Star Schema (20)

Medical database
Medical databaseMedical database
Medical database
 
Datamining
DataminingDatamining
Datamining
 
The Impact of Early Medical Record Systems on Modern Cloud Storage & Security...
The Impact of Early Medical Record Systems on Modern Cloud Storage & Security...The Impact of Early Medical Record Systems on Modern Cloud Storage & Security...
The Impact of Early Medical Record Systems on Modern Cloud Storage & Security...
 
Paper MIE2016 from Proceedings pags 122-126
Paper MIE2016 from Proceedings pags 122-126Paper MIE2016 from Proceedings pags 122-126
Paper MIE2016 from Proceedings pags 122-126
 
Healthcare data's perfect storm
Healthcare data's perfect stormHealthcare data's perfect storm
Healthcare data's perfect storm
 
Cibm work shop 2chapter six
Cibm  work shop 2chapter sixCibm  work shop 2chapter six
Cibm work shop 2chapter six
 
eArchiDoc For Hospitals
eArchiDoc For HospitalseArchiDoc For Hospitals
eArchiDoc For Hospitals
 
Overview of dbms
Overview of dbmsOverview of dbms
Overview of dbms
 
CLINICAL DATA COLLECTION AND MANAGEMENT.pptx
CLINICAL DATA COLLECTION AND MANAGEMENT.pptxCLINICAL DATA COLLECTION AND MANAGEMENT.pptx
CLINICAL DATA COLLECTION AND MANAGEMENT.pptx
 
Blue Canopy Semantic Web Approach v25 brief
Blue Canopy Semantic Web Approach v25 briefBlue Canopy Semantic Web Approach v25 brief
Blue Canopy Semantic Web Approach v25 brief
 
Intro dm
Intro dmIntro dm
Intro dm
 
Intro dm
Intro dmIntro dm
Intro dm
 
How Data Commons are Changing the Way that Large Datasets Are Analyzed and Sh...
How Data Commons are Changing the Way that Large Datasets Are Analyzed and Sh...How Data Commons are Changing the Way that Large Datasets Are Analyzed and Sh...
How Data Commons are Changing the Way that Large Datasets Are Analyzed and Sh...
 
HEALTH CARE DATA WAREHOUSE SYSTEM ARCHITECTURE FOR INFLUENZA (FLU) DISEASES
HEALTH CARE DATA WAREHOUSE SYSTEM ARCHITECTURE FOR INFLUENZA (FLU) DISEASES HEALTH CARE DATA WAREHOUSE SYSTEM ARCHITECTURE FOR INFLUENZA (FLU) DISEASES
HEALTH CARE DATA WAREHOUSE SYSTEM ARCHITECTURE FOR INFLUENZA (FLU) DISEASES
 
DCW Data Quality 1992
DCW Data Quality 1992DCW Data Quality 1992
DCW Data Quality 1992
 
Tahira I.T
Tahira I.TTahira I.T
Tahira I.T
 
What is Data Commons and How Can Your Organization Build One?
What is Data Commons and How Can Your Organization Build One?What is Data Commons and How Can Your Organization Build One?
What is Data Commons and How Can Your Organization Build One?
 
Database, Lecture-1.ppt
Database, Lecture-1.pptDatabase, Lecture-1.ppt
Database, Lecture-1.ppt
 
LITERATURE SURVEY ON BIG DATA AND PRESERVING PRIVACY FOR THE BIG DATA IN CLOUD
LITERATURE SURVEY ON BIG DATA AND PRESERVING PRIVACY FOR THE BIG DATA IN CLOUDLITERATURE SURVEY ON BIG DATA AND PRESERVING PRIVACY FOR THE BIG DATA IN CLOUD
LITERATURE SURVEY ON BIG DATA AND PRESERVING PRIVACY FOR THE BIG DATA IN CLOUD
 
accelerating-data-driven
accelerating-data-drivenaccelerating-data-driven
accelerating-data-driven
 

Recently uploaded

palanpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
palanpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meetpalanpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
palanpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Call Girls Service
 
Tirupati Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Tirupati Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetTirupati Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Tirupati Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Call Girls Service
 
Mangalore Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Mangalore Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetMangalore Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Mangalore Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Call Girls Service
 
Bareilly Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Bareilly Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetBareilly Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Bareilly Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Call Girls Service
 
Premium Call Girls Bangalore {7304373326} ❤️VVIP POOJA Call Girls in Bangalor...
Premium Call Girls Bangalore {7304373326} ❤️VVIP POOJA Call Girls in Bangalor...Premium Call Girls Bangalore {7304373326} ❤️VVIP POOJA Call Girls in Bangalor...
Premium Call Girls Bangalore {7304373326} ❤️VVIP POOJA Call Girls in Bangalor...
Sheetaleventcompany
 
Bhagalpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Bhagalpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetBhagalpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Bhagalpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Call Girls Service
 
💚 Punjabi Call Girls In Chandigarh 💯Lucky 🔝8868886958🔝Call Girl In Chandigarh
💚 Punjabi Call Girls In Chandigarh 💯Lucky 🔝8868886958🔝Call Girl In Chandigarh💚 Punjabi Call Girls In Chandigarh 💯Lucky 🔝8868886958🔝Call Girl In Chandigarh
💚 Punjabi Call Girls In Chandigarh 💯Lucky 🔝8868886958🔝Call Girl In Chandigarh
Sheetaleventcompany
 
neemuch Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
neemuch Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meetneemuch Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
neemuch Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Call Girls Service
 
kozhikode Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
kozhikode Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meetkozhikode Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
kozhikode Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Call Girls Service
 
Hubli Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Hubli Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetHubli Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Hubli Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Call Girls Service
 
Thrissur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Thrissur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetThrissur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Thrissur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Call Girls Service
 
Thoothukudi Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Thoothukudi Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetThoothukudi Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Thoothukudi Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Call Girls Service
 
ooty Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
ooty Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meetooty Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
ooty Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Call Girls Service
 
Call Girl in Indore 8827247818 {Low Price}👉 Nitya Indore Call Girls * ITRG...
Call Girl in Indore 8827247818 {Low Price}👉   Nitya Indore Call Girls  * ITRG...Call Girl in Indore 8827247818 {Low Price}👉   Nitya Indore Call Girls  * ITRG...
Call Girl in Indore 8827247818 {Low Price}👉 Nitya Indore Call Girls * ITRG...
mahaiklolahd
 
Patna Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Patna Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetPatna Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Patna Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Call Girls Service
 

Recently uploaded (20)

palanpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
palanpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meetpalanpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
palanpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 
Tirupati Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Tirupati Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetTirupati Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Tirupati Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 
Mangalore Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Mangalore Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetMangalore Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Mangalore Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 
Bareilly Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Bareilly Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetBareilly Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Bareilly Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 
Premium Call Girls Bangalore {7304373326} ❤️VVIP POOJA Call Girls in Bangalor...
Premium Call Girls Bangalore {7304373326} ❤️VVIP POOJA Call Girls in Bangalor...Premium Call Girls Bangalore {7304373326} ❤️VVIP POOJA Call Girls in Bangalor...
Premium Call Girls Bangalore {7304373326} ❤️VVIP POOJA Call Girls in Bangalor...
 
Bhagalpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Bhagalpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetBhagalpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Bhagalpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 
💚 Punjabi Call Girls In Chandigarh 💯Lucky 🔝8868886958🔝Call Girl In Chandigarh
💚 Punjabi Call Girls In Chandigarh 💯Lucky 🔝8868886958🔝Call Girl In Chandigarh💚 Punjabi Call Girls In Chandigarh 💯Lucky 🔝8868886958🔝Call Girl In Chandigarh
💚 Punjabi Call Girls In Chandigarh 💯Lucky 🔝8868886958🔝Call Girl In Chandigarh
 
neemuch Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
neemuch Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meetneemuch Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
neemuch Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 
(Deeksha) 💓 9920725232 💓High Profile Call Girls Navi Mumbai You Can Get The S...
(Deeksha) 💓 9920725232 💓High Profile Call Girls Navi Mumbai You Can Get The S...(Deeksha) 💓 9920725232 💓High Profile Call Girls Navi Mumbai You Can Get The S...
(Deeksha) 💓 9920725232 💓High Profile Call Girls Navi Mumbai You Can Get The S...
 
(Big Boobs Indian Girls) 💓 9257276172 💓High Profile Call Girls Jaipur You Can...
(Big Boobs Indian Girls) 💓 9257276172 💓High Profile Call Girls Jaipur You Can...(Big Boobs Indian Girls) 💓 9257276172 💓High Profile Call Girls Jaipur You Can...
(Big Boobs Indian Girls) 💓 9257276172 💓High Profile Call Girls Jaipur You Can...
 
kozhikode Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
kozhikode Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meetkozhikode Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
kozhikode Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 
Hubli Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Hubli Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetHubli Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Hubli Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 
Thrissur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Thrissur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetThrissur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Thrissur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 
Thoothukudi Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Thoothukudi Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetThoothukudi Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Thoothukudi Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 
Kolkata Call Girls Miss Inaaya ❤️ at @30% discount Everyday Call girl
Kolkata Call Girls Miss Inaaya ❤️ at @30% discount Everyday Call girlKolkata Call Girls Miss Inaaya ❤️ at @30% discount Everyday Call girl
Kolkata Call Girls Miss Inaaya ❤️ at @30% discount Everyday Call girl
 
ooty Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
ooty Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meetooty Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
ooty Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 
Call Girl in Indore 8827247818 {Low Price}👉 Nitya Indore Call Girls * ITRG...
Call Girl in Indore 8827247818 {Low Price}👉   Nitya Indore Call Girls  * ITRG...Call Girl in Indore 8827247818 {Low Price}👉   Nitya Indore Call Girls  * ITRG...
Call Girl in Indore 8827247818 {Low Price}👉 Nitya Indore Call Girls * ITRG...
 
Escorts Service Ahmedabad🌹6367187148 🌹 No Need For Advance Payments
Escorts Service Ahmedabad🌹6367187148 🌹 No Need For Advance PaymentsEscorts Service Ahmedabad🌹6367187148 🌹 No Need For Advance Payments
Escorts Service Ahmedabad🌹6367187148 🌹 No Need For Advance Payments
 
Dehradun Call Girls 8854095900 Call Girl in Dehradun Uttrakhand
Dehradun Call Girls 8854095900 Call Girl in Dehradun  UttrakhandDehradun Call Girls 8854095900 Call Girl in Dehradun  Uttrakhand
Dehradun Call Girls 8854095900 Call Girl in Dehradun Uttrakhand
 
Patna Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Patna Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetPatna Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Patna Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 

Final Report on Use of Star Schema

  • 1. 1 TABLE OF CONTENTS Page No Acknowledgement.......................................................................................................................i Certificate…...............................................................................................................................ii List of Figures...........................................................................................................................iii Abstract.....................................................................................................................................iv Chapter 1 1 The Development of Medical Databases.................................................................................2 1.1 The Origins of Medical Databases……..………………………………………………….2 1.2 Requirements and Structural Designs for Medical Databases..…………………………...5 Chapter 2 Classification of Medical Databases…………………………………………………………..7 Chapter 3 Health Care…………………………………………………………………………………...12 3.1 Health Care Value Cycle…………………………………………………………………12 3.2 Health Care Bill…………………………………………………………………………..15 3.3 Roles Played by the Date Dimension…………………………………………………….18 3.4 Multivalued Diagnosis Dimensions……………………………………………………...19 3.5 Extending a Billing Fact Table to show Profitability…………………………………….23 3.6 Dimensions for Billed Hospital Stays……………………………………………………23 3.7 Complex Health Care Events…………………………………………………………….24 3.8 Medical Records………………………………………………………………………….26 3.9 Fact Dimension for Sparse Facts…………………………………………………………26 4. Conclusion…………………………………………………………………………………29 5. References…………………………………………………………………………………31
  • 2. 2 Chapter I THE DEVELOPMENT OF MEDICAL DATABASES Since the early 1900s physicians have followed the teachings of the famed clinician. W Osler, to study and learn from their patients and from the medical records of their patients, in order to improve their knowledge of diseases. In the 2000s, as in the 1900s, physicians continue to initiate this learning process by taking a history of the patient’s medical problems, performing a physical examination of the patient, and then recording the history and physical examination findings in the patient’s medical record. To confirm a preliminary diagnosis and to rule-out other possible diagnoses, physicians refer the patients for selected tests and procedures that usually involve the clinical laboratory, radiology, and other clinical-support services. After reviewing the information received from these services, physicians usually arrive at a more certain diagnosis, and then prescribe appropriate treatment. For an unusual or a complex medical problem, physicians may refer the patient to appropriate clinical specialists, and may also review evidence-based reports of appropriate therapies by consulting relevant medical literature and bibliographic databases. 1.1 The Origins of Medical Databases Lindberg (1979) described the degrees of difficulty in the development of medical innovations in the grades of their complexity: (1) the easiest was the automation of a simple function such as providing a patient’s billing for services; (2) more difficult was the automation of a more complex function such as collecting and storing a patient’s medical history; (3) very difficult was constructing a very complex func-tion such as a medical database; and (4) the most difficult was developing the highly complex medical information and database-management system for a hospital, as Starr (1982) had aptly ranked the hospital to be the most complex organizational structure created by man. Databases were defined by Frawley et al. (1992) as logically integrated collections of data in one or more computer files, and organized to facilitate the efficient storage, change, query, and retrieval of contained relevant information to meet theneeds of its users. Frawley estimated that the amount of information generated in the world doubled every 20 months, and that the size and number of computer data-bases increased even faster. Clinical repositories was the term proposed by Johnson (1996) as more accurately representing a shared resource of patient data that was collected for the purpose of supporting clinical care. Johnson advised that a large-
  • 3. 3 scale, clinical repository required: (a) a data model to define its functional require-ments and to produce a formal description, (b) a conceptual schema of all the data generated in the enterprise and how it was all related, and (c) a database structural design to define its technical requirements. Since a medical database usually oper-ated within a medical database- management system, the database needed to be compatible with the information system of the enterprise of which it was a part; and it also needed to be operationally and structurally independent of all subsystems and applications programs. The evolution, design, implementation, and management of computer-stored databases were described in some detail by Connolly and Begg (1999), Collen (1986, 1990, 1994, 1995); and also by Coltri (2006) who considered computer-stored databases to be one of the most important developments in soft- ware engineering. Database-management systems soon replaced the earlier file-based systems that often stored the same data in multiple files, and where it could be more difficult to retrieve and coordinate a patient’s data. A database-management system was defined by Blum (1986a, b, c) as software consisting of a collection of procedures and pro-grams with the requirements for: (1) entering, storing, retrieving, organizing, updat-ing, and manipulating all of the data within its database; (2) managing the utilization and maintenance of the database; (3) including a metadatabase to define applica-tion-specific views of the database; (4) entering data only once, even though the same data might be stored in other subsystems; (5) retrieving, transferring, and communicating needed data in a usable format, and having the ability to create inverted files indexed by key terms; (6) maintaining the integrity, security, and required level of confidentiality of its patients’ data; and (7) fulfilling all manage-ment, legal, accounting, and economic requirements. In the 1950s with the development of computers, physicians began to bring their work in batches to a central computer to be processed. Patient-care data were ini-tially collected, entered, and merged into computer files that were stored on mag-netic tape, and a file- management system was designed to enter, store, and retrieve the data. In the 1960s time- shared, mainframe computers that communicated by telephone lines to remote data-entry terminals and printers, allowed many users to process their data concurrently, and also provided a relatively acceptable turn-around time for data services. Patients’ data were initially stored in computer data-bases on magnetic tape; but were soon moved to storage on random-access, magnetic disc drives; and were then better organized in a manner more suitable for query and
  • 4. 4 retrieval of the data. However, at that time the high costs for computer storage greatly limited database capacities. In the 1970s as clinical support subsystems evolved for the clinical laboratory, radiology, pharmacy, and for other clinical services, most developed their own separate databases. With the emergence of random-access disc storage, subsystem databases could be more readily merged into larger databases and then needed an integrating database- management system. The retrieval of subsets of selected data from various databases required some re-organization of the stored data, and also needed an index to the locations of the various data subsets. Attempts were made to design more efficient databases to make them independent of their applications and subsystems, so that a well-designed database could process almost any type of data presented to it. Terdiman (1982) credited the development of microcomputer technology in the 1970s with many of the subsequent advances in database-management systems. In the 1980s microcomputers and minicomputers were increasingly used for small database systems. As storage technology continued to become more efficient, and larger and cheaper storage devices became available, then computer-based registries expanded their storage capacity for larger amounts of data and were then generally referred to as databases. When huge storage capacity became available at a relatively low-cost, very large collections of data were then often referred to as data warehouses. Bryan (1988) called 1988 the “year of the database”; and he reported that more than 20 new or improved database-management systems became available in that year. In 1989 the total number of computer-stored databases in the world was estimated to be about five-million; and although most of the databases were considered to be relatively small, some were huge as was the 1990 U.S. census database comprising a million-million bytes of data (Frawley et al. 1992). Prior to the 1990s most physicians documented their patient-care activities by handwriting in paper-based charts. Surgeons and pathologists usually dictated their reports describing their procedures and findings; and medical secretaries then transcribed their dictations. With the increasing access to larger computers in the 1990s, medical centre-based physicians began entering a patient’s data directly into the patient’s electronic medical record (EMR) using keyboard terminals and clinical workstations. Dedicated computers became database servers to store and integrate multiple databases; and to be able to add new data without disrupting the rest of the system. In the 2000s EMRs became more common; and new advances in informatics technology resulted in more efficient data management of expanding, multi-media, patient-care databases (Coltri 2006). More details on the origins and the development of medical databases can be found in
  • 5. 5 Blum (1983, 1986), Blum and Duncan (1990), Collen (1986, 1994, 1995), Coltri (2006), Duke and Bowers (2006), Campell-Kelly (2009). 1.2 Requirements and Structural Designs for Medical Databases Data-modelling designs to provide the conceptual schema that represented the information in clinical repositories were advocated by Johnson (1996) to be as important for large medical databases as were their structural designs. He defined the conceptual schema for patient care as a representation of all of the data types required to manage the health-care process, whether using a hierarchical, a relational, or an object oriented structural database design, or a combination of database structural designs. He advised that the structural design of a database needed to be able to provide rapid retrieval of data for individual patients, and to have the capability to adapt to changing information needs of growth and new technology; yet he emphasized that the primary purpose of the database structural design was to implement the conceptual schema. To properly build a database, Johnson (1996) proposed that it was necessary to first develop a model of the database that defined its functional requirements, its technical requirements, and its structural design. The database model needed to produce a formal description, a conceptual schema of all the data generated in the enterprise, and how all of the data were related. Thus the users of a medical database needed to define its functional requirements as to exactly what they wanted the database and its database-management system to do. Since a medical database usually operated within a larger medical-information system, the functional requirements of the medical database needed to be compatible with those of the medical enterprise of which it was a part. Whether a medical database served as the primary electronic medical record (EMR), or served as a secondary medical database, such as a clinical research database with its data derived from the EMR, both had some similar basic functional requirements. Davis and Terdiman (1974) recommended that as a minimum, the major goals of a medical database should be: (1)Tto maintain readily accessible all of the relevant data for each patient served; and (2)To provide a resource for the systematic retrieval of all relevant data from all patients’ records for any desired primary purpose, or for a secondary administrative or a research purpose.
  • 6. 6 The structural design of medical databases was substantially developed by Wiederhold (1981, 1982, 1983, 1984), Wiederhold et al. (1975, 1987) at Stanford University. Wiederhold emphasized that the effectiveness of a database depended on its relevance to its organizational purposes; that it had to serve as a resource to the enterprise which had collected the data; and that a database-management system was needed to control, store, process, and retrieve the data. He advised that when using very large databases it was helpful to apply automated methods for the acquisition and retrieval of the desired information. Several database structural designs evolved as new medical and informatics technologies were developed to meet the various users’ requirements. Hierarchical tree-structured databases were considered by Coltri (2006) to be the simplest and earliest structural design used for medical databases. In a hierarchical designed database the data was organized in what was usually described as a “parent–child” relationship, where each “parent” could have many “children”, but each “child” had only one “parent”. Hierarchical data subclasses with inheritance of attributes could also appear in other designed databases, such as in relational and in object-oriented databases. A. Coltri reported that the best known early example of a hierarchical structured, medical database was the one developed in the 1960s by Barnett (1974), Barnett et al. (1981) and associates (Greenes et al. 1969; Grossman et al. 1973). Their Massachusetts General Hospital Utility Multi-Programming System (MUMPS) was designed for building and managing dynamic hierarchical databases with interactive computing applications and online transactional processing.
  • 7. 7 CHAPTER 2 CLASSIFICATION OF MEDICAL DATABASE Medical databases are classified in this book in accordance with their objectives, which can be to support clinical patient care, or to support medical research, or sup-port administrative functions, or public health objectives. Medical databases collect, integrate, and store data from various sources; and they are usually considered to be primary databases if the data were initially collected and used to serve the direct purposes of the user; and are considered to be secondary databases when data derived from primary databases were stored in other databases and used for other objectives (Glichlich et al. 2007). Clinical databases include a variety of primary and secondary databases that are used primarily by physicians to support their clinical patient care by helping in making decisions for the diagnosis and treatment of patients. The great utility of clinical databases resides in their capacity for storing huge volumes of information collected from large numbers of patients and from other clinical sources; and for their ability to help users to search, retrieve, and analyze information relevant to their clinical needs. Michalski et al. (1982) described clinical databases as constructed to collect patient data and to learn more about the phenomena which produced the data; and he divided techniques for using clinical databases into: (a) Descriptive analyses to extract summaries of important features of a database, such as grouping patients with similar syndromes and identifying important characteristics of each syndrome; and (b) Predictive analyses to derive classification rules, such as developing rules which predict the course of a disease. Clinical databases were differentiated by Hlatky (1991) as either primary medical databases that are intended to assist and support decision making in direct patient care; or as secondary medical data-bases that are the repositories of data derived from medical primary databases, and these include medical specialized databases and medical research databases. Primary medical record databases, also more commonly referred to as patient record databases, as electronic medical records (EMRs) or as electronic health records (EHRs), are the data repositories used by physicians, nurses, and other health-care providers to enter, store, and
  • 8. 8 retrieve patients’ data during the process of providing patient care. The National Library of Medicine’s MESH terms defines an electronic medical record (EMR) as a computer-based system for input, storage, display, retrieval, and printing of information contained in a patient’s medical record (Moorman et al. 2009). Primary clinical databases also include the separate repositories for storing data collected from clinical specialties, such as from surgery, paediatrics, obstetrics, and other clinical services; and from the clinical support services, such as from laboratory, radiology, pharmacy, and others. Patient record databases may contain data collected over long periods of time, sometimes for a patient’s life-time; they are accessed by a variety of users for different patient-care purposes; and they need to satisfy legal requirements for maintaining the security, privacy and confidentiality of all of their patients’ data. When computer-based patients’ records replaced paper-based patients’ charts, the hospital record room was replaced by a computer centre that initially stored the patient-record databases on magnetic tapes or discs. The rapidly increasing volume of computer-based information stimulated the development of larger storage devices and more efficient database-management systems. For most medical applications, Blum (1986a) emphasized that the primary utility of a clinical information system depended on its database-management system. It soon became apparent that the complex requirements of patient-record databases required combined hierarchical, relational, and object-oriented structural approaches. After a review of the patient- record database structures employed in the 1990s, Stead et al. (1992) et al. reported that the major problem for a patient-record database-management system was the difficulty of mapping complex logical structures into a physical media; and concluded that patient-record databases were much more complicated than were databases used for other purposes, that none of the existing database structural designs was adequate for developing, as an example, a com-mon national patient-record database, and some combination of database designs would needed to be employed. Dick and Steen (1992) and E. Steen also reviewed the essential technologies needed for a patient-record database system, and agreed that in the 1990s there was not yet one medical database system available that could serve as a model for computer-based patient record systems, and that could satisfy all the continual changing requirements for timely processing of all the information commerce in a comprehensive patient-care system, with all of its different information modalities and changing patient-care technologies, and with its strict legal requirements for assuring patients’ data security and confidentiality. Camp et al. (1983) described some of the complexities of primary clinical data-bases, namely:
  • 9. 9 (1) At the time when patient-care information was being obtained it was not always known what data might be needed in the future, so this tended to enlarge a database with some data that was never used; (2) The database had to store information that could be differently structured and formatted, and was often unstandardized; (3) It needed to allow exploring complex data relationships in (frequently) a minimal access time, and not unduly interfere with the productivity of busy health care providers who were not computer programmers; and (4) A common deficiency of primary clinical databases was that they tended to lack patients’ data for events that occurred between recorded visits to their health care providers. Connolly and Begg (1999) noted that since most clinical data were “time-stamped”, it was necessary that data transactions be recorded and retrieved in their correct time sequence. Graves (1986) added that another requirement for a medical database was to provide a natural language processing (NLP) program that had the capability to query textual information such as were obtained by patient interviews, and that could include relevant expressed feelings and experiential information. The availability of online access to clinical databases greatly facilitated the process of searching and retrieving information when needed in a timely way by physicians for clinical decision-making. The factors that influenced the rate of diffusion of medical databases and other computer applications in medical practice were studied by Anderson and Jay (1984) at Purdue and Indiana Universities; and they concluded that physicians had the major role in their diffusion. Specialized clinical databases can be disease-specific (as for heart disease or cancer), or device- or procedure-specific (as for coronary artery bypass surgery), or therapy-specific (as for anti-viral drugs), or population-specific (as for a geriatric or a racial group). Safran and Chute (1995) observed that a clinical database could be used to query for information on an individual patient, or to find data on patients with similarities to the one being cared for, or to describe a group of patients with some common attributes, or to analyze data patterns in terms of trends or relation-ships. Fries ( 1984) noted that some of the most important medical problems were the chronic diseases, such as arthritis, cancer, and heart disease; and a study of the management of these disorders could be benefited by chronic diseases databases (see also Sect. 5.3). A large medical centre often had many specialized clinical databases for its various inpatient and outpatient clinical services, and for its clinical support subsystems (laboratory, radiology, pharmacy, and others). As a result it usually needed a distributed database-
  • 10. 10 management system to service them all. Each clinical subsystem’s database needed extract- load-transfer (ETL) programs to move data to-and-from its subsystem database and the central, integrated, clinical database. Clinical research databases may be primary databases when the clinical patient data was collected for the primary purpose of supporting clinical research, such as for clinical trials; but they are usually secondary research databases that contain selected data extracted from primary medical databases, such as when they contain clinical data extracted from primary medical records for groups of patients with the same problem. This differs from primary patient care databases where the medical record of each patient needs to contain all of the information collected for all of the medical problems of that individual patient. In a secondary research database it is usually necessary to extract and transfer the selected data from the primary patient-record database into the secondary research database; and all patient data transferred from a primary patient-record database has additional special legal requirements for assuring the data validity, data security, and the strict privacy and confidentiality of each patient’s data. Garfolo and Keltner (1983) emphasized the importance of the need to de-identify patient data when a clinical database is also used for research purposes. Bio surveillance databases were developed by the FDA for the surveillance of adverse drug events and by the CDC for the surveillance of epidemics of infectious diseases. Claims databases were established by Medicare, Medicaid, and commercial health care insurers for collecting from health care providers their relevant sub-sets of primary medical record data for the purpose of arranging payments for claims of provided clinical services. Medical knowledge databases are comprehensive collections of information from a variety of sources, including clinical and research databases, textbooks, and publications by experts in specific medical issues. They are used to communicate medical information in order to support the clinical decision-making process and large knowledge bases with other medical databases have been combined and used for data mining to discover new knowledge. Medical bibliographic databases are collections of medical literature developed as fact-and-information locators in libraries and other collections of relevant medical publications, and are used to pro-vide and communicate medical information. The National Library of Medicine (NLM) is the primary resource in the world for a variety of bibliographic databases. Metadatabases are developed to store metadata, that are data that describe the data contained in a database for the purposes of providing a dictionary with definitions of terms; and a list of
  • 11. 11 coded data in the database with their codes; and to serve as a the saurus to recognize different terms that have similar meanings; and to provide a lexicon of standard, accepted, defined, and correctly spelled terms. A metadatabase needs to contain associated relevant information to aid: in the storage and retrieval of data in the database; in providing linkages to other data items and files; in providing keys to related tables; in providing logical connections for data presentation, interactive validation, data extraction, permitting ad-hoc query; and also providing users with inter-faces for any metadata additions or corrections. A data dictionary was usually initiated as a part of a metadatabase by selecting commonly used terms from a standard medical dictionary and from related medical literature; and needed to be capable of adding new terms from the database itself; so the design of the data dictionary had to allow for incorporating new data items when they were introduced, such as for new procedures. As these lexicons became the basis for automated natural-language processing, they also usually included: (1) Syntactical information as to whether a word was a noun, a verb, or other; and (2) The word’s semantical information as to its meaning in the language of medicine (McCray et al. 1987). An important role of a healthcare data warehouse is to provide information for Executive manager to analyze situations and make decisions. Put in another way, a healthcare data warehouse provides information for doctors to make decisions and do their jobs more effectively. The top level of decision making involves strategic decision making. At this level managers make decisions about the overall goals of the organization. For instance, types of decisions made on this level include which services need to be provided (such as acute, ambulatory or long term care) and at which geographical location to operate (such as local, state, national). The second level concerns tactical decision making. The decisions made on this level relate to the tactical units of the organization such as patient care services and marketing. The third level concerns the day to day decisions of the organization such as hiring employees, ordering supplies and medications, processing bills. Good systems provide the information needed, so that Managers are making more efficient decisions. Described in this paper is the development and implement of a prototype healthcare data warehouse specific to cancer diseases, employing the new ‘data warehouse’ technology incorporating large quantity of analysis information needed for healthcare decision-making.
  • 12. 12 CHAPTER 3 HEALTH CARE Health care presents several interesting data warehouse design situations. In this chapter we will imagine first that we work for a large health care consortium, then that we work for a billing organization for care providers and hospitals, and finally that we work for a large clinic with millions of complex patient treatment records. Each of these situations will suggest important design techniques applicable to health care and other industries. Chapter 3 discusses the following concepts:  Value circle within health care, centred on the patient treatment records  Accumulating snapshot fact table to handle medical bill line items  More dimension role-playing as applied to multiple dates and providers  Multivalued dimensions, such as an open-ended number of diagnoses along with effective dates and weighting factors to support allocations  Extended fact set to support profitability analysis  Handling of complex medical events  Fact dimension to organize extremely sparse, heterogeneous measurements 3.1 Health Care Value Circle A typical large health care consortium is a network of providers, clinics, hospitals, pharmacies, pharmaceutical manufacturers, laboratories, employers, insurance companies, and government agencies. A health care consortium resembles more of a value circle, as illustrated in Figure 3.1. This figure is not a schema diagram! It is a picture of how all these diverse organizations need to share the same critical data: the patient treatment record. There are two main types of patient treatment records. The treatment billing record corresponds to a line item on a patient bill from a provider’s office, a clinic, a hospital, or a laboratory. The treatment medical record, on the other hand, is more comprehensive and includes not only the treatments that result in charges but also all the laboratory tests, findings, and provider’s notes during the course of treatment. The issues involved in these two kinds of records are quite different, and we will look at them in separate sections. Our large health care consortium must be able to share treatment billing records smoothly from organization to organization. Billing records from all
  • 13. 13 the different kinds of providers must have a complete set of common dimensions in order to be processed by the insurance companies and medical bill payers. As individuals move from location to location, employer to employer, and insurance company to government health care program, a coherent picture of that individual’s history needs to be creatable at any time. And finally, on the scrimmage line of health care delivery, the medical records of a patient need to be available on short notice for legitimate medical use by any of the primary providers. The health care value circle differs from the classic linear value chain because there is no obvious ordering in time. However, the issues of conforming the common dimensions remain exactly the same. The health care consortium will be able to function if and only if it can implement a set of conformed dimensions. A representative set of dimensions that must be confirmed by the health care consortium include:  Calendar date  Patient  Responsible party (parent, guardian, employee)  Employer  Health plan  Payer (primary, secondary)  Provider (all forms ofhealth care professionals who administer treatments)  Treatment (billable procedure, lab test, examination)  Drug Fig 3.1. Typical Health Care Value
  • 14. 14  Diagnosis  Outcome  Location (office, clinic, outpatient facility, hospital) The diagnosis and treatment dimensions are considerably more structured and predictable than one might expect because the insurance industry and government have mandated their content. Diagnoses usually follow the International Classification of Diseases, 9th Revision: Clinical Modification, Volumes 1 and 2 (ICD-9-CM) standard. The U.S. Department of Health and Human Services (HHS) maintains this standard as far as the United States is concerned. The ICD-9-CM standard, Volume 3, defines treatment and management codes. The Health Care Financing Administration Common Procedure Coding System (HCPCS) standard, also updated and distributed by HHS; and Current Procedural Terminology, 4th Edition (CPT-4), as updated and distributed by the American Medical Association, cover health-related services and other items, including:  Physician services  Physical and occupational therapy services  Radiological procedures  Clinical laboratory tests  Other medical diagnostic procedures  Hearing and vision services  Transportation services (including ambulance)  Medical supplies  Orthotic and prosthetic devices  Durable medical equipment Dentists are able to use the Code on Dental Procedures and Nomenclature, as updated and distributed by the American Dental Association, for dental services. When all the dimensions in our list have been conformed, then any organization with appropriate access privileges can drill across the separate fact tables, linking together the information by matching the row headers of each row. The use of conformed dimensions guarantees that this matching process is well defined.
  • 15. 15 3.2 Health Care Bill Let us imagine that we work for a billing organization for health care providers and hospitals. We receive the primary billing transactions from the providers and hospitals, prepare and send the bills to all the responsible payers, and track the progress of the payments made. Our health care billing data warehouse must meet a number of business objectives. We want to analyse the counts and dollar amounts of all the bills by every dimension available to us, including by patient, provider, diagnosis, treatment, date, and any combinations of all these. We want to see how these bills have been paid and what percentage of the bills have not been collected. We want to see how long it takes to get paid, and we want to see the current status of all unpaid bills, updated every 24 hours. And of course, the queries need to be simple, and the response time must be instantaneous! The transaction grain is the most fundamental. In the health care bill example, the transaction grain would include every input transaction from the providers and the hospitals, as well as every payment transaction resulting from the bill being sent. Although the world can be reconstructed from individual transactions, this grain may not be the best grain to begin with to meet our business reporting objectives because many of the queries would require rolling the transactions forward from the beginning of the patient’s treatment. The periodic snapshot grain is the grain of choice for long-running time-series processes such as bank accounts and insurance policies. However, the periodic snapshot doesn’t do a good job of capturing the behaviour of a quickly moving, short-lived process such as orders or medical bills. Most of the interesting activity surrounding a medical bill takes place quickly in one or two months. Also, if the periodic snapshot is available only at month-end, we cannot see the current status of the unpaid bills. We will choose the accumulating snapshot grain for our health care bill. A single row in our fact table will represent a single line item on a health care bill. Furthermore, this single row will represent the accumulated history of that line item from the moment of creation of the row to the current day. When anything about the line item changes, we revisit the unique accumulating row and modify the row appropriately. From the point of view of the billing organization, we’ll assume that the standard scenario of a bill includes:  Treatment date
  • 16. 16  Primary insurance billing date  Secondaryinsurance billing date  Responsible party billing date  Last primary insurance payment date  Last secondaryinsurance payment date  Last responsible party payment date We choose these dates to be an adequate description of a normal bill. An accumulating snapshot does not attempt to describe unusual situations fully. If the business users occasionally need to see all the details of a particularly messy bill payment situation, then a companion transaction grained fact table would be needed. The purpose of the accumulating snapshot grain is to place every health care bill into a uniform framework so that the business objectives we described earlier can be satisfied easily. Now that we have a clear idea of what an individual fact table row represents (for example, the accumulated history of a line item on a health care bill), we can complete the list of dimensions by carefully listing everything we know to be true in the context of this row. In our hypothetical billing organization, we know the responsible party, employer, patient, provider, provider organization, treatment performed, treatment location, diagnosis, primary insurance organization, secondary insurance organization, and master bill ID number. These become our dimensions, as shown in Figure 3.2.
  • 17. 17 The interesting facts that we choose to accumulate over the history of the line item on the health care bill include the billed amount, primary insurance paid amount, secondary insurance paid amount, responsible party paid amount, total paid amount (calculated), amount sent to collections, amount written off, amount remaining to be paid (calculated), number of treatment units (depending on treatment type), treatment duration, number of days from billing to first primary insurance payment, number of days from billing to first secondary insurance payment, and number of days from billing to first responsible party payment. We’ll assume that a row is created in this fact table when the activity transactions are first received from the providers and hospitals and the initial bills are sent. On a given bill, perhaps the primary insurance company is billed, but the secondary insurance and the responsible party are not billed, pending a response from the primary insurance company. For a period of time after the row is first entered into the database, the last five dates are not applicable. The surrogate date key in the fact table must not be null, but the full date description in the corresponding date dimension table row can indeed be null. In the next few days and weeks after creation of the row, payments are Fig 3.2. Accumulating snapshot fact table for health care billing
  • 18. 18 received, and bills are sent to the secondary insurance company and responsible party. Each time these events take place, the same fact table row is revisited, and the appropriate keys and facts are destructively updated. This destructive updating poses some challenges for the database administrator. The row widths in databases such as Oracle will grow each time an update occurs because numeric facts may be changed from a small number to a larger number. This can cause block splits and fragmentation if enough space is not available at the disk block level to accommodate this growth. If most of these accumulating rows stabilize and stop changing within 90 days (for instance), then a physical reorganization of the database at that time can recover disk storage and improve performance. If the fact table is partitioned on the treatment date key, then the physical clustering (partitioning) probably will be well preserved throughout these changes because we assume that the treatment date is not normally revisited and changed. 3.3 Roles Played By the Date Dimension Accumulating snapshot fact tables always involve multiple date stamps. Our example, which is typical, has seven foreign keys pointing to the date dimension. This is a good place to reiterate several important points:  The foreign keys in the fact table cannot be actual date stamps because they have to handle the “Not Applicable” case. The foreign keys should be simple integers serving as surrogate keys.  The surrogate keys assigned in the date dimension should be assigned consecutively in order of date. This is the only dimension where the surrogate keys have any relationship to the underlying semantics of the dimension. We do this so that physical partitioning of a fact table can be accomplished by using one of the date-based foreign keys. In our example we recommend that the treatment date key be used as the basis for physically partitioning the fact table.  Surrogate keys corresponding to special conditions such as “Not Applicable,” “Corrupted,” or “Hasn’t Happened Yet” should be assigned to the top end of the numeric range so that these rows are physically partitioned together in the hot partition with the most recent data. We do this if these rows are ones that are expected to change.
  • 19. 19  We do not join the seven date-based foreign keys to a single instance of the date dimension table. Such a join would demand that all seven dates were the same date. Instead, we create seven views on the single underlying date dimension table, and we join the fact table separately to these seven views, just as if they were seven independent date dimension tables. This allows the seven dates to be independent. We refer to these seven views as roles played by the date dimension table.  The seven view definitions using the date dimension table should cosmetically relabel the column names of each view to be distinguishable so that query tools directly accessing the views will present the column names through the user interface in a way that is understandable to the end user. Although the role-playing behaviour of the date dimension is very characteristic of accumulating snapshot fact tables, other dimensions often play roles in similar ways, such as the payer dimension in Figure 13.2. Later in this chapter we will see how the physician dimension needs to have several roles in complex surgical procedures depending on whether the physician is the primary responsible physician, working in a consulting capacity, or working in an assisting capacity. 3.4 Multivalued Diagnosis Dimension Normally we choose the dimensions surrounding a fact table row by asking, what do we know to be true in the context of the measurement? Almost always we mean, what takes on a single value in the context of the measurement? If something has many values in the context of the measurement, we almost always disqualify that dimension because the many-valuedness means that the offending dimension belongs at a lower grain of measurement. However, there are a few situations in which the many-valuedness is natural and unavoidable, and we do want to include such a dimension in our design, such as the case when we associated multiple customers with an account. The diagnosis dimension in our health care billing fact table is another good example. At the moment of treatment, the patient has one or more diagnoses, which are well known. Furthermore, there is good incentive for keeping these diagnoses along with the billing row. If there were always a maximum of three diagnoses, for instance, we might be tempted to create three diagnosis dimensions, almost as if they were roles. However, diagnoses don’t behave like
  • 20. 20 roles. Unfortunately, there are often more than three diagnoses, especially for elderly patients who are hospitalized. Real medical bill-paying organizations sometimes encounter patients with more than 50 diagnoses! Also, the diagnoses don’t fit into well-defined roles other than possibly admitting diagnosis and discharging diagnosis. The role-playing dimensions we talked about in the preceding section are categorized much more naturally and disjointly. Finally, the multiple-slots style of design makes for very inefficient applications because the query doesn’t know a priori which dimensional slot to constrain for a particular diagnosis. We handle the open-ended nature of multiple diagnoses with the design shown in Figure 3.3. We replace the diagnosis foreign key in the fact table with a diagnosis group key. This diagnosis group key is connected by a many to-many join to a diagnosis group bridge table, which contains a separate row for each diagnosis in a particular group. Fig 3.3 Design for a multivalued diagnosis dimension.
  • 21. 21 If a patient has three diagnoses, then that patient is assigned a diagnosis group with three diagnoses. We assign a numerical weighting factor to each diagnosis in the group such that the sum of all the weighting factors in the group is exactly 1.00. We can then use the weighting factors to allocate any of the numeric additive facts across individual diagnoses. In this way we can add up all billed amounts by diagnosis, and the grand total will be the correct grand total billed amount. This kind of report would be called a correctly weighted report. We see that the weighting factors are simply a way to allocate the numeric additive facts across the diagnoses. Some would suggest that we change the grain of the fact table to be line item by diagnosis rather than just line item. In this case we would take the weighting factors and physically multiply them against the original numeric facts. This is done rarely, for three reasons. First, the size of the fact table would be multiplied by the average number of diagnoses. Second, in some fact tables we have more than one multivalued dimension. The number of rows would get out of hand in this situation, and we would start to question the physical significance of an individual row. Finally, we may want to see the unallocated numbers, and it is hard to reconstruct these if the allocations have been combined physically with the numeric facts. If we choose not to apply the weighting factors in a given query, we can still summarize billed amounts by diagnosis, but in this case we get what is called an impact report. A question such as “What is the total billed amount across all possible treatments in any way involving the diagnosis of XYZ?” would be an example of an impact report. In Figure 3.3, an SQL view could be defined combining the fact table and the diagnosis group bridge table so that these two tables, when combined, would appear to data access tools as a standard fact table with a normal diagnosis foreign key. Two views could be defined, one using the weighting factors and one not using the weighting factors. Finally, if the many-to-many join in Figure 3.3 causes problems for your modelling tool that insists on proper foreign-key-to-primary-key relationships, the equivalent design of Figure 13.4 can be used. In this case an extra table whose primary key is diagnosis group is inserted between the fact table and the bridge table.
  • 22. 22 Now both the fact table and the bridge table have conventional many-to one joins in all directions. There is no new information in this extra table. In the real world, a bill-paying organization would decide how to administer the diagnosis groups. If a unique diagnosis group were created for every outpatient treatment, the number of rows could become astronomical and unworkable. Probably the best approach is to have a standard portfolio of diagnosis groups that are used repeatedly. This requires that each set of diagnoses be looked up in the master diagnosis group table. If the existing group is found, it is used. If it is not found, then a new diagnosis group is created. In a hospital stay situation, however, the diagnosis group probably should be unique to the patient because it is going to evolve over time as a type 2 slowly changing dimension (SCD). In this case we would supplement the bridge table with two date stamps to capture begin and end dates. While the twin date stamps complicate the update administration of the diagnosis group bridge table, they are very useful for querying and change tracking. They also allow us to perform time-span queries, such as identifying all patients who presented a given diagnosis at any time between two dates. To summarize this discussion of multivalued dimensions, we can list the issues surrounding a multivalued dimension design:  In the context of the fact table measurement, the multivalued dimension takes on a small but variable number of well-defined values.  Correctly allocated reports can be created only if weighting factors can be agreed to.  Weighting factors can be omitted, but then only impact reports can be generated using the multivalued dimension.  In high-volume situations such as medical bills and bank accounts, a system of recognizing and reusing groups should be used.  In cases where the relationship represented in the bridge table changes over time, we embellish the bridge table with begin and end dates. Fig 3.4 Diagnosis group dimension to create a primary key relationship.
  • 23. 23 3.5 Extending a Billing FactTable to show Profitability Figure 3.5 shows an extended set of facts that might be added to the basic billing schema of Figure 3.2. These include the consumables cost, provider cost, assistant cost, equipment cost, location cost, and net profit before general and administrative (G&A) expenses, which is a calculated fact. If these additional facts can be added to the billing schema, the power of the fact table grows enormously. It now becomes a full-fledged profit-and-loss (P&L) view of the health care business. These costs are not part of the billing process and normally would not be collected at the same time as the billing data. Each of these costs potentially arises from a separate source system. In order to bring this data into the billing fact table, the separately sourced data would have to be allocated down to the billing line item. For activity-based costs such as the ones we have included in the list, it may be worth the effort to do this allocation. All allocations are controversial and to an extent arbitrary, but if agreement can be reached on the set of allocations, the P&L database that results is incredibly powerful. Now the health care organization can analyse profitability by all the dimensions! 3.6 Dimensions for billed Hospital Stays The first part of this chapter described a comprehensive and flexible design for billed health care treatments that would cover both inpatient and outpatient bills. If an organization wished Fig 3.5 Billing line-item fact table extended at the same grain with activity-based costs for profit and loss.
  • 24. 24 to focus exclusively on hospital stays, it would be reasonable to tweak the dimensional structure of Figure 3.2 to provide more hospital-specific information. Figure 13.6 shows a revised set of dimensions specialized for hospital stays, with the new dimensions set in bold type. In Figure 3.6 we show two roles for provider: admitting provider and attending provider. We show provider organizations for both roles because providers may represent different organizations in a hospital setting. We also have three multivalued diagnosis dimensions on each billed treatment row. The admitting diagnosis is determined at the beginning of the hospital stay and should be the same for every treatment row that is part of the same hospital stay. The current diagnosis describes the state of knowledge of the patient at the time of the treatment. The discharge diagnosis is not known until the patient is discharged and is applied retroactively to all the rows that have been entered as part of the hospital stay. 3.7 Complex Health Care Events In a hospital setting, we may want to model certain very complex events, such as major surgical procedures. In a heart-transplant operation, whole teams of specialists and assistants are assembled for this one event. A different heart transplant may involve a team with a different makeup. We can model these complex events with the design shown in Figure 3.7. We combine the techniques of role-playing dimensions and multivalued dimensions. We assume that a surgical procedure involves a single responsible physician and variable numbers of attending physicians, assisting professional’s procedures, and equipment types. We also assume that the Fig 3.6 Accumulating snapshot for hospital stays billing.
  • 25. 25 patient has a multivalued diagnosis before the surgery and a separate multivalued diagnosis after the surgery. Thus we have six multivalued dimensions, indicated by the bold type in Figure3.7. The responsible physician, attending physician, and assisting professional dimensions are all roles played by an overall provider dimension. The presurgery and post- surgery multivalued diagnosis dimensions are roles played by a single diagnosis dimension. Since the grain of the fact table is the surgical procedure itself, it is natural to supply a comprehensive set of facts. We show the extended set of facts that would allow a complete P&L analysis to be done on surgical procedures, assuming that the various costs can be allocated to each surgical event. We leave out the weighting factors on all the multivalued dimensions in this design. If we tried to provide weighting factors for the multivalued dimensions, we would be implicitly supporting all the complex combinations of weighting values, some of which would be nonsensical. It doesn’t seem worth the trouble to claim that the correctly allocated portion of the total billed amount of the surgery conjointly assigned to each possible assistant and each possible piece of equipment has much meaning. Our technique of placing the weighting factors independently in each dimension is only part of the problem. A more practical concern is that most organizations would not be willing to assign dozens or hundreds of weighting factors. Without the eighting factors, we nevertheless can create many useful impact reports. For instance, what is the total value of all surgeries performed that used a heart-lung machine? We also can ask which physicians, which assisting professionals, and which pieces of equipment were involved in various kinds of surgery. And finally, if we have Fig 3.7 Surgical events transaction fact table extended to show profit and loss.
  • 26. 26 allocated the costs to each surgery in a rational way, we can ask which types of surgery are profitable or non-profitable and why. 3.8 MedicalRecords General medical records are challenging for the data warehouse because of their extreme variability. The records in a patient file take many different forms, ranging from standard- format numeric data captured online, to one-of a- kind laboratory test results, to free-text comments entered by a health care professional, to graphs and photographs. Given this extreme variability, we don’t attempt to do queries and reports simultaneously analysing every data type. However, we still would like to provide a standard, simple framework for all the records for a given patient. We are driven by the suspicion that if the grain could be defined as an individual record entry for a patient, we should be able to capture most of a medical record in a single fact table. In such a fact table we might be tempted to provide a fact field for each type of measurement. Some fields would be numeric, and some fields would be flags. However, the sheer variety of possible medical record entries defeats us. We would soon end up with a ridiculously wide fact table row with too many fact fields, almost all of which would be null or zero for any specific medical entry. In addition, this fixed-slot style of design is very inflexible because new measurement types could be added only by physically altering the fact table with the addition of a new field. 3.9 Fact Dimension for Sparse Facts We handle the extreme variability of the medical record entry with a special dimension we call a fact dimension. In Figure 3.8 the entry type is a fact dimension that describes what the row means or, in other words, what the fact represents. The entry type dimension also determines which of the four kinds of fact fields (amount, flag, comment, and JPEG file name) are valid for the specific entry and how to interpret each field. For example, the generic amount column is used for every numeric entry. The unit of measure for a given numeric entry is found in the attached entry type dimension row, along with any additivity restrictions. If the entry is a flag (for example, Yes/No or High/Medium/Low), the types of flag values are found in the entry type dimension. If the entry is a free-text comment or a multimedia object such as JPEG graphic image or photograph, the entry type dimension alerts the requesting application to look in these fact table fields.
  • 27. 27 This approach is elegant because it is superbly flexible. We can add new measurement types just by adding new rows in the fact dimension, not by altering the structure of the fact table. We also eliminate the nulls in the classic positional fact table design because a row exists only if the measurement exists. However, there are some significant trade-offs. Using a fact dimension may generate lots of new fact table rows. If an event resulted in 10 numeric measurements, we now have 10 rows in the fact table rather than a single row in the classic design. For extremely sparse situations, such as clinical/laboratory or manufacturing test environments, this is a reasonable compromise. However, as the density of the facts grows, we end up spewing out too many fact rows. At this point we no longer have sparse facts and should return to the classic fact table approach. Moreover, we must be aware that this approach typically complicates data access applications. Combining two numbers that have been taken as part of a single event is more difficult because now we must fetch two rows from the fact table. SQL likes to perform arithmetic functions within a row, not across rows. In addition, we must be careful not to mix incompatible amounts in a calculation because all the numeric measures reside in a single amount column. The other dimensions in Fig 3.8 should be fairly obvious. The patient, responsible provider, attending provider, location, equipment, and diagnosis dimensions were all present in various forms in our earlier designs. The test panel ID is a standard degenerate dimension because it probably is just a simple natural key that ties together multiple medical record entries that were all part of a particular test panel. Free text comments should not be stored in a fact table directly because they waste space and rarely participate in queries. Presumably, the free text comments occur only on some records. Rather, the fact table should have a foreign key that points to a comment dimension, as shown Fig 3.8 Transaction table with sparse, heterogeneous medical record facts and a fact dimension.
  • 28. 28 in Figure 3.8. The use of a JPEG file name to refer to an image, rather than embedding the image as a blob directly in the database, is somewhat of an arbitrary decision.
  • 29. 29 CONCLUSION In the 1950s patients’ medical records were paper-based and were stored in stacks of charts on shelves in a medical record room. In the early 1960s the development of computers allowed patient-care data to be entered into a computer by using punched paper cards; and the data were stored and accessed sequentially in computer flat files that had little structured relationships; and they were aggregated in file-management systems. In the late 1960s structured computer databases began to evolve with associated data-base-management systems. In the 1970s distributed database systems began to be developed; and in the following decades of the 1980s, 1990s, and the 2000s the development of increasingly large and enhanced medical databases was truly phenomenal. In the 1990s international communications used computers and local-area net-works; and the use the Internet and the World Wide Web became commonplace. As patient-care data expanded in both volume and complexity, frequent innovations in informatics technology provided more efficient computer-based, clinical-information systems in hospitals and in medical offices. In the 2000s distributed information systems allowed physicians to enter orders and retrieve test results using clinical workstations connected to client–server computers in local-area-networks that linked multiple medical centre databases. By the end of the 2000s there had evolved global wireless communications with translational networks that linked data ware-houses in collaborating medical centres in the nation. Health care not only is an important application area in its own right, but it also provides the data warehouse designer with a number of clear design examples that can be used in many other situations. In this chapter we have seen: The value circle, where a large number of organizations need to look at the same data in parallel without any strong sense of time sequencing. However, the issues of building a value-circle data warehouse bus architecture with conformed dimensions and conformed facts are exactly the same as the more conventional value chains. The accumulating snapshot grain of fact table applied to a medical bill line item. This grain was appropriate because of the relatively brief duration of a medical bill compared with something like a bank account, where the periodic snapshot is more appropriate. Roles played by the date dimension in the accumulating snapshot grain, as well as roles played by the
  • 30. 30 provider and payer dimensions in other fact tables of this chapter. Roles are implemented as separate, specifically named views on a single underlying master dimension. Multivalued dimensions, especially the diagnosis dimension. In many cases we are able to associate a weighting factor with each of the values in a multivalued dimension entry so as to allow allocations to be calculated on numeric facts in the fact table. We would call this kind of report a correctly weighted report. However, in some cases where we are unwilling to assign weighting factors, the multivalued dimension still lets us produce impact reports. An extended set of cost-based facts that allow us to implement a P&L schema. Adding these cost-based facts is very attractive, but it is a lot of work. The best costs to add to a design are activity-based costs because these are not too controversial to associate with individual fact rows such as our medical bill line items. Complex events modelled as single fact table rows containing several multivalued dimensions. In these cases we often do not build weighting factors into all the multivalued dimensions because the interaction between the weighting factors becomes nonsensical. Fact dimensions used to organize extremely sparse, heterogeneous measurements into a single, uniform framework. Our example plausibly covered general medical records consisting of standardized numeric measures, one-of-a-kind lab results, categorical textual measurements, free-text comments, and image data. The advantage of using a JPEG file name is that other image creation, viewing, and editing programs can access the image freely. The disadvantage is that a separate database of graphic files must be maintained in synchrony with the fact table. However, the future improvement is necessary and continuous modification is needed to approach the final success: 1) The security problem should be solved; 2) Visual Basic and/or other language should be more used to implement different functions; 3) A more user-friendly interface should be provided; 4) The system should be web-based.
  • 31. 31 REFERENCES 1). The Data Warehouse Toolkit Second Edition The Complete Guide to Dimensional Modelling by Ralph Kimball & Margy Ross Wiley Computer Publications Chapter 13 Health Care 2). A. Silbershatz, H. Korth., S. Sudarshan, Database System Concepts, McGraw Hill, 5th Edition, 2005 3). Database System Concepts Slides: http://www.cse.iitb.ac.in/sudarsha/dbbook/slide- dir/ch1.pdf, Accessed 2010 4). http://www.ncbi.nlm.nih.gov/pmc/articles/PMC2047311/ 5). http://informatica2009.sld.cu/conferences/design-and-development-of-the-public- healthcare-laboratory-information?set_language=en 6). http://agile.csc.ncsu.edu/iTrust/wiki/doku.php?id=requirements 7).