Table Detail Report
EPISODE
| Column Section | Relationship Section | Top of Page |
Table-level Detail
| Description: | Episode |
| Definition: | The episode table identifies a grouping or collection of information depending on the type of episode. If it is a person episode, then the episode might point to a series of encounters for the person related to a chronic condition or diagnosis. |
| Table Type: | ACTIVITY |
Column Detail - EPISODE
| Column Name | Type | Null? | Definition |
|---|---|---|---|
| ACTIVE_IND | NUMBER | Y | The table row is active or inactive. A row is generally active unless it is in an inactive state such as logically deleted, combined away, pending purge, etc. |
| ACTIVE_STATUS_CD | NUMBER | N | Indicates the status of the row itself (not the data in the row) such as active, inactive, combined away, pending purge, etc. |
| ACTIVE_STATUS_DT_TM | DATE | Y | The date and time that the active_status_cd was set. |
| ACTIVE_STATUS_PRSNL_ID | NUMBER | N | The person who caused the active_status_cd to be set or change. |
| BEG_EFFECTIVE_DT_TM | DATE | Y | The date and time for which this table row becomes effective. Normally, this will be the date and time the row is added, but could be a past or future date and time. |
| CONTRIBUTOR_SYSTEM_CD | NUMBER | N | Contributor system identifies the source feed of data from which a row was populated. This is mainly used to determine how to update a set of data that may have originated from more than one source feed. |
| CREATE_DT_TM | DATE | Y | The date and time this episode was created. |
| CREATE_PRSNL_ID | NUMBER | Y | The ID of the person who created the episode. |
| DATA_STATUS_CD | NUMBER | N | Data status indicates a level of authenticity of the row data. Typically this will either be AUTHENTICATED or UNAUTHENTICATED. |
| DATA_STATUS_DT_TM | DATE | Y | The date and time that the data_status_cd was set. |
| DATA_STATUS_PRSNL_ID | NUMBER | N | The person who caused the data_status_cd to be set or change. |
| DISPLAY | VC2(100) | Y | Episode name. |
| END_EFFECTIVE_DT_TM | DATE | Y | The date/time after which the row is no longer valid as active current data. This may be valued with the date that the row became inactive. |
| EPISODE_BREACH_DT_TM | DATE | Y | Contains the breach date and time for the episode. The breach date is the date that the episode is supposed to be completed by. If it continues past the breach_dt_tm then the episode is considered breached. |
| EPISODE_CLOSE_REASON_CD | NUMBER | N | The reason for closing an episode. |
| EPISODE_ID | NUMBER | N | This is the value of the unique primary identifier of the episode table. It is an internal system assigned number. |
| EPISODE_PAUSE_DAYS_CNT | NUMBER | N | Count of the number of pause days used to calculate the episode_breach_dt_tm or can be used to determine how many days were not paused between the episode start date time and the episode stop date time. |
| EPISODE_START_DT_TM | DATE | Y | The Start Date and Time of the Episode. |
| EPISODE_STATUS_CD | NUMBER | N | The Current Status of the Episode. |
| EPISODE_STOP_DT_TM | DATE | Y | The Stop Date and Time of the Episode. |
| EPISODE_TYPE_CD | NUMBER | N | Episode type code identifies the kind of episode (I.e., person, research, epidemic, etc.). |
| PERSON_ID | NUMBER | N | This is the value of the unique primary identifier of the person table. It is an internal system assigned number. |
| REFER_FACILITY_CD | NUMBER | N | The Location of the Referring Facility. |
| SERVICE_CATEGORY_CD | NUMBER | N | Codified field which identifies the current category of service the patient is receiving for this episode. |
| UPDT_APPLCTX | NUMBER | N | The application context number from the record info block. The UPDT family of columns are typically used for housekeeping and external system process and should never be depended on for solution specific logic. |
| UPDT_CNT | NUMBER | N | Set to 0 on insert. Incremented by 1 on update. Used to recognize update conflict where data in a row updated by one application is at risk of being lost by a second application attempting to update the row. The UPDT family of columns are typically used for housekeeping and external system process and should never be depended on for solution specific logic. |
| UPDT_DT_TM | DATE | N | The date and time the row was last inserted or updated. The UPDT family of columns are typically used for housekeeping and external system process and should never be depended on for solution specific logic. |
| UPDT_ID | NUMBER | N | The person_id of the person from the personnel table (prsnl) that caused the last insert or update of the row in the table. The UPDT family of columns are typically used for housekeeping and external system process and should never be depended on for solution specific logic. |
| UPDT_TASK | NUMBER | N | The registered (assigned) task number for the process that inserted or updated the row. The UPDT family of columns are typically used for housekeeping and external system process and should never be depended on for solution specific logic. |
Relationship Detail - EPISODE
| Child Column in EPISODE(FK) | Parent Table Name | Parent Column Name | |
|---|---|---|---|
| Parents: | PERSON_ID | PERSON | PERSON_ID |
| Parent Column in EPISODE (PK) | Child Table Name | Child Column Name | |
|---|---|---|---|
| Children: | EPISODE_ID | EPISODE_ACTIVITY | EPISODE_ID |
| EPISODE_PRSNL_RELTN | EPISODE_ID | ||
| EPISODE_PRSNL_RELTN_HIST | EPISODE_ID | ||
| MEDIA_MASTER | EPISODE_ID | ||
| PT_PROT_REG | EPISODE_ID |
EPISODE_ACTIVITY
| Column Section | Relationship Section | Top of Page |
Table-level Detail
| Description: | Episode Activity |
| Definition: | Contains Activities Performed during an Episode. |
| Table Type: | ACTIVITY |
Column Detail - EPISODE_ACTIVITY
| Column Name | Type | Null? | Definition |
|---|---|---|---|
| ACTIVE_IND | NUMBER | N | The table row is active or inactive. A row is generally active unless it is in an inactive state such as logically deleted, combined away, pending purge, etc. |
| ACTIVE_STATUS_CD | NUMBER | N | Indicates the status of the row itself (not the data in the row) such as active, inactive, combined away, pending purge, etc. |
| ACTIVE_STATUS_DT_TM | DATE | N | The date and time that the active_status_cd was set. |
| ACTIVE_STATUS_PRSNL_ID | NUMBER | N | The person who caused the active_status_cd to be set or change. |
| ACTIVITY_CD | NUMBER | N | The activity that was performed. |
| ACTIVITY_DT_TM | DATE | N | The date and time the activity was performed. |
| ACTIVITY_TYPE_CD | NUMBER | N | The Type of Activity that was performed. |
| CREATED_BY_CE_EVENT_ID | NUMBER | N | The ID of the clinical event that generated the activity row to be written if the activity was generated by a clinical event. |
| CREATED_BY_ENCNTR_ID | NUMBER | N | The ID of the encounter that generated the activity row to be written if the activity was generated by an encounter. |
| CREATED_BY_SCHEDULE_ID | NUMBER | N | The ID of the schedule that generated the activity row to be written if the activity was generated by a schedule. |
| EPISODE_ACTIVITY_ID | NUMBER | N | The unique primary key of this table. It is an internally generated number. |
| EPISODE_ID | NUMBER | N | The ID of the episode associated to the activity. |
| EPISODE_PAUSE_DAYS_CNT | NUMBER | N | Number of pause days counter for current activity. |
| EPISODE_STATUS_CD | NUMBER | N | The Episode Status when the Activity was performed |
| INTENDED_EPISODE_STATUS_CD | NUMBER | N | The status that was intended to be set on the episode when performing the episode activity. |
| UPDT_APPLCTX | NUMBER | N | The application context number from the record info block. The UPDT family of columns are typically used for housekeeping and external system process and should never be depended on for solution specific logic. |
| UPDT_CNT | NUMBER | N | Set to 0 on insert. Incremented by 1 on update. Used to recognize update conflict where data in a row updated by one application is at risk of being lost by a second application attempting to update the row. The UPDT family of columns are typically used for housekeeping and external system process and should never be depended on for solution specific logic. |
| UPDT_DT_TM | DATE | N | The date and time the row was last inserted or updated. The UPDT family of columns are typically used for housekeeping and external system process and should never be depended on for solution specific logic. |
| UPDT_ID | NUMBER | N | The person_id of the person from the personnel table (prsnl) that caused the last insert or update of the row in the table. The UPDT family of columns are typically used for housekeeping and external system process and should never be depended on for solution specific logic. |
| UPDT_TASK | NUMBER | N | The registered (assigned) task number for the process that inserted or updated the row. The UPDT family of columns are typically used for housekeeping and external system process and should never be depended on for solution specific logic. |
Relationship Detail - EPISODE_ACTIVITY
| Child Column in EPISODE_ACTIVITY(FK) | Parent Table Name | Parent Column Name | |
|---|---|---|---|
| Parents: | CREATED_BY_ENCNTR_ID | ENCOUNTER | ENCNTR_ID |
| EPISODE_ID | EPISODE | EPISODE_ID | |
| CREATED_BY_SCHEDULE_ID | SCH_SCHEDULE | SCHEDULE_ID |
| Parent Column in EPISODE_ACTIVITY (PK) | Child Table Name | Child Column Name | |
|---|---|---|---|
| Children: | EPISODE_ACTIVITY_ID | EPISODE_ACTIVITY_HIST | EPISODE_ACTIVITY_ID |
EPISODE_ACTIVITY_HIST
| Column Section | Relationship Section | Top of Page |
Table-level Detail
| Description: | Episode Activity History |
| Definition: | Contains History of Activities Performed during an Episode. |
| Table Type: | ACTIVITY |
Column Detail - EPISODE_ACTIVITY_HIST
| Column Name | Type | Null? | Definition |
|---|---|---|---|
| ACTIVE_IND | NUMBER | N | The table row is active or inactive. A row is generally active unless it is in an inactive state such as logically deleted, combined away, pending purge, etc. |
| ACTIVE_STATUS_CD | NUMBER | N | Indicates the status of the row itself (not the data in the row) such as active, inactive, combined away, pending purge, etc. |
| ACTIVE_STATUS_DT_TM | DATE | N | The date and time that the active_status_cd was set. |
| ACTIVE_STATUS_PRSNL_ID | NUMBER | N | The person who caused the active_status_cd to be set or change. |
| ACTIVITY_CD | NUMBER | N | The activity that was performed. |
| ACTIVITY_DT_TM | DATE | N | The date and time the activity was performed. |
| ACTIVITY_TYPE_CD | NUMBER | N | The Type of Activity that was performed. |
| CREATED_BY_CE_EVENT_ID | NUMBER | N | The ID of the clinical event that generated the activity row to be written if the activity was generated by a clinical event. |
| CREATED_BY_ENCNTR_ID | NUMBER | N | The ID of the encounter that generated the activity row to be written if the activity was generated by an encounter. |
| CREATED_BY_SCHEDULE_ID | NUMBER | N | The ID of the schedule that generated the activity row to be written if the activity was generated by a schedule. |
| CREATE_DT_TM | DATE | N | The date and time that the history row was created. |
| EPISODE_ACTIVITY_HIST_ID | NUMBER | N | This is the value of the unique primary identifier of the episode activity hist table. It is an internal system assigned number. |
| EPISODE_ACTIVITY_ID | NUMBER | N | The Episode Activity Row that the history row relates to. |
| EPISODE_ID | NUMBER | N | The Episode that the activity is written for. |
| EPISODE_PAUSE_DAYS_CNT | NUMBER | N | Number of pause days counter for current activity. |
| EPISODE_STATUS_CD | NUMBER | N | The Episode Status when the Activity was performed. |
| UPDT_APPLCTX | NUMBER | N | The application context number from the record info block. |
| UPDT_CNT | NUMBER | N | Set to 0 on insert. Incremented by 1 on update. Used to recognize update conflict where data in a row updated by one application is at risk of being lost by a second application attempting to update the row. |
| UPDT_DT_TM | DATE | N | The date and time the row was last inserted or updated. |
| UPDT_ID | NUMBER | N | The person_id of the person from the personnel table (prsnl) that caused the last insert or update of the row in the table. |
| UPDT_TASK | NUMBER | N | The registered (assigned) task number for the process that inserted or updated the row. |
Relationship Detail - EPISODE_ACTIVITY_HIST
| Child Column in EPISODE_ACTIVITY_HIST(FK) | Parent Table Name | Parent Column Name | |
|---|---|---|---|
| Parents: | CREATED_BY_ENCNTR_ID | ENCOUNTER | ENCNTR_ID |
| EPISODE_ACTIVITY_ID | EPISODE_ACTIVITY | EPISODE_ACTIVITY_ID |
EPISODE_ENCNTR_RELTN
| Column Section | Relationship Section | Top of Page |
Table-level Detail
| Description: | Episode Encounter Relationship |
| Definition: | The episode-encounter relation table contains pointers to encounters in the encounter table that are related to the episode. |
| Table Type: | ACTIVITY |
Column Detail - EPISODE_ENCNTR_RELTN
| Column Name | Type | Null? | Definition |
|---|---|---|---|
| ACTIVE_IND | NUMBER | Y | The table row is active or inactive. A row is generally active unless it is in an inactive state such as logically deleted, combined away, pending purge, etc. |
| ACTIVE_STATUS_CD | NUMBER | N | Indicates the status of the row itself (not the data in the row) such as active, inactive, combined away, pending purge, etc. |
| ACTIVE_STATUS_DT_TM | DATE | Y | The date and time that the active_status_cd was set. |
| ACTIVE_STATUS_PRSNL_ID | NUMBER | N | The person who caused the active_status_cd to be set or change. |
| BEG_EFFECTIVE_DT_TM | DATE | Y | The date and time for which this table row becomes effective. Normally, this will be the date and time the row is added, but could be a past or future date and time. |
| CONTRIBUTOR_SYSTEM_CD | NUMBER | N | Contributor system identifies the source feed of data from which a row was populated. This is mainly used to determine how to update a set of data that may have originated from more than one source feed. |
| CREATE_DT_TM | DATE | Y | Date and time the relationship between the episode and the encounter was created. |
| CREATE_PRSNL_ID | NUMBER | Y | The id of the person who created the request. |
| ENCNTR_ID | NUMBER | N | This is the value of the unique primary identifier of the encounter table. It is an internal system assigned number. |
| END_EFFECTIVE_DT_TM | DATE | Y | The date/time after which the row is no longer valid as active current data. This may be valued with the date that the row became inactive. |
| EPISODE_ENCNTR_RELTN_ID | NUMBER | N | This is the value of the unique primary identifier of the episode encounter relationship table. It is an internal system assigned number. |
| EPISODE_ID | NUMBER | N | This is the value of the unique primary identifier of the episode table. It is an internal system assigned number. |
| UPDT_APPLCTX | NUMBER | N | The application context number from the record info block. |
| UPDT_CNT | NUMBER | N | Set to 0 on insert. Incremented by 1 on update. Used to recognize update conflict where data in a row updated by one application is at risk of being lost by a second application attempting to update the row. |
| UPDT_DT_TM | DATE | N | The date and time the row was last inserted or updated. |
| UPDT_ID | NUMBER | N | The person_id of the person from the personnel table (prsnl) that caused the last insert or update of the row in the table. |
| UPDT_TASK | NUMBER | N | The registered (assigned) task number for the process that inserted or updated the row. |
Relationship Detail - EPISODE_ENCNTR_RELTN
| Child Column in EPISODE_ENCNTR_RELTN(FK) | Parent Table Name | Parent Column Name | |
|---|---|---|---|
| Parents: | ENCNTR_ID | ENCOUNTER | ENCNTR_ID |
EPISODE_PRSNL_RELTN
| Column Section | Relationship Section | Top of Page |
Table-level Detail
| Description: | Episode Personnel Relationship |
| Definition: | The episode-personnel relationship table contains pointers to related personnel in the personnel table. The kind of relationship (i.e., attending clinician, etc.) defines how the episode and personnel are related |
| Table Type: | ACTIVITY |
Column Detail - EPISODE_PRSNL_RELTN
| Column Name | Type | Null? | Definition |
|---|---|---|---|
| ACTIVE_IND | NUMBER | Y | The table row is active or inactive. A row is generally active unless it is in an inactive state such as logically deleted, combined away, pending purge, etc. |
| ACTIVE_STATUS_CD | NUMBER | N | Indicates the status of the row itself (not the data in the row) such as active, inactive, combined away, pending purge, etc. |
| ACTIVE_STATUS_DT_TM | DATE | Y | The date and time that the active_status_cd was set. |
| ACTIVE_STATUS_PRSNL_ID | NUMBER | N | The person who caused the active_status_cd to be set or change. |
| BEG_EFFECTIVE_DT_TM | DATE | Y | The date and time for which this table row becomes effective. Normally, this will be the date and time the row is added, but could be a past or future date and time. |
| END_EFFECTIVE_DT_TM | DATE | Y | The date/time after which the row is no longer valid as active current data. This may be valued with the date that the row became inactive. |
| EPISODE_ID | NUMBER | N | This is the value of the unique primary identifier of the episode table. it is an internal system assigned number. It associates an episode to a personnel. |
| EPISODE_PRSNL_RELTN_ID | NUMBER | N | This is the value of the unique primary identifier of the episode-personnel relationship table. it is an internally assigned number and generally not revealed to the user. |
| EPISODE_PRSNL_R_CD | NUMBER | N | Identifies the type of relationship between the personnel and episode.Code Set: 333 |
| PRSNL_PERSON_ID | NUMBER | N | This is the value of the unique primary identifier of the personnel table. this is a 'role' name for the reference to person_id in the personnel table and used to differentiate between other references to person_id in this table. |
| UPDT_APPLCTX | NUMBER | N | The application context number from the record info block. |
| UPDT_CNT | NUMBER | N | Set to 0 on insert. Incremented by 1 on update. Used to recognize update conflict where data in a row updated by one application is at risk of being lost by a second application attempting to update the row. |
| UPDT_DT_TM | DATE | N | The date and time the row was last inserted or updated. |
| UPDT_ID | NUMBER | N | The person_id of the person from the personnel table (prsnl) that caused the last insert or update of the row in the table. |
| UPDT_TASK | NUMBER | N | The registered (assigned) task number for the process that inserted or updated the row. |
Relationship Detail - EPISODE_PRSNL_RELTN
| Child Column in EPISODE_PRSNL_RELTN(FK) | Parent Table Name | Parent Column Name | |
|---|---|---|---|
| Parents: | EPISODE_ID | EPISODE | EPISODE_ID |
| PRSNL_PERSON_ID | PRSNL | PERSON_ID |
| Parent Column in EPISODE_PRSNL_RELTN (PK) | Child Table Name | Child Column Name | |
|---|---|---|---|
| Children: | EPISODE_PRSNL_RELTN_ID | EPISODE_PRSNL_RELTN_HIST | EPISODE_PRSNL_RELTN_ID |