← 返回目錄

資料庫明細:legacy(遷移與原始資料保存)

CareOne/舊系統原始列、識別碼對照、遷移批次、舊操作紀錄、HIS 與舊系統歷程封存

資料庫明細:legacy(遷移與原始資料保存) CareOne/舊系統原始列、識別碼對照、遷移批次、舊操作紀錄、HIS 與舊系統歷程封存 遷移對照 其他 schema 原始列與歷程 HIS 封存 舊系統歷程封存 source · 資料來源登錄・5 筆 · 實體 · 遷移對照 source PK code text|來源代碼 name text|來源名稱 fetched_at timestamptz?|擷取時間 note text?|備註 id_map · 識別碼對照・122,296 筆 · 實體 · 遷移對照 id_map PKFK source text|資料來源 PK entity text|實體類型 PK legacy_key text|舊系統鍵值 target_table text|目標資料表 target_id uuid?|新系統識別碼 match_rule text|比對規則 confidence text|比對信心度 detail text?|比對說明 FK resolved_by uuid?|處理人 resolved_at timestamptz?|處理完成時間 migration_run · 遷移批次・906 筆 · 實體 · 遷移對照 migration_run PK id uuid|主鍵 started_at timestamptz|開始時間 finished_at timestamptz?|完成時間 job text|遷移作業 rows_loaded bigint?|寫入列數 rows_rejected bigint?|拒絕列數 note text?|備註 platform.form_record · 表單紀錄(完整欄位見 04g) · 實體 · 其他 schema platform.form_record PK id uuid|主鍵 core.cases · 個案主檔(完整欄位見 04b) · 實體 · 其他 schema core.cases PK id uuid|主鍵 directory.staff · 員工(完整欄位見 04a) · 實體 · 其他 schema directory.staff PK id uuid|主鍵 careone_record_version · CareOne 紀錄歷程・1,038,005 筆 · 實體 · 原始列與歷程 careone_record_version PK id bigint|主鍵 careone_form_id text|CareOne 表單 id legacy_row_id text|CareOne 紀錄 id ver integer|CareOne 版本號(__ver),0=新增時 action text|動作(新增/修改/刪除) operator text?|操作人(CareOne 帳號姓名) occurred_at timestamptz|此版本存檔時間 data jsonb?|此版本存檔後的內容(鍵同 platform.form_record.data、已正規化);刪除版本為 NULL FK form_record_id uuid?|新系統紀錄;NULL=新系統沒有對應紀錄(表單未移轉等),只在此留存 careone_row · CareOne 原始列・5,540 筆 · 實體 · 原始列與歷程 careone_row PK form text|CareOne 表單 PK row_id text|CareOne 資料列 payload jsonb|原始資料內容 national_id text?|身分證字號 imported_at timestamptz|匯入時間 pg_row · 舊系統原始列・71,238 筆 · 實體 · 原始列與歷程 pg_row PK source_table text|來源資料表 PK source_id text|來源識別碼 payload jsonb|原始資料內容 imported_at timestamptz|匯入時間 operation_log · 舊系統操作紀錄・37,056 筆 · 實體 · 原始列與歷程 operation_log PK id uuid|主鍵 source text|來源 occurred_at timestamptz|發生時間 actor_name text?|操作者 module text|模組 action text|動作 target_table text?|對象資料表 target_id uuid?|對象紀錄 FK case_id uuid?|個案 patient_name text?|病人姓名(原文) description text?|說明 details jsonb?|詳細內容 his_daily_info · HIS 每日床號封存・880,961 筆 · 實體 · HIS 封存 his_daily_info PK id uuid|主鍵(沿用舊 id) patient_id uuid?|舊病人 id target_date date|日期 bed_no text?|床號 doctor_name text?|主治醫師 created_at timestamptz?|建立時間 updated_at timestamptz?|更新時間 his_transfer_record · HIS 轉床紀錄封存・16,708 筆 · 實體 · HIS 封存 his_transfer_record PK id uuid|主鍵(沿用舊 id) patient_id uuid|舊病人 id bed_number text?|床號 doctor_code text?|杏翔醫師代碼(DR2…);對人員走 directory.staff.legacy_codes event_date date|異動日期 posting_date date?|入帳日期 status text?|狀態 raw_posting_date text?|入帳日期(原文) created_at timestamptz?|建立時間 his_care_session · 舊團體治療紀錄封存・7 筆 · 實體 · 舊系統歷程封存 his_care_session PK id uuid|主鍵(沿用舊 id) template_code text|範本代碼 template_name text?|範本名稱 category text?|類別 patient_id uuid?|舊病人 id FK case_id uuid?|個案 session_date date|紀錄日期 session_time_start time?|開始時間 session_time_end time?|結束時間 therapist_name text?|治療師 therapist_role text?|治療師職類 classifications text[]?|分類 content_data jsonb|紀錄內容 preset_id uuid?|套用預設 id preset_name text?|套用預設名稱 recorded_by_name text?|紀錄人 recorded_at date?|紀錄日 is_locked boolean|已鎖定 attachments jsonb?|附件 participants jsonb?|參與者(團體治療) FK form_record_id uuid?|已轉入的表單紀錄 created_at timestamptz?|建立時間 updated_at timestamptz?|更新時間 his_template_preset · 舊模板封存・51 筆 · 實體 · 舊系統歷程封存 his_template_preset PK id uuid|主鍵(沿用舊 id) template_code text|範本代碼 template_name text?|範本名稱 name text|預設名稱 description text?|說明 sort_order integer?|排序 preset_content jsonb|預設內容 preset_classifications text[]?|預填分類 is_active boolean?|啟用 FK form_record_id uuid?|已轉入的模板紀錄 created_at timestamptz?|建立時間 updated_at timestamptz?|更新時間 outing_edit_history · 舊外出審核修改歷程・4,281 筆 · 實體 · 舊系統歷程封存 outing_edit_history PK id uuid|主鍵(沿用舊 id) approval_request_id uuid|舊外出申請 id FK form_record_id uuid?|新系統外出/外宿紀錄 FK case_id uuid?|個案 editor_name text|修改人 editor_legacy_id uuid?|修改人舊帳號 id data_before jsonb|修改前內容 data_after jsonb|修改後內容 edit_reason text?|修改原因 edited_at timestamptz?|修改時間 created_at timestamptz?|建立時間 source 圖例 PK 主鍵 FK 外來鍵 一 多