← 返回目錄

資料庫明細:core(個案與病房床位)|個案與住院

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

資料庫明細:core(個案與病房床位)|個案與住院 個案主檔、病房床位樹、住退院、床位異動(雙軌)、主責人員、HIS 同步 個案資料 個案主檔 其他表 住院期 主責與急性 case_mrn_history · 病歷號碼歷程・1,242 筆 · 實體 · 個案資料 case_mrn_history PK id uuid|主鍵 FK case_id uuid|個案 mrn core.mrn|病歷號碼 valid_from date|生效日 valid_to date?|失效日 source text|資料來源 case_contact · 個案聯絡人・1,558 筆 · 實體 · 個案資料 case_contact PK id uuid|主鍵 FK case_id uuid|個案 kind text|聯絡人類型 name text?|聯絡人姓名 relationship text?|關係 phone text?|聯絡電話 mobile text?|行動電話 note text?|備註 sort_order integer|排序 created_at timestamptz|建立時間 updated_at timestamptz|更新時間 case_diagnosis · 個案診斷・847 筆 · 實體 · 個案資料 case_diagnosis PK id uuid|主鍵 FK case_id uuid|個案 icd10_code text?|ICD-10 代碼 icd10_name text?|診斷名稱 free_text text?|診斷原始描述 is_primary boolean|主診斷 diagnosed_on date?|診斷日期 resolved_on date?|解除日期 FK recorded_by uuid?|記錄人 source_table text?|資料來源 created_at timestamptz|建立時間 case_entitlement · 個案福利身分・1,096 筆 · 實體 · 個案資料 case_entitlement PK id uuid|主鍵 FK case_id uuid|個案 kind text|身分類型 category text?|手冊類別/補助名目 grade text?|障礙等級 diagnosis text?|重大傷病診斷 amount numeric(12,2)?|補助金額 valid_from date?|有效起日 valid_to date?|有效迄日 is_permanent boolean|永久有效 note text?|備註 created_at timestamptz|建立時間 updated_at timestamptz|更新時間 cases · 個案主檔・1,291 筆 · 實體 · 個案主檔 cases PK id uuid|主鍵 national_id core.national_id?|身分證字號 mrn core.mrn?|病歷號碼 name text|姓名 sex text?|性別 birth_date date?|出生日期 first_admitted_on date?|入住日期 closed_on date?|結案日期 vpn_enrolled_on date?|VPN 收案日期 education text?|教育程度 education_other text?|教育程度(其他) education_status text?|就學狀態 marital_status text?|婚姻狀況 marital_status_other text?|婚姻狀況(其他) employment_status text?|就業狀況 employment_status_other text?|就業狀況(其他) admission_route text?|入院途徑 admission_route_other text?|入院途徑(其他) residence_address text?|居住地址 household_address text?|戶籍地址 same_as_residence boolean|戶籍同居住地 household_phone text?|住家電話 mobile_phone text?|行動電話 region text?|基本地區 referral_source text?|轉介來源 referrer text?|轉介人 note text?|備註 identity_categories text[]|身分別 identity_other text?|身分別(其他) primary_medication text?|個案主線藥物 glucose_medication text?|個案降血糖藥物 nhi_bed_type text?|健保床位 extra jsonb|其他欄位(延伸) created_at timestamptz|建立時間 FK created_by uuid?|建立者 updated_at timestamptz|更新時間 FK updated_by uuid?|更新者 voided_at timestamptz?|作廢時間 FK voided_by uuid?|作廢者 void_reason text?|作廢原因 core.bed · 病床(完整欄位見 04c) · 實體 · 其他表 core.bed PK id uuid|主鍵 directory.staff · 員工(完整欄位見 04a) · 實體 · 其他表 directory.staff PK id uuid|主鍵 stay · 住院期・2,265 筆 · 實體 · 住院期 stay PK id uuid|主鍵 FK case_id uuid|個案 seq integer|住院次數 care_kind text|照護類別 admitted_on date|入院日期 discharged_on date?|出院日期 admit_source text?|入院來源 discharge_reason text?|出院原因 discharge_reason_other text?|出院原因(其他) planned_discharge_on date?|預計出院日 discharge_plan text?|出院計畫 followup_on date?|回診日期 followup_period text?|回診間隔 medication_days integer?|出院帶藥天數 needs_bag boolean?|需備出院袋 origin text|資料來源 extra jsonb|其他欄位(延伸) created_at timestamptz|建立時間 updated_at timestamptz|更新時間 stay_event · 住退院事件・4,112 筆 · 實體 · 住院期 stay_event PK id uuid|主鍵 FK case_id uuid|個案 FK stay_id uuid?|住院期 kind core.stay_event_kind|事件類型 effective_on date|生效日期 FK bed_id uuid?|病床 bed_code_raw text?|床號(原始字串) reason text?|事件原因 reason_other text?|事件原因(其他) note text?|備註 source_ref text?|CareOne 原始來源 FK filled_by uuid?|填表人 filled_by_name text?|填表人姓名(原始) filled_on date?|填表日期 created_at timestamptz|建立時間 stay_correction · 住院期更正紀錄・0 筆 · 實體 · 住院期 stay_correction PK id uuid|主鍵 FK case_id uuid|個案 stay_id uuid?|住院期 kind text|更正項目 before_value jsonb?|更正前 after_value jsonb?|更正後 reason text|原因 FK corrected_by uuid?|更正者 created_at timestamptz|建立時間 pre_admission · 預約入院・6 筆 · 實體 · 住院期 pre_admission PK id uuid|主鍵 FK case_id uuid?|個案 applicant_name text|申請人姓名 sex text?|性別 mrn text?|病歷號碼 planned_on date|預約入院日 referral_source text|轉介來源 condition_summary text?|病況摘要 contact_info text?|聯絡資訊 note text?|備註 FK reported_by uuid?|登記人 reported_by_name text?|登記人姓名(原始) status text|預約狀態 FK stay_id uuid?|住院期 created_at timestamptz|建立時間 updated_at timestamptz|更新時間 UK legacy_id text?|舊系統來源 id(ward-bed inpatient.pre_admissions.id);新系統建立者為 NULL case_assignment · 主責人員・4,171 筆 · 實體 · 主責與急性 case_assignment PK id uuid|主鍵 FK case_id uuid|個案 role core.care_role|職類 FK staff_id uuid|主責人員 effective_from date|生效日 effective_to date?|失效日 FK assigned_by uuid?|指派人 note text?|備註 created_at timestamptz|建立時間 acute_episode · 掛急期間・401 筆 · 實體 · 主責與急性 acute_episode PK id uuid|主鍵 FK case_id uuid|個案 FK stay_id uuid?|住院期 started_on date|掛急起日 ended_on date?|掛急迄日 days integer?|掛急天數 note text?|備註 acute_transfer_candidate · 轉急性候選名單・0 筆 · 實體 · 主責與急性 acute_transfer_candidate PK id uuid|主鍵 sex text|性別 label text|名單顯示 FK case_id uuid?|個案 sort_order integer|排序 FK created_by uuid?|建立者 created_at timestamptz|建立時間 case_id case_id case_id case_id case_id case_id case_id stay_id bed_id case_id stay_id case_id stay_id case_id case_id 圖例 PK 主鍵 FK 外來鍵 UK 唯一鍵 一 多 選填