照護者喘息應用程式後端範本
高效安排和管理家庭照護者的臨時照護救濟
在 Back4app 上的一個可生產的照護者喘息後端,具有安全的日程安排、臨時照護管理和照護者通訊。包括 ER 圖、資料字典、JSON 架構、API 遊樂場,以及一個快速啟動的AI 代理提示。
主要收穫
發佈一個面向照顧者的後端,具備安全的訪問控制、護理過渡、通訊日誌和審計記錄,讓您的團隊專注於開發用戶友好的應用程序。
- 以照顧者為中心的數據模型 — 將照顧者的個人檔案、護理排程、任務和通訊分開管理,但保持聯繫以便清晰的監督和授權。
- 安全通信 — 促進照顧者與家庭之間的安全線索消息,並具備清晰的已讀回執和留存控制。
- 綜合排程 — 儲存護理排程,精確管理日期和時間,以確保照顧者和家庭隨時獲得最新資訊。
- 審計痕跡 — 通過審計日誌捕獲所有變更和通信以符合法規和審查。
- 快速開發和部署 — 利用預建的方案和AI代理提示來簡化您的項目時間表。
照顧者暫息應用後端模板是什麼?
Back4app 是一種後端即服務 (BaaS),實現快速交付。照顧者暫息應用後端模板是一個預建的方案,用於照顧者檔案、照顧計劃、分配、安全消息和審計日誌。連接您首選的前端(React,Flutter,Next.js 等)並更快交付。
最佳適用於:
概覽
護理人員緩解應用程序需要高效的數據處理、變更審計和可靠的護理排程,以支持有需要的家庭。
該模板定義了「護理人員檔案」、「護理排程」、「護理任務」、「通信」和「審計日誌」,並採用了基於所有權和角色的規則,以便團隊能夠快速且安全地實現護理人員緩解應用程序。
核心看護者暫息功能
本中心的每個技術卡片都使用相同的護理人員休息後端架構,包括CaregiverProfile、CareSchedule、CareAssignment、Communication和AuditLog。
照護者檔案與驗證
照護者檔案儲存身份、聯絡資訊和偏好設定。
靈活的照護排程
照護排程保留時間 Bloc 小時以進行臨時照護,連結指定的照護者和病患。
照護任務管理
照護任務儲存照護者狀態,記錄排程連結並監控任務。
安全的護理人員通信
通信允許護理人員和家庭之間進行線程消息,確保及時更新。
集中式審計日誌
AuditLog捕獲角色身份、操作類型、實體上下文和有效負載元數據以符合合規性。
為什麼要使用 Back4app 建立您的看護者暫息應用程式後端?
Back4app 處理後端基本功能——安全性、持久性、API 和實時——讓您可以專注於看護者體驗、排程工作流程和有效溝通。
- •安全的數據處理: 內建的身份驗證和 ACL/CLP 模式讓您可以精確控制哪些用戶可以訪問看護時間表和溝通內容。
- •全面的日誌記錄: AuditLog 捕捉誰查看或修改了敏感記錄,以確保合規性和審查能力。
- •消息功能: 線程消息和通知讓看護者的溝通變得順暢和及時。
快速部署安全的看護者暫息後端,並在排程工作流程上進行迭代,而不是後端管理。
核心優勢
一個強調效率、安全和快速交付的護理人員休息後端。
加速護理人員流程
透過重用經過驗證的後端,更快速地進行船舶調度、任務管理和溝通。
穩健的審計機制
確保所有行為可審計並可追溯以符合規範。
精細的權限控制
使用 ACL/CLP 和角色檢查來保護敏感信息。
整合消息功能
具有安全附件的線程消息增強了護理人員與家庭的合作。
符合規範的架構
集中式 AuditLog 支持審查、事件調查和合規報告。
AI 助力的啟動
使用經過精選的 AI 代理提示來開始開發,該提示搭建了結構、ACL 和集成代碼。
準備好構建一個安全的看護者喘息應用程序了嗎?
讓 Back4app AI 代理為您的看護者喘息後端搭建結構,並從一個提示生成看護者資料、護理時間表、任務、通訊和審計日誌。
免費開始 — 每月 50 個 AI 代理提示,無需信用卡
技術堆棧
此看護者喘息後端範本中包含的所有內容。
ER 圖
為照護者暫息後端架構的實體關係模型。
涵蓋照護者檔案、計劃、任務、通訊和審計日誌的架構。
查看圖表來源
erDiagram
CaregiverProfile ||--o{ RespiteCareSession : "provides"
CaregiverProfile ||--o{ CaregiverMessage : "sends/receives"
CaregiverProfile ||--o{ Appointment : "assigned to"
RespiteCareSession ||--o{ Appointment : "is associated with"
_User ||--o{ CaregiverMessage : "interacts with"
CaregiverProfile {
String objectId PK
Pointer user FK
String careRecipientName
Number careRecipientAge
String contactInfo
Boolean isActive
Date createdAt
Date updatedAt
}
RespiteCareSession {
String objectId PK
Pointer caregiver FK
Date sessionStart
Date sessionEnd
String location
String status
Date createdAt
Date updatedAt
}
CaregiverMessage {
String objectId PK
String conversationId
Pointer from FK
Pointer to FK
String body
Boolean isRead
Date sentAt
Date createdAt
Date updatedAt
}
Appointment {
String objectId PK
Pointer caregiver FK
Pointer session FK
String reason
String status
Date createdAt
Date updatedAt
}
AuditLog {
String objectId PK
Pointer actor FK
String entityType
String entityId
String action
String summary
Object metadata
Date createdAt
Date updatedAt
}
整合流程
照護者登入、排程、指派管理及溝通的典型運行流程。
查看圖表來源
sequenceDiagram
participant Caregiver
participant App as Caregiver Respite App
participant RespiteProvider
participant Back4app as Back4app Cloud
Caregiver->>App: Sign in with email or SSO
App->>Back4app: POST /login (credentials/SSO token)
Back4app-->>App: Return Session Token + Caregiver context
Caregiver->>App: Open Dashboard (profile & active sessions)
App->>Back4app: GET /classes/CaregiverProfile?where={"user":Pointer("_User", "u123")}
Back4app-->>App: CaregiverProfile object
App->>Back4app: GET /classes/RespiteCareSession?where={"caregiver":Pointer("CaregiverProfile","c123")}&order=-sessionStart
Back4app-->>App: List of RespiteCareSession (latest first)
Caregiver->>App: View upcoming appointments
App->>Back4app: GET /classes/Appointment?where={"caregiver":Pointer("CaregiverProfile","c123"),"status":"scheduled"}
Back4app-->>App: Appointment object
Caregiver->>App: Send a message to a respite provider
App->>Back4app: POST /classes/CaregiverMessage (conversationId, body, to: Pointer(_User, providerId))
Back4app-->>App: CaregiverMessage objectId
Back4app-->>App: LiveQuery -> new message or session updates
App-->>Caregiver: Real-time notification (new message / session updated)
RespiteProvider->>Back4app: Update RespiteCareSession (finalize)
Back4app-->>App: LiveQuery event -> App fetches updated RespiteCareSession
App-->>Caregiver: Alert: "New session update available"數據字典
照護者喘息架構中每個類別的完整字段級別參考。
| 字段 | 類型 | 描述 | 必填 |
|---|---|---|---|
| objectId | String | Auto-generated unique identifier | 自動 |
| user | Pointer<_User> | Linked Back4app user account | |
| careRecipientName | String | Name of the individual being cared for | |
| careRecipientAge | Number | Age of the individual being cared for | — |
| contactInfo | String | Contact information for the caregiver | — |
| isActive | Boolean | Active profile flag | |
| createdAt | Date | Auto-generated creation timestamp | 自動 |
| updatedAt | Date | Auto-generated last-update timestamp | 自動 |
8 欄位在 CaregiverProfile
安全性和權限
ACL、CLP 和加密策略如何保障照顧者的數據、時間表和通訊。
基於角色的訪問和擁有權
應用 ACL 使照顧者能夠查看自己的時間表和指派的消息;CLP 防止未授權操作。
加密的有效負載和附件
通過簽名的 URL 儲存敏感的區塊(消息附件)並使用存儲級別的加密進行靜態保護。
僅附加的審計追蹤
從伺服器端雲端代碼撰寫審計日誌條目,以確保歷史條目不會被篡改。
架構(JSON)
原始 JSON 架構定義,準備複製到 Back4app 或用作實施參考。
{
"classes": [
{
"className": "CaregiverProfile",
"fields": {
"objectId": {
"type": "String",
"required": false
},
"user": {
"type": "Pointer",
"required": true,
"targetClass": "_User"
},
"careRecipientName": {
"type": "String",
"required": true
},
"careRecipientAge": {
"type": "Number",
"required": false
},
"contactInfo": {
"type": "String",
"required": false
},
"isActive": {
"type": "Boolean",
"required": true
},
"createdAt": {
"type": "Date",
"required": false
},
"updatedAt": {
"type": "Date",
"required": false
}
}
},
{
"className": "RespiteCareSession",
"fields": {
"objectId": {
"type": "String",
"required": false
},
"caregiver": {
"type": "Pointer",
"required": true,
"targetClass": "CaregiverProfile"
},
"sessionStart": {
"type": "Date",
"required": true
},
"sessionEnd": {
"type": "Date",
"required": true
},
"location": {
"type": "String",
"required": false
},
"status": {
"type": "String",
"required": true
},
"createdAt": {
"type": "Date",
"required": false
},
"updatedAt": {
"type": "Date",
"required": false
}
}
},
{
"className": "CaregiverMessage",
"fields": {
"objectId": {
"type": "String",
"required": false
},
"conversationId": {
"type": "String",
"required": true
},
"from": {
"type": "Pointer",
"required": true,
"targetClass": "_User"
},
"to": {
"type": "Pointer",
"required": true,
"targetClass": "_User"
},
"body": {
"type": "String",
"required": true
},
"isRead": {
"type": "Boolean",
"required": true
},
"sentAt": {
"type": "Date",
"required": false
},
"createdAt": {
"type": "Date",
"required": false
},
"updatedAt": {
"type": "Date",
"required": false
}
}
},
{
"className": "Appointment",
"fields": {
"objectId": {
"type": "String",
"required": false
},
"caregiver": {
"type": "Pointer",
"required": true,
"targetClass": "CaregiverProfile"
},
"session": {
"type": "Pointer",
"required": true,
"targetClass": "RespiteCareSession"
},
"reason": {
"type": "String",
"required": false
},
"status": {
"type": "String",
"required": true
},
"createdAt": {
"type": "Date",
"required": false
},
"updatedAt": {
"type": "Date",
"required": false
}
}
},
{
"className": "AuditLog",
"fields": {
"objectId": {
"type": "String",
"required": false
},
"actor": {
"type": "Pointer",
"required": true,
"targetClass": "_User"
},
"entityType": {
"type": "String",
"required": true
},
"entityId": {
"type": "String",
"required": true
},
"action": {
"type": "String",
"required": true
},
"summary": {
"type": "String",
"required": true
},
"metadata": {
"type": "Object",
"required": false
},
"createdAt": {
"type": "Date",
"required": false
},
"updatedAt": {
"type": "Date",
"required": false
}
}
}
]
}使用 AI 代理構建
使用 Back4app AI 代理,從此模板生成一個護理者喘息應用程序,包括後端架構、ACL 和初始前端集成。
在 Back4app 上創建一個護理人員臨時替代後端,使用這個精確的架構和行為。 架構: 1. CaregiverProfile: user (指向用戶的指標,必填), fullName (字符串,必填), contact (對象), caregiverType (字符串); objectId, createdAt, updatedAt. 2. CareSchedule: caregiver (指向CaregiverProfile的指標,必填), patient (指向PatientProfile的指標,必填), startTime (日期,必填), endTime (日期,必填); objectId, createdAt, updatedAt. 3. CareAssignment: caregiver (指向CaregiverProfile的指標,必填), schedule (指向CareSchedule的指標,必填), status (字符串: active, completed); objectId, createdAt, updatedAt. 4. Communication: sender (指向用戶的指標,必填), recipient (指向用戶的指標,必填), body (字符串), attachments (文件數組), timestamp (日期); objectId, createdAt, updatedAt. 5. AuditLog: actor (指向用戶的指標,必填), action (字符串,必填), entityType (字符串,必填), entityId (字符串,必填), payload (對象,可選), createdAt (日期); objectId, createdAt, updatedAt. 安全性: - 強制執行ACL,以便護理人員只能查看他們的CareSchedule和Communication記錄。利用雲代碼保護轉換並記錄AuditLog條目。 認證: - 支持護理人員註冊; 角色分配; 安全登錄和會話管理。 行為: - 護理人員登錄、獲取預定的護理服務、分配任務並與家庭進行溝通; 系統通過AuditLog記錄行為。 交付: - 帶有架構、ACL、雲代碼鉤子以進行調度、溝通和日誌記錄的 Back4app 應用程序,以及護理人員服務的啟動集成。
按下下面的按鈕以使用此模板提示預填的內容啟動代理。
這是沒有技術後綴的基本提示。您可以之後調整生成的前端堆棧。
API 遊樂場
嘗試對護理人員臨時替代架構的 REST 和 GraphQL 端點。響應使用模擬數據,無需 Back4app 帳戶。
使用與此模板相同的架構。
選擇您的技術
展開每個卡片以獲取整合步驟、狀態模式、數據模型示例和離線備註。
Flutter 照顧者喘息後端
React 照顧者喘息後端
React 原生 照顧者喘息後端
Next.js 照顧者喘息後端
JavaScript 照顧者喘息後端
Android 照顧者喘息後端
iOS 照顧者喘息後端
Vue 照顧者喘息後端
Angular 照顧者喘息後端
GraphQL 照顧者喘息後端
REST API 照顧者喘息後端
PHP 照顧者喘息後端
.NET 照顧者喘息後端
每種技術所提供的內容
每個技術堆棧都使用相同的護理人員暫息後端架構和 API 合約。
統一的護理者數據結構
為 護理者喘息 管理護理者檔案和時間表,採用單一的、統一的格式。
為 護理者喘息 提供安全消息傳遞
促進護理者和家庭之間的保密通信,並提供端對端加密。
靈活的護理指派管理
在 護理者喘息 中輕鬆分配和跟踪根據個別需求而量身定制的護理任務。
全面的審計日誌
保持所有互動和變更的詳細記錄,以確保 護理者喘息 的合規性。
REST/GraphQL API 用於 護理者喘息
使用為 護理者喘息 設計的強大 API 無縫訪問和操作數據。
護理者喘息 的可擴展框架
輕鬆客製化和擴展您的應用程序,以滿足 護理者喘息 中不斷變化的需求。
護理者喘息框架比較
比較所有支持的技術的設置速度、SDK 風格和 AI 支持。
| 框架 | 設置時間 | 護理者喘息福利 | SDK 類型 | AI 支援 |
|---|---|---|---|---|
| 快速(5 分鐘)設置 | 為移動和網頁提供護理者喘息的單一代碼庫。 | Typed SDK | 完整 | |
| ~5 分鐘 | 護理者喘息的快速網頁儀表板。 | Typed SDK | 完整 | |
| 約 5 分鐘 | 跨平台護理者喘息移動應用程式。 | Typed SDK | 完整 | |
| 少於 5 分鐘 | 護理者喘息的伺服器渲染網頁應用程式。 | Typed SDK | 完整 | |
| 少於 5 分鐘 | 護理者喘息的輕量級網頁整合。 | Typed SDK | 完整 | |
| 快速(5 分鐘)設置 | 原生 Android 應用程式以提供護理者喘息。 | Typed SDK | 完整 | |
| ~5 分鐘 | 原生 iOS 應用程式以提供護理者喘息。 | Typed SDK | 完整 | |
| 約 5 分鐘 | React 的護理者喘息網頁 UI。 | Typed SDK | 完整 | |
| 少於 5 分鐘 | 企業級護理者喘息網頁應用程式。 | Typed SDK | 完整 | |
| ~2 分鐘 | 靈活的 GraphQL API 以提供護理者喘息。 | GraphQL API | 完整 | |
| 少於 2 分鐘 | REST API 的護理者喘息整合。 | REST API | 完整 | |
| ~3–5 分鐘 | 伺服器端 PHP 後端以提供護理者喘息。 | REST API | 完整 | |
| 約 5 分鐘 | .NET 的護理者喘息後端。 | Typed SDK | 完整 |
設置時間反映從專案啟動到第一位看護者登錄及使用此模板架構查詢護理計畫的預期持續時間。
常見問題
有關使用此模板構建照顧者休息後端的常見問題。