Table Detail Report

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 DOUBLE 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 DOUBLE 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 DATETIME Y The date and time that the active_status_cd was set.
ACTIVE_STATUS_PRSNL_ID DOUBLE N The person who caused the active_status_cd to be set or change.
BEG_EFFECTIVE_DT_TM DATETIME 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 DOUBLE 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 DATETIME Y Date and time the relationship between the episode and the encounter was created.
CREATE_PRSNL_ID DOUBLE Y The id of the person who created the request.
ENCNTR_ID DOUBLE 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 DATETIME 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 DOUBLE 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 DOUBLE N This is the value of the unique primary identifier of the episode table. It is an internal system assigned number.
UPDT_APPLCTX DOUBLE N The application context number from the record info block.
UPDT_CNT DOUBLE 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 DATETIME N The date and time the row was last inserted or updated.
UPDT_ID DOUBLE 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 DOUBLE 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 DOUBLE 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 DOUBLE 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 DATETIME Y The date and time that the active_status_cd was set.
ACTIVE_STATUS_PRSNL_ID DOUBLE N The person who caused the active_status_cd to be set or change.
BEG_EFFECTIVE_DT_TM DATETIME 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 DATETIME 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 DOUBLE 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 DOUBLE 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 DOUBLE N Identifies the type of relationship between the personnel and episode.Code Set: 333
PRSNL_PERSON_ID DOUBLE 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 DOUBLE N The application context number from the record info block.
UPDT_CNT DOUBLE 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 DATETIME N The date and time the row was last inserted or updated.
UPDT_ID DOUBLE 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 DOUBLE 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


EPISODE_PRSNL_RELTN_HIST



Column Section Relationship Section Top of Page


Table-level Detail

Description: Episode Personnel Relationship History
Definition: Used to store the transactional history for episode/personnel relationships.
Table Type: ACTIVITY





Column Detail - EPISODE_PRSNL_RELTN_HIST


Column Name Type Null? Definition
ACTIVE_IND DOUBLE 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.
BEG_EFFECTIVE_DT_TM DATETIME 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 DATETIME 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 DOUBLE N This is the value of the unique primary identifier of the episode table. it is an internal system assigned number. This represents the value stored on the corresponding episode_prsnl_reltn_id at the time this history row was created.
EPISODE_PRSNL_RELTN_HIST_ID DOUBLE N The primary key of the episode_prsnl_reltn_history table. It is an internally generated number.
EPISODE_PRSNL_RELTN_ID DOUBLE N The primary key of the episode_prsnl_reltn table. Identifies the row in the Episode_Prsnl_Reltn table that the history row is related to.
EPISODE_PRSNL_R_CD DOUBLE N Relationship of the prsnl to the episode. This represents the value stored on the corresponding episode_prsnl_reltn_id at the time this history row was createdCode Set: 333
PRSNL_PERSON_ID DOUBLE 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. This represents the value stored on the corresponding episode_prsnl_reltn_id at the time this history row was created
UPDT_APPLCTX DOUBLE N The application context number from the record info block.
UPDT_CNT DOUBLE 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 DATETIME N The date and time the row was last inserted or updated.
UPDT_ID DOUBLE 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 DOUBLE N The registered (assigned) task number for the process that inserted or updated the row.



Relationship Detail - EPISODE_PRSNL_RELTN_HIST


Child Column in EPISODE_PRSNL_RELTN_HIST(FK) Parent Table Name Parent Column Name
Parents: EPISODE_ID EPISODE EPISODE_ID
EPISODE_PRSNL_RELTN_ID EPISODE_PRSNL_RELTN EPISODE_PRSNL_RELTN_ID
PRSNL_PERSON_ID PRSNL PERSON_ID


LEGAL_AUTHORITY



Column Section Relationship Section Top of Page


Table-level Detail

Description: Legal Authority
Definition: Stores information on behavioral health legal authority build models.
Table Type: REFERENCE





Column Detail - LEGAL_AUTHORITY


