← 返回目錄

資料庫明細:core(個案與病房床位)|病房床位與 HIS 同步

個案主檔、病房床位樹、住退院、床位異動(雙軌)、主責人員、HIS 同步

資料庫明細:core(個案與病房床位)|病房床位與 HIS 同步 個案主檔、病房床位樹、住退院、床位異動(雙軌)、主責人員、HIS 同步 病房床位樹 床位異動 其他表 HIS 同步 ward · 病房・5 筆 · 實體 · 病房床位樹 ward PK id uuid|主鍵 UK code text|病房代碼 name text|病房名稱 kind text|病房類型 sort_order integer|排序 is_active boolean|啟用 nursing_unit · 護理單位・7 筆 · 實體 · 病房床位樹 nursing_unit PK id uuid|主鍵 FK ward_id uuid|所屬病房 UK code text|護理單位代碼 name text|護理單位名稱 is_acute boolean|急性單位 declared_capacity integer?|申報床數 sort_order integer|排序 is_active boolean|啟用 room · 病室・61 筆 · 實體 · 病房床位樹 room PK id uuid|主鍵 FK nursing_unit_id uuid|護理單位 UK code text|房號 is_active boolean|啟用 bed · 病床・344 筆 · 實體 · 病房床位樹 bed PK id uuid|主鍵 FK room_id uuid|病室 UK code text|床號 seq integer?|房內床序 bed_type text?|床位類型 declarable boolean|可健保申報 legacy_codes text[]|舊系統床號寫法 is_active boolean|啟用 bed_movement · 床位異動・2,206 筆 · 實體 · 床位異動 bed_movement PK id uuid|主鍵 FK case_id uuid|個案 FK stay_id uuid?|住院期 track core.bed_track|床位軌別(實際/申報) FK bed_id uuid?|病床 occupied_from date|入住日 occupied_to date?|遷出日 reason text?|異動原因 checklist text[]|轉床檢核項目 FK moved_by uuid?|異動經手人 note text?|備註 created_at timestamptz|建立時間 updated_at timestamptz|更新時間 bed_transfer · 床位異動事件・2,388 筆 · 實體 · 床位異動 bed_transfer PK id uuid|主鍵 FK case_id uuid|個案 FK stay_id uuid?|住院期 track core.bed_track|軌別(實際/申報) kind text|類別 FK from_bed_id uuid?|原病床 FK to_bed_id uuid?|新病床 from_bed_raw text?|原床號(原文) to_bed_raw text?|新床號(原文) transferred_on date|異動日期 transferred_at timestamptz|異動時間 reason text?|原因 checklist text[]|轉床待辦勾選 FK movement_id uuid?|對應占用區間 source text|來源 UK legacy_id text?|舊系統代碼 FK moved_by uuid?|執行者 created_at timestamptz|建立時間 updated_at timestamptz|更新時間 core.stay · 住院期(完整欄位見 04b) · 實體 · 其他表 core.stay PK id uuid|主鍵 core.cases · 個案主檔(完整欄位見 04b) · 實體 · 其他表 core.cases PK id uuid|主鍵 directory.staff · 員工(完整欄位見 04a) · 實體 · 其他表 directory.staff PK id uuid|主鍵 his_sync_run · HIS 同步批次・0 筆 · 實體 · HIS 同步 his_sync_run PK id uuid|主鍵 source text|來源 files text[]|來源檔案 inpatient_rows integer|在院名單筆數 bed_rows integer|床號筆數 new_items integer|新增差異數 pending_items integer|待處理差異數 ok boolean?|成功 message text?|訊息 FK triggered_by uuid?|觸發者 started_at timestamptz|開始時間 finished_at timestamptz?|結束時間 his_sync_item · HIS 同步差異・0 筆 · 實體 · HIS 同步 his_sync_item PK id uuid|主鍵 fingerprint text|差異指紋 kind text|差異類別 FK case_id uuid?|個案 mrn text?|病歷號碼 name text?|姓名 bed_code text?|床號 his_value text?|HIS 值 our_value text?|本系統值 detail jsonb|明細 status text|狀態 FK first_run_id uuid|首次發現批次 FK last_run_id uuid|最近發現批次 FK resolved_by uuid?|處理者 resolved_at timestamptz?|處理時間 resolution_note text?|處理說明 created_at timestamptz|建立時間 updated_at timestamptz|更新時間 ward_id nursing_unit_id room_id case_id stay_id bed_id case_id stay_id from_bed_id to_bed_id movement_id case_id first_run_id last_run_id 圖例 PK 主鍵 FK 外來鍵 UK 唯一鍵 一 多 選填