Table Detail Report
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 | 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. |
| 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. 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 | NUMBER | N | The primary key of the episode_prsnl_reltn_history table. It is an internally generated number. |
| EPISODE_PRSNL_RELTN_ID | NUMBER | 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 | NUMBER | 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 | 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. This represents the value stored on the corresponding episode_prsnl_reltn_id at the time this history row was created |
| 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_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 | NUMBER | N | A number indicating the length of commitment period. |
| COMMITMENT_PERIOD_UNIT_CD | NUMBER | N | Identifies the unit qualifier (days, hours, etc.) for the commitment period. |
| COMMITMENT_TYPE_CD | NUMBER | N | A code indicating the type of commitment. |
| COURT_ORDER_NAME | VC2(100) | N | A code indicating the commitment order name. |
| LA_END_DT_TM | DATE | N | The end date of this legal court order. |
| LA_START_DT_TM | DATE | N | The start date of this legal court order. |
| LEGAL_AUTHORITY_ID | NUMBER | N | Unique generated number that identifies a single row on the LEGAL_AUTHORITY table. |
| LEGAL_REFERENCE_CD | NUMBER | N | A code indicating the reference to the legal code permitting commitment. |
| LOGICAL_DOMAIN_ID | NUMBER | 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 | NUMBER | N | A code indicating the Social Security inmate code for the commitment. |
| 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. |
| WEEK_DAYS_ONLY_IND | NUMBER | 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 | 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. |
| BEG_EFFECTIVE_DT_TM | DATE | 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 | VC2(100) | Y | The free text description of the case. |
| CASE_TYPE_CD | NUMBER | N | Case type code identifies the kind of patient case (i.e., therapy, auto accident, worker's comp. etc.). |
| COMMENT_ID | NUMBER | N | Uniquely identifies the entry in long_text with related textual patient case comments. |
| END_EFFECTIVE_DT_TM | DATE | 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 | NUMBER | N | Uniquely identifies a patient's medical problem within a specific period of time across a continuum of care. |
| PERSON_ID | NUMBER | N | Uniquely identifies the person related to this case. |
| 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 - 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 |
PATIENT_CASE_ACCIDENT
| Column Section | Relationship Section | Top of Page |
Table-level Detail
| Description: | Patient Case Accident |
| Definition: | Stores information about a patient's accident case. |
| Table Type: | ACTIVITY |
Column Detail - PATIENT_CASE_ACCIDENT
| Column Name | Type | Null? | Definition |
|---|---|---|---|
| ACCIDENT_CD | NUMBER | N | Identifies the type of accident (i.e., auto, work related, etc.). |
| ACCIDENT_COUNTRY_CD | NUMBER | N | The country where the accident occurred. |
| ACCIDENT_DT_TM | DATE | Y | The date and time the accident occurred. |
| ACCIDENT_LOCTN_TXT | VC2(100) | Y | The text description of the location where the accident occurred. |
| ACCIDENT_STATE_CD | NUMBER | N | The state where the accident occurred. |
| CLAIM_NBR_TXT | VC2(100) | Y | The claim number associated with the workmen's comp or other type of claim. |
| DISABILITY_BEG_DT_TM | DATE | Y | The date whn an impairment to the person's ability to function as a result of the accident began in the judgement of the provider. |
| DISABILITY_END_DT_TM | DATE | Y | The date when an impairment to the person's ability to function as a result of the accident ended in the judgement of the provider. |
| LAST_WORKED_DT_TM | DATE | Y | The date the patient last worked as a result of the disability. |
| PATIENT_CASE_ACCIDENT_ID | NUMBER | N | Uniquely identifies information about a patient's accident case. |
| PATIENT_CASE_ID | NUMBER | N | Uniquely identifies the related patient case. |
| RETURNED_TO_WORK_DT_TM | DATE | Y | The date the patient is authorized by the physician to return to work. |
| 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 - PATIENT_CASE_ACCIDENT
| Child Column in PATIENT_CASE_ACCIDENT(FK) | Parent Table Name | Parent Column Name | |
|---|---|---|---|
| Parents: | PATIENT_CASE_ID | PATIENT_CASE | PATIENT_CASE_ID |
PATIENT_CASE_ENCNTR_R
| Column Section | Relationship Section | Top of Page |
Table-level Detail
| Description: | Patient Case Encounter Relationship |
| Definition: | This table links encounters that are related to the patient case. |
| Table Type: | ACTIVITY |
Column Detail - PATIENT_CASE_ENCNTR_R
| 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. |
| ENCNTR_ID | NUMBER | N | Uniquely identifies the related Encounter. |
| PATIENT_CASE_ENCNTR_R_ID | NUMBER | N | Uniquely identifies a relationship between and encounter and a patient case. |
| PATIENT_CASE_ID | NUMBER | N | Uniquely identifies the related patient case. |
| 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 - PATIENT_CASE_ENCNTR_R
| Child Column in PATIENT_CASE_ENCNTR_R(FK) | Parent Table Name | Parent Column Name | |
|---|---|---|---|
| Parents: | ENCNTR_ID | ENCOUNTER | ENCNTR_ID |
| PATIENT_CASE_ID | PATIENT_CASE | PATIENT_CASE_ID |