Table Detail Report

ENCNTR_LEAVE_HISTORY



Column Section Relationship Section Top of Page


Table-level Detail

Description: Encounter leave history.
Definition: Stores historical information for an encounter that has been put on leave. As the encntr_leave table is updated, rows are written to this table to track the entire process from a historical perspective from leave to return including any cancels.
Table Type: ACTIVITY





Column Detail - ENCNTR_LEAVE_HISTORY


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 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.
AUTO_DISCH_DT_TM DATE Y Date and time the patient will be auto-discharged if patient is still on leave of absence.
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.
CANCEL_COMMENT VC2(255) Y Textual comment field to describe the reason the leave or return was cancelled.
CANCEL_DT_TM DATE Y Date and time the leave or return was cancelled.
CANCEL_REASON_CD NUMBER N Codified reason for why the leave or return was cancelled.
CANCEL_USER_ID NUMBER N User that cancelled the leave or return from leave.
CHANGE_BIT NUMBER N Identifies which columns have had a change.
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.
ENCNTR_ID NUMBER N Uniquely identifies the related encounter.
ENCNTR_LEAVE_HISTORY_ID NUMBER N This is the value of the unique primary identifier of the encounter leave history table. It is an internal system assigned number.
ENCNTR_LEAVE_ID NUMBER N This is the value of the unique primary identifier of the row on the encounter leave table associated with this history row. It is an internal system assigned number.
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.
END_LEAVE_USER_ID NUMBER N User who documented that the patient's leave of absence has ended.
EST_RETURN_DT_TM DATE Y The date and time that the leave is estimated to be over and returned. This time may or may not reflect the true date and time that the patient returned from leave.
HISTORY_DT_TM DATE N Date and time the history row is written.
HOLD_RMVL_DT_TM DATE Y Date and time the room and bed will be removed if patient is still on leave of absence.
LEAVE_COMMENT VC2(255) Y Free-text comment describing any notes or information relating to the encounter leave.
LEAVE_DISPOSITION_CD NUMBER N Codified leave disposition code that indicates the condition under which the patient left the facility following the leave of absence.
LEAVE_DT_TM DATE Y The date and time the encounter was placed on leave.
LEAVE_IND NUMBER Y Indicator used to reflect the current status of the leave. 0 = not on leave (returned or cancelled) 1 = on leave
LEAVE_LOCATION VC2(100) Y Text column used to store the location the patient/encounter is going while on leave.
LEAVE_REASON_CD NUMBER N Codified reason for why the encounter was placed on leave.
LEAVE_STATUS_CD NUMBER N Codified leave status of the patient's leave of absence. (i.e. on leave, did not return, returned from leave).
LEAVE_TYPE_CD NUMBER N Codified leave type for the encounter that was placed on leave.
LEAVE_USER_ID NUMBER N User who placed the encounter on leave.
PM_HIST_TRACKING_ID NUMBER N This is the value of the unique primary identifier of the pm_hist_tracking table. It is an internal system assigned number.
RETURN_COMMENT VC2(255) Y Textual comment describing notes or information regarding the encounter's return from leave.
RETURN_DT_TM DATE Y Date and time the encounter returned from leave.
RETURN_LOCATION_CD NUMBER N Location, within the Location data model (facility), to which the encounter was returned.
RETURN_REASON_CD NUMBER N Codified reason explaining the reason the encounter returned from leave.
RETURN_USER_ID NUMBER N User who returned the encounter from leave.
TRACKING_BIT NUMBER N Identifies which columns are being tracked for history.
TRANSACTION_DT_TM DATE Y More aptly named activity_dt_tm; holds the current date and time of the system when the row was inserted. This will match the create_dt_tm from the corresponding pm_hist_tracking row.
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 - ENCNTR_LEAVE_HISTORY


Child Column in ENCNTR_LEAVE_HISTORY(FK) Parent Table Name Parent Column Name
Parents: ENCNTR_LEAVE_ID ENCNTR_LEAVE ENCNTR_LEAVE_ID
PM_HIST_TRACKING_ID PM_HIST_TRACKING PM_HIST_TRACKING_ID
END_LEAVE_USER_ID PRSNL PERSON_ID