Column Name Type Null? Definition
COMMITMENT_PERIOD DOUBLE N A number indicating the length of commitment period.
COMMITMENT_PERIOD_UNIT_CD DOUBLE N Identifies the unit qualifier (days, hours, etc.) for the commitment period.
COMMITMENT_TYPE_CD DOUBLE N A code indicating the type of commitment.
COURT_ORDER_NAME VARCHAR(100) N A code indicating the commitment order name.
LA_END_DT_TM DATETIME N The end date of this legal court order.
LA_START_DT_TM DATETIME N The start date of this legal court order.
LEGAL_AUTHORITY_ID DOUBLE N Unique generated number that identifies a single row on the LEGAL_AUTHORITY table.
LEGAL_REFERENCE_CD DOUBLE N A code indicating the reference to the legal code permitting commitment.
LOGICAL_DOMAIN_ID DOUBLE N The unique identifier for a logical domain. This identifier allows the data to be grouped by logical domain. For example, If you assign clients a logical_domain_id this would allow you to store data for multiple clients on this table.
SSA_INMATE_CD DOUBLE N A code indicating the Social Security inmate code for the commitment.
UPDT_APPLCTX DOUBLE N The application context number from the record info block.
UPDT_CNT DOUBLE 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 DATETIME N The date and time the row was last inserted or updated.
UPDT_ID DOUBLE 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 DOUBLE N The registered (assigned) task number for the process that inserted or updated the row.
WEEK_DAYS_ONLY_IND DOUBLE Y An indicator identifying if the length of commitment period only considers week days.



Relationship Detail - LEGAL_AUTHORITY


Child Column in LEGAL_AUTHORITY(FK) Parent Table Name Parent Column Name
Parents: LOGICAL_DOMAIN_ID LOGICAL_DOMAIN LOGICAL_DOMAIN_ID




Parent Column in LEGAL_AUTHORITY (PK) Child Table Name Child Column Name
Children: LEGAL_AUTHORITY_ID ENCNTR_LEGAL_AUTH_RELTN LEGAL_AUTHORITY_ID
ENCNTR_LEGAL_AUTH_R_HIST LEGAL_AUTHORITY_ID


PATIENT_CASE



Column Section Relationship Section Top of Page


Table-level Detail

Description: Patient Case
Definition: Stores information about a patient's medical problem within a specific period of time across a continuum of care.
Table Type: ACTIVITY





Column Detail - PATIENT_CASE


Column Name Type Null? Definition
ACTIVE_IND DOUBLE 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 DOUBLE 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 DATETIME N The date and time that the active_status_cd was set.
ACTIVE_STATUS_PRSNL_ID DOUBLE N The person who caused the active_status_cd to be set or change.
BEG_EFFECTIVE_DT_TM DATETIME N 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.
CASE_DESC VARCHAR(100) Y The free text description of the case.
CASE_TYPE_CD DOUBLE N Case type code identifies the kind of patient case (i.e., therapy, auto accident, worker's comp. etc.).
COMMENT_ID DOUBLE N Uniquely identifies the entry in long_text with related textual patient case comments.
END_EFFECTIVE_DT_TM DATETIME N 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.
PATIENT_CASE_ID DOUBLE N Uniquely identifies a patient's medical problem within a specific period of time across a continuum of care.
PERSON_ID DOUBLE N Uniquely identifies the person related to this case.
UPDT_APPLCTX DOUBLE 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 DOUBLE 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 DATETIME 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 DOUBLE 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 DOUBLE 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 - PATIENT_CASE


Child Column in PATIENT_CASE(FK) Parent Table Name Parent Column Name
Parents: COMMENT_ID LONG_TEXT LONG_TEXT_ID
PERSON_ID PERSON PERSON_ID




Parent Column in PATIENT_CASE (PK) Child Table Name Child Column Name
Children: PATIENT_CASE_ID PATIENT_CASE_ACCIDENT PATIENT_CASE_ID
PATIENT_CASE_ENCNTR_R PATIENT_CASE_ID
PATIENT_CASE_IN_PMT_AGMT PATIENT_CASE_ID
PATIENT_CASE_OB PATIENT_CASE_ID
PATIENT_CASE_OTHER PATIENT_CASE_ID
PATIENT_CASE_OUT_PMT_AGMT PATIENT_CASE_ID
PATIENT_CASE_THERAPY PATIENT_CASE_ID
SCH_PEND_ENCNTR_DETAIL PATIENT_CASE_ID