Caboodle Data Model
What is a primary reason that snapshot data should not be used for audit
reporting? Right Ans - Snapshot data is tracked by the Caboodle ETL
process and does not track when a specific change took place.
Snapshot columns retain... Right Ans - Previous values which been
extracted to Caboodle and have since changed in the source.
How might you be able to determine the date when a change took place?
Right Ans - Check the data lineage to determine the Chronicles item and/or
Clarity table and column that store this information. For non‐Epic data, work
with your Caboodle developers to determine relevant data lineage.
What 4 columns do snapshot tables include? Right Ans - Iscurrent,
StartDate, EndDate, DurableKey
DurableKey Right Ans - While there may be multiple rows in a snapshot
table for a given entity, each with a unique primary key value, the DurableKey
column stores the same value for all rows in the table that refer to the same
entity.
The StartDate and EndDate columns refer to: Right Ans - Store the date
range for the snapshot data in the table. For the rows that hold the earliest
and most recent versions of the data recorded in Caboodle, the StartDate and
EndDate are set to a default start and end date value of 1/1/1979 and
12/31/2099.
Lookup columns will join to either the surrogate key or DurableKey
depending upon: Right Ans - Whether that table uses change tracking.
When joining to a snapshot table do these two things: Right Ans - Use the
durable key lookup column in the starting table to join to the durable key of
the target table. Then, filter to the current row of the snapshot table
Foreign keys that join to the surrogate key of a snapshot table point to the row
that... Right Ans - Was current at the time the data was loaded. Therefore,
such foreign keys could point to stale data in snapshot tables.
, True or False: There will rarely be a lookup column to the durable key of a
snapshot table Right Ans - False. There will always be.
When comparing durable key values, be sure to remove what? Right Ans -
The negative values: ‐1, ‐2, ‐3. Neglecting to do so may result in false positives.
True or False: Any change to patient data in Clarity will generate a new row in
PatientDim after the next extract. Right Ans - False. Assuming the data is
extracted to Caboodle, only changes to snapshot columns would generate a
new row in PatientDim.
Consider the following query:
SELECT DurableKey FROM <TableName> Which of the following statements
are true?
A. This query will only run if <TableName>is a snapshot table.
B. This query will run regardless of whether <TableName> has change
tracking.
C. The value in the DurableKey column could repeat in multiple rows of the
results.
D. There is no table in Caboodle for which this query will run. Right Ans - A
and C
Databases that use referential integrity will always have 2 properties:
Right Ans - 1. Foreign key columns will always have a value even if the source
data is null
2. Foreign key column values will always have a matching value in the
destination table/column
What value indicates unspecified? Right Ans - -1
What value indicates Not Applicable? Right Ans - -2
What value indicates Deleted? Right Ans - -3
What does -1 indicate? Right Ans - A NULL value in the source system
Since many date columns in Caboodle are foreign keys to the DateDim
table ... ? Right Ans - NULL dates from Clarity are often represented with a ‐
1 value DateKey columns in Caboodle.
What is a primary reason that snapshot data should not be used for audit
reporting? Right Ans - Snapshot data is tracked by the Caboodle ETL
process and does not track when a specific change took place.
Snapshot columns retain... Right Ans - Previous values which been
extracted to Caboodle and have since changed in the source.
How might you be able to determine the date when a change took place?
Right Ans - Check the data lineage to determine the Chronicles item and/or
Clarity table and column that store this information. For non‐Epic data, work
with your Caboodle developers to determine relevant data lineage.
What 4 columns do snapshot tables include? Right Ans - Iscurrent,
StartDate, EndDate, DurableKey
DurableKey Right Ans - While there may be multiple rows in a snapshot
table for a given entity, each with a unique primary key value, the DurableKey
column stores the same value for all rows in the table that refer to the same
entity.
The StartDate and EndDate columns refer to: Right Ans - Store the date
range for the snapshot data in the table. For the rows that hold the earliest
and most recent versions of the data recorded in Caboodle, the StartDate and
EndDate are set to a default start and end date value of 1/1/1979 and
12/31/2099.
Lookup columns will join to either the surrogate key or DurableKey
depending upon: Right Ans - Whether that table uses change tracking.
When joining to a snapshot table do these two things: Right Ans - Use the
durable key lookup column in the starting table to join to the durable key of
the target table. Then, filter to the current row of the snapshot table
Foreign keys that join to the surrogate key of a snapshot table point to the row
that... Right Ans - Was current at the time the data was loaded. Therefore,
such foreign keys could point to stale data in snapshot tables.
, True or False: There will rarely be a lookup column to the durable key of a
snapshot table Right Ans - False. There will always be.
When comparing durable key values, be sure to remove what? Right Ans -
The negative values: ‐1, ‐2, ‐3. Neglecting to do so may result in false positives.
True or False: Any change to patient data in Clarity will generate a new row in
PatientDim after the next extract. Right Ans - False. Assuming the data is
extracted to Caboodle, only changes to snapshot columns would generate a
new row in PatientDim.
Consider the following query:
SELECT DurableKey FROM <TableName> Which of the following statements
are true?
A. This query will only run if <TableName>is a snapshot table.
B. This query will run regardless of whether <TableName> has change
tracking.
C. The value in the DurableKey column could repeat in multiple rows of the
results.
D. There is no table in Caboodle for which this query will run. Right Ans - A
and C
Databases that use referential integrity will always have 2 properties:
Right Ans - 1. Foreign key columns will always have a value even if the source
data is null
2. Foreign key column values will always have a matching value in the
destination table/column
What value indicates unspecified? Right Ans - -1
What value indicates Not Applicable? Right Ans - -2
What value indicates Deleted? Right Ans - -3
What does -1 indicate? Right Ans - A NULL value in the source system
Since many date columns in Caboodle are foreign keys to the DateDim
table ... ? Right Ans - NULL dates from Clarity are often represented with a ‐
1 value DateKey columns in Caboodle.