OMOP_5.4_ER_ALL

OMOP_5.4_ER : Model

Entity - episode_event link

Properties
Name Value
Description

 

EPISODE_EVENT

Table Description

The EPISODE_EVENT table connects qualifying clinical events (such as CONDITION_OCCURRENCE, DRUG_EXPOSURE, PROCEDURE_OCCURRENCE, MEASUREMENT) to the appropriate EPISODE entry. For example, linking the precise location of the metastasis (cancer modifier in MEASUREMENT) to the disease episode.

User Guide

This connecting table is used instead of the FACT_RELATIONSHIP table for linking low-level events to abstracted Episodes.

ETL Conventions

Some episodes may not have links to any underlying clinical events. For such episodes, the EPISODE_EVENT table is not populated.

CDM Field User Guide ETL Conventions Datatype Required Primary Key Foreign Key FK Table FK Domain
episode_id Use this field to link the EPISODE_EVENT record to its EPISODE. Put the EPISODE_ID that subsumes the EPISODE_EVENT record here. integer Yes No Yes EPISODE
event_id This field is the primary key of the linked record in the database. For example, if the Episode Event is a Condition Occurrence, then the CONDITION_OCCURRENCE_ID of the linked record goes in this field. Put the primary key of the linked record here. integer Yes No No
episode_event_field_concept_id This field is the CONCEPT_ID that identifies which table the primary key of the linked record came from. Put the CONCEPT_ID that identifies which table and field the EVENT_ID came from. Accepted Concepts integer Yes No Yes CONCEPT Metadata

Data Model Physical
Primary Key Clustered Unspecified
Unlogged false

Columns Summary
Column Name Data Type PK / FK Nullable Description
episode_id int8 PK / FK No
event_id int8 No
episode_event_field_concept_id int4 PK / FK No

Relationships Summary
Name Begin End
 fpk_episode_event_episode_id : Relationship
 episode : Entity
 episode_event : Entity
 fpk_episode_event_episode_event_field_concept_id : Relationship
 concept : Entity
 episode_event : Entity

Columns Detail
Name Value
Name episode_id
Type int8
Nullable false
Unique false
Primary Key true
Index false
Type Name int8
Length 0
Scale 0
Id Generator native
Foreign Key true
Generated Unspecified
Sync To Attribute Yes

Name Value
Name event_id
Type int8
Nullable false
Unique false
Primary Key false
Index false
Type Name int8
Length 0
Scale 0
Id Generator native
Foreign Key false
Generated Unspecified
Sync To Attribute Yes

Name Value
Name episode_event_field_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

Relationships Detail
Name Value
Name fpk_episode_event_episode_id
Foreign Key
episode_event
 episode_id : Column
Primary Key
episode
 episode_id : Column
To Multiplicity 0..*
From Multiplicity 1
Sync To Association Yes
Data Model Physical

Name Value
Name fpk_episode_event_episode_event_field_concept_id
Foreign Key
episode_event
 episode_event_field_concept_id : Column
Primary Key
concept
 concept_id : Column
To Multiplicity 0..*
From Multiplicity 0..1
Sync To Association Yes
Data Model Physical

Appears In
Diagram
 Standardized_Tables : Entity Relationship Diagram
 Vocabulary_With_Standard : Entity Relationship Diagram
OMOP_5.4_ER_ALL