← 返回目錄

資料庫明細:billing(帳務)|收費設定與批價

收費設定、收費異動、每月設定檔與批價、繳費退費、零用金、合作社

資料庫明細:billing(帳務)|收費設定與批價 收費設定、收費異動、每月設定檔與批價、繳費退費、零用金、合作社 每月設定檔 批價單 收費設定 其他 schema monthly_profile · 每月住民設定檔・1,861 筆 · 實體 · 每月設定檔 monthly_profile PK id uuid|主鍵 FK case_id uuid|個案 period_from date|設定期間起 period_to date?|設定期間迄 direction text|收/退 meal_kind text?|餐費類別 allergy text?|過敏 meal_menu jsonb|餐別 meal_prices jsonb|餐價 meal_total integer|伙食費合計 assist_total integer|協助費合計 misc_total integer|生活雜支費合計 grand_total integer|費用總計 note text?|備註 UK careone_id text?|CareOne 代碼 created_at timestamptz|建立時間 FK created_by uuid?|建立者 updated_at timestamptz|更新時間 FK updated_by uuid?|更新者 monthly_profile_item · 設定檔項目・2,648 筆 · 實體 · 每月設定檔 monthly_profile_item PK id uuid|主鍵 FK monthly_profile_id uuid|每月設定檔 seq integer|序號 item_name text|項目名稱 detail_name text?|明細名稱 category text|類別 unit_price integer?|單價 amount integer|金額 period_close · 帳期結帳・0 筆 · 實體 · 每月設定檔 period_close PK close_month date|結帳月份 is_enabled boolean|啟用 excluded_dates date[]|排除日期 note text?|備註 created_at timestamptz|建立時間 FK created_by uuid?|建立者 updated_at timestamptz|更新時間 monthly_bill · 每月批價單・16,529 筆 · 實體 · 批價單 monthly_bill PK id uuid|主鍵 FK case_id uuid|個案 bill_month date|批價月份 scheme text|計費方案 strategy text?|計算方式 direction text|收/退 computed_total integer|系統計算金額 manual_total integer|人工金額 pocket_money integer|零用金 final_amount integer|應繳金額 meal_total integer|伙食費合計 misc_total integer|生活雜支費合計 assist_total integer|協助費合計 deferred_meal_refund integer|遞延退餐 prev_meal_refund integer|上月退餐 billable_days integer?|計費天數 admitted_on date?|入院日 discharged_on date?|出院日 discharge_override boolean|出院日人工修正 FK fee_profile_id uuid?|收費設定 FK monthly_profile_id uuid?|每月住民設定檔 is_excluded boolean|排除當月應收 is_auto boolean|自動產生 needs_compute boolean|待重算 paid_meal integer|已繳伙食費 paid_misc integer|已繳生活雜支費 paid_assist integer|已繳協助費 paid_amount integer|已繳金額 payment_status text|繳費狀態 note text?|備註 FK finalized_by uuid?|定案者 finalized_at timestamptz?|定案時間 UK legacy_id uuid?|舊系統代碼 UK careone_id text?|CareOne 代碼 created_at timestamptz|建立時間 FK created_by uuid?|建立者 updated_at timestamptz|更新時間 FK updated_by uuid?|更新者 seq integer|序號 monthly_bill_item · 批價明細・25,032 筆 · 實體 · 批價單 monthly_bill_item PK id uuid|主鍵 FK bill_id uuid|批價單 seq integer|序號 kind text|類別 label text|顯示名稱 detail_name text?|明細名稱 category text?|類別 daily_rate integer?|日費率 monthly_cap integer?|月上限 active_days integer?|計費天數 accumulated integer?|累計 amount integer|金額 capped boolean|已達上限 date_range text?|日期區間 period_from date?|期間起 period_to date?|期間迄 unit text?|單位 unit_price integer?|單價 note text?|備註 fee_profile · 個案收費設定・458 筆 · 實體 · 收費設定 fee_profile PK id uuid|主鍵 FK case_id uuid|個案 effective_month date|生效月份 is_active boolean|啟用 welfare boolean|福利身分 therapeutic_meal boolean|治療餐 diabetic_meal boolean|糖尿病餐 bathing boolean|協助沐浴 toileting boolean|協助如廁 feeding boolean|協助餵食 wheelchair boolean|輪椅 base_fee integer?|基本費 therapeutic_fee integer?|治療餐費 diabetic_fee integer?|糖尿病餐費 bathing_fee integer?|沐浴費 toileting_fee integer?|如廁費 feeding_fee integer?|餵食費 wheelchair_fee integer?|輪椅費 total_fee integer|合計 diet_type text|飲食型態 meal_processing text|餐食處理 protein_type text|蛋白質 rice_type text|飯類 meal_note text|餐食備註 porridge_topping text|稀飯配料 porridge_addon boolean|稀飯加點 porridge_addon_topping text|加點配料 point_card_no text?|點數卡號 family_card_no text?|家屬卡號 note text?|備註 UK legacy_id uuid?|舊系統代碼 created_at timestamptz|建立時間 FK created_by uuid?|建立者 updated_at timestamptz|更新時間 FK updated_by uuid?|更新者 fee_profile_history · 收費設定歷程・634 筆 · 實體 · 收費設定 fee_profile_history PK id uuid|主鍵 FK fee_profile_id uuid|收費設定 change_type text|異動類型 description text?|說明 old_data jsonb?|異動前 new_data jsonb?|異動後 FK changed_by uuid?|異動者 changed_by_name text?|異動者姓名 changed_at timestamptz|異動時間 UK legacy_id uuid?|舊系統代碼 rate · 費率・11 筆 · 實體 · 收費設定 rate PK code text|代碼 name text|費率名稱 daily_amount integer|日金額 monthly_cap integer?|月上限 category text|類別 sort_order integer|排序 updated_at timestamptz|更新時間 FK updated_by uuid?|更新者 setting · 帳務設定・3 筆 · 實體 · 收費設定 setting PK key text|設定鍵 value text|設定值 note text?|備註 updated_at timestamptz|更新時間 FK updated_by uuid?|更新者 core.cases · 個案主檔(完整欄位見 04b) · 實體 · 其他 schema core.cases PK id uuid|主鍵 directory.staff · 員工(完整欄位見 04a) · 實體 · 其他 schema directory.staff PK id uuid|主鍵 fee_profile_id monthly_profile_id fee_profile_id monthly_profile_id bill_id 圖例 PK 主鍵 FK 外來鍵 UK 唯一鍵 一 多 選填