Entity - condition_era link
Properties |
Name | Value | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description |
CONDITION_ERATable Description A Condition Era is defined as a span of time when the Person is assumed to have a given condition. Similar to Drug Eras, Condition Eras are chronological periods of Condition Occurrence. Combining individual Condition Occurrences into a single Condition Era serves two purposes:
ETL Conventions Each Condition Era corresponds to one or many Condition Occurrence records that form a continuous interval. The condition_concept_id field contains Concepts that are identical to those of the CONDITION_OCCURRENCE table records that make up the Condition Era. In contrast to Drug Eras, Condition Eras are not aggregated to contain Conditions of different hierarchical layers. The SQl Script for generating CONDITION_ERA records can be found here The Condition Era Start Date is the start date of the first Condition Occurrence. The Condition Era End Date is the end date of the last Condition Occurrence. Condition Eras are built with a Persistence Window of 30 days, meaning, if no occurrence of the same condition_concept_id happens within 30 days of any one occurrence, it will be considered the condition_era_end_date.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Data Model | Physical | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Primary Key Constraint Name | xpk_condition_era | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Primary Key Clustered | Unspecified | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Unlogged | false |
Columns Summary |
Column Name | Data Type | PK / FK | Nullable | Description | |||||
person_id | int4 | PK / FK | No | ||||||
condition_era_id | int4 | PK | No | ||||||
condition_concept_id | int4 | PK / FK | No | ||||||
condition_era_start_date | timestamp(0) | No | |||||||
condition_era_end_date | timestamp(0) | No | |||||||
condition_occurrence_count | int4 | Yes |
Relationships Summary |
Name | Begin | End | |||
|
|
|
|||
|
|
|
Columns Detail |
Name | Value | ||
Name | person_id | ||
Type | int4 | ||
Nullable | false | ||
Unique | false | ||
Primary Key | true | ||
Index | false | ||
Length | 0 | ||
Scale | 0 | ||
Id Generator | native | ||
Foreign Key | true | ||
Generated | Unspecified | ||
Sync To Attribute | Yes |
Name | Value | ||
Name | condition_era_id | ||
Type | int4 | ||
Nullable | false | ||
Unique | false | ||
Primary Key | true | ||
Index | false | ||
Length | 0 | ||
Scale | 0 | ||
Id Generator | native | ||
Foreign Key | false | ||
Generated | Unspecified | ||
Sync To Attribute | Yes |
Name | Value | ||
Name | condition_concept_id | ||
Type | int4 | ||
Nullable | false | ||
Unique | false | ||
Primary Key | true | ||
Index | false | ||
Length | 0 | ||
Scale | 0 | ||
Id Generator | native | ||
Foreign Key | true | ||
Generated | Unspecified | ||
Sync To Attribute | Yes |
Name | Value | ||
Name | condition_era_start_date | ||
Type | timestamp | ||
Nullable | false | ||
Unique | false | ||
Primary Key | false | ||
Index | false | ||
Type Name | timestamp | ||
Length | 0 | ||
Scale | 0 | ||
Id Generator | native | ||
Foreign Key | false | ||
Generated | Unspecified | ||
Sync To Attribute | Yes |
Name | Value | ||
Name | condition_era_end_date | ||
Type | timestamp | ||
Nullable | false | ||
Unique | false | ||
Primary Key | false | ||
Index | false | ||
Type Name | timestamp | ||
Length | 0 | ||
Scale | 0 | ||
Id Generator | native | ||
Foreign Key | false | ||
Generated | Unspecified | ||
Sync To Attribute | Yes |
Name | Value | ||
Name | condition_occurrence_count | ||
Type | int4 | ||
Nullable | true | ||
Unique | false | ||
Primary Key | false | ||
Index | false | ||
Length | 0 | ||
Scale | 0 | ||
Id Generator | native | ||
Foreign Key | false | ||
Generated | Unspecified | ||
Sync To Attribute | Yes |
Relationships Detail |
Name | Value | ||||||||
Name | fpk_condition_era_person_id | ||||||||
Foreign Key |
|
||||||||
Primary Key |
|
||||||||
To Multiplicity | 0..* | ||||||||
From Multiplicity | 1 | ||||||||
Sync To Association | Yes | ||||||||
Data Model | Physical |
Name | Value | ||||||||
Name | fpk_condition_era_condition_concept_id | ||||||||
Foreign Key |
|
||||||||
Primary Key |
|
||||||||
To Multiplicity | 0..* | ||||||||
From Multiplicity | 0..1 | ||||||||
Sync To Association | Yes | ||||||||
Data Model | Physical |
Appears In |
Diagram | |||
|
|||
|