ENCNTR_LEGALSTAT_CRIM_HIST



Column Section Top of Page


Table-level Detail

Description: Encounter legal status criminal history.
Definition: This table will hold the history of the relationship between legal statuses and criminal codes.
Table Type: ACTIVITY





Column Detail - ENCNTR_LEGALSTAT_CRIM_HIST


Column Name Type Null? Definition
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.
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.
LEGAL_STATUS_CRIMINAL_R_ID NUMBER N The unique identifier for the encntr_legal_stat_crim_r table.
LEGAL_STAT_CRIM_HIST_ID NUMBER N The unique identifier for the encntr_legalstat_crim_hist table.
OCCURRENCES_NBR NUMBER Y The number of occurrences of the offense.
OFFENSE_DT_TM DATE Y The date and time of the offense.
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.


ENCNTR_LEGAL_AUTH_RELTN



Column Section Relationship Section Top of Page


Table-level Detail

Description: Encounter Legal Authority Relationship
Definition: The encounter legal authority relationship table contains pointers to legal authority associated with the encounter. Legal authority refers to the approval issued by the court for treating a patient who is committed to the facility for care. For both forensic (committed a crime) and civil (involuntarily hospitalized) patients, the facility requires the legal authority for treatment.
Table Type: ACTIVITY





Column Detail - ENCNTR_LEGAL_AUTH_RELTN


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.
COMMITMENT_CATEGORY_CD NUMBER N Identifies the category of the patient's commitment to the facility.
COMMITMENT_PERIOD NUMBER N The length of time specified in the court order by which the facility has legal authority to hold the patient.
COMMITMENT_PERIOD_UNIT_CD NUMBER N Identifies the unit qualifier (days, hours, etc.) for the commitment period.
COMMITMENT_REASON_CD NUMBER N Identifies the reason for the patient's commitment to the facility.
COMMITMENT_TYPE_FLIP_IND NUMBER N The information indicating if the commitment type for the patient has changed with respect to the previous legal authority for the encounter.
COUNTY_CD NUMBER N The county code is the code set that value that represents the county which provided the legal authority to treat the patient.
COURT_ORDER_NUMBER VC2(50) Y The identifying number of the court order(s) issued for the patient.
COURT_ORDER_RECEIVE_DT_TM DATE Y The date and time at which the facility received the issued court order.
COURT_ORDER_SIGN_DT_TM DATE Y The date and time at which the issued court order was signed.
ENCNTR_ID NUMBER N This is the value of the unique primary identifier of the encounter table. It is an internal system assigned number.
ENCNTR_LEGAL_AUTH_RELTN_ID NUMBER N Unique generated number that identifies a single row on the ENCNTR_LEGAL_AUTH_RELTN table.
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.
LEGAL_AUTHORITY_ID NUMBER N Identifier from the LEGAL_AUTHORITY table that contains various attributes representing the legal authority.
NEXT_COURT_HEARING_DT_TM DATE Y The date and time of the patient's next court hearing.
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 - ENCNTR_LEGAL_AUTH_RELTN


Child Column in ENCNTR_LEGAL_AUTH_RELTN(FK) Parent Table Name Parent Column Name
Parents: ENCNTR_ID ENCOUNTER ENCNTR_ID
LEGAL_AUTHORITY_ID LEGAL_AUTHORITY LEGAL_AUTHORITY_ID




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


ENCNTR_LEGAL_AUTH_R_HIST



Column Section Relationship Section Top of Page


Table-level Detail

Description: Encounter Legal Authority Relationship History
Definition: Used for tracking history of changes to encounter legal authority relationship.
Table Type: ACTIVITY





Column Detail - ENCNTR_LEGAL_AUTH_R_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.
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.
CHANGE_BIT NUMBER N Identifies which columns have had a change.
COMMITMENT_CATEGORY_CD NUMBER N Identifies the category of the patient's commitment to the facility.
COMMITMENT_PERIOD NUMBER N The length of time specified in the court order by which the facility has legal authority to hold the patient.
COMMITMENT_PERIOD_UNIT_CD NUMBER N Identifies the unit qualifier (days, hours, etc.) for the commitment period.
COMMITMENT_REASON_CD NUMBER N Identifies the reason for the patient's commitment to the facility.
COMMITMENT_TYPE_FLIP_IND NUMBER N The information indicating if the commitment type for the patient has changed with respect to the previous legal authority for the encounter.
COUNTY_CD NUMBER N The county code is the code set that value that represents the county which provided the legal authority to treat the patient.
COURT_ORDER_NUMBER VC2(50) Y The identifying number of the court order(s) issued for the patient.
COURT_ORDER_RECEIVE_DT_TM DATE Y The date and time at which the facility received the issued court order.
COURT_ORDER_SIGN_DT_TM DATE Y The date and time at which the issued court order was signed.
ENCNTR_ID NUMBER N This is the value of the unique primary identifier of the encounter table. It is an internal system assigned number.
ENCNTR_LEGAL_AUTH_RELTN_ID NUMBER N Unique generated number that identifies a single row on the ENCNTR_LEGAL_AUTH_RELTN table.
ENCNTR_LEGAL_AUTH_R_HIST_ID NUMBER N Unique generated number that identifies a single row on the ENCNTR_LEGAL_AUTH_R_HIST table.
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.
LEGAL_AUTHORITY_ID NUMBER N Identifier from the LEGAL_AUTHORITY table that contains various attributes representing the legal authority.
NEXT_COURT_HEARING_DT_TM DATE Y The date and time of the patient's next court hearing.
PM_HIST_TRACKING_ID NUMBER N This is the value of the unique primary identifier of the pm_hist_tracking table. It is an internal system assigned number.
TRACKING_BIT NUMBER N Identifies which columns are being tracked for history.
TRANSACTION_DT_TM DATE N ** OBSOLETE **. Use column updt_dt_tm for any filtering/ordering query. If transaction date time is needed, it should be retrieved from pm_hist_tracking table. Note that its date may be in the past, as in before the update date time.
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 - ENCNTR_LEGAL_AUTH_R_HIST


Child Column in ENCNTR_LEGAL_AUTH_R_HIST(FK) Parent Table Name Parent Column Name
Parents: ENCNTR_LEGAL_AUTH_RELTN_ID ENCNTR_LEGAL_AUTH_RELTN ENCNTR_LEGAL_AUTH_RELTN_ID
ENCNTR_ID ENCOUNTER ENCNTR_ID
LEGAL_AUTHORITY_ID LEGAL_AUTHORITY LEGAL_AUTHORITY_ID
PM_HIST_TRACKING_ID PM_HIST_TRACKING PM_HIST_TRACKING_ID


ENCNTR_LEGAL_REVIEW_R



Column Section Relationship Section Top of Page


Table-level Detail

Description: Encounter Legal Status Review Relationship
Definition: This table will hold the relationship between legal statuses and Review Board history records
Table Type: ACTIVITY





Column Detail - ENCNTR_LEGAL_REVIEW_R


Column Name Type Null? Definition
DECISION_CD NUMBER N Decision reached by the review board, e.g. GUILTY, NOT GUILTY Code Set 29445.
DISPOSITION_RECVD_DT_TM DATE Y The date and time the disposition was received
ENCNTR_LEG_STAT_REV_R_ID NUMBER N The unique identifier for the ENCNTR_LEGAL_STATUS_REV_R table
HEARING_DT_TM DATE Y The date and time of the hearing
LEGAL_RECOMMENDATION_CD NUMBER N The recommended legal action
LEGAL_STATUS_R_ID NUMBER N Inherited Identifier for rows associated to the ENCNTR_LEGAL_STATUS_R table
LOCATION_CD NUMBER N The location of the Hearing
OTHER_RECOMMENDATION_CD NUMBER N Other recommended Legal action
REASON_RECVD_DT_TM DATE Y The Date and Time the reason was received
RECOMMENDATION_CD NUMBER N Recommended action
REVIEW_BOARD_CD NUMBER N The facility defined review board code
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 - ENCNTR_LEGAL_REVIEW_R


Child Column in ENCNTR_LEGAL_REVIEW_R(FK) Parent Table Name Parent Column Name
Parents: LEGAL_STATUS_R_ID ENCNTR_LEGAL_STATUS_R LEGAL_STATUS_R_ID