照顧者入口網站
使用 AI Agent 建立
家庭照顧者門戶

家庭照顧者門戶應用程式後端範本
安全地分享老年人護理狀態,具備現場級控制、生命體徵與同意紀錄

一個可投入生產的 家庭照顧者門戶後端 在 Back4app。啟用與家庭成員共享老年病人狀態的安全、精細的方式,包括實時生命體徵、護理計畫和不可變的同意紀錄。

關鍵要點

使用此模板快速啟動一個照顧者入口網站,包含 ElderlyProfile、FamilyMember、PermissionShare、VitalReading、CarePlan、VisitNote 和 AuditLog,讓您能快速提供安全的家庭訪問。

  1. 細粒度的權限模型使用 PermissionShare 與個別家庭成員共享特定欄位和資源類型(例如,僅生命體徵,或生命體徵 + 照護任務)。
  2. 以家庭為先的身份流邀請家庭成員,管理角色(主要照顧者、只讀親屬),並集中撤回訪問權限,而不移除基礎數據。
  3. 實時狀態更新使用 Live Queries 將 VitalReading 和關鍵的 VisitNote 更新流傳給訂閱的家庭成員,以便立即可見。
  4. 同意和可審核性記錄誰獲得了訪問權限、共享了什麼範圍,以及何時撤銷訪問權限,並以附加只讀的AuditLog條目進行記錄。
  5. 跨平台後端使用相同的REST和GraphQL API為網絡、移動和床邊設備提供一致的授權和數據合約。

什麼是家庭護理人員門戶應用模板?

Back4app是一個BaaS,可實現快速交付。家庭護理人員門戶應用模板模型涵蓋老年人資料、家庭成員、權限共享、生命體徵、護理計劃、訪問備註和審核日誌,使您能夠快速推出面向護理人員的產品。

最佳適用於:

家庭護理人員門戶高級監控應用程式授權健康摘要實時生命體徵串流同意及審計追蹤護理工作流程的最小可行產品(MVPs)

概覽

家庭護理者入口網站需要精確的控制:家庭成員只應該看到老年人(或監護人)所允許的內容。這包括字段級共享、時間有限的訪問權限和明確的審計記錄。

此模板提供類別和所有權規則,以便在網頁和行動客戶端之間執行家庭邀請、授權撤銷、生命體徵串流、護理任務和僅附加審計能力。

核心家庭照顧者功能

每個技術卡片使用相同的照顧者門戶後端架構(ElderlyProfile、FamilyMember、PermissionShare、VitalReading、CarePlan、VisitNote、AuditLog)。

家庭成員管理

將 Back4app 用戶鏈接到老年人檔案,包括關係、首選聯繫方式和角色(例如,主要護理人員)。

權限分享記錄

授予老年檔案擁有者對家庭成員的字段級或資源級訪問權限,包括到期和撤銷。

老年人檔案與健康摘要

儲存人口統計數據、護理偏好、緊急聯絡人以及摘要的健康視圖。

生命體徵讀取時間線(實時)

持久化時間序列的生命體徵(心率、血壓、血糖)與設備元數據和可選的Live Queries。

護理計劃任務和提醒

建模重複任務、指定的家庭成員、完成歷史和通知。

VisitNote 日誌

儲存與訪問相關的臨床醫生或家庭備註,並按可見性範圍標記。

知情同意的 AuditLog

僅附加的記錄授權、撤銷和敏感數據訪問事件。

為什麼要使用Back4app來構建您的家庭照顧者門戶後端?

Back4app為您提供安全的權限數據共享、實時流媒體和可審計性的基本組件,使產品團隊可以專注於照顧者的用戶體驗和合規性,而不是後端基礎設施。

  • 字段級共享和範圍: PermissionShare支持狹隘或廣泛的範圍(例如,僅限生命體徵、完整健康摘要、護理任務)並支持到期以滿足同意要求。
  • 在重要的地方實時可見性: 將VitalReading和高優先級VisitNote更新流式傳輸給訂閱的家庭成員,以便立即看到緊急更改。
  • 以同意為先的審計日誌: 只能追加的AuditLog條目記錄授權、撤銷和敏感操作,以便您可以證明誰在何時訪問了何種信息。

使用安全的可共享API和實時選項更快地交付照顧者功能,跨所有平台。

核心優勢

一個以隱私為首的護理人員後端,可快速發送安全的家庭共享功能。

更快的護理人員功能交付

從專注於共享、生命體徵、護理任務和審計日誌的生產架構開始,以加速產品開發。

細粒度的共享和撤回

準確授予家族成員應該看到的內容,並在不刪除基礎記錄的情況下撤回訪問權限。

即時狀態更新

使用 Live Queries 向訂閱的家庭成員提供立即的關鍵更新(生命體徵、高優先級備註)。

同意證明審計記錄

證明誰授予了訪問權限以及何時授予,並記錄敏感的訪問事件以便遵循合規性或家庭透明度。

跨裝置一致性

使用一個後端合約來服務網路儀表板、手機應用程式和床邊設備,並保持一致的權限檢查。

AI輔助引導

使用提供的AI Agent提示來搭建您所選技術的架構、ACL、CLP和示例前端代碼。

準備好啟動您的家庭護理人員入口網站了嗎?

讓Back4app AI Agent使用ElderlyProfile、PermissionShare、生命體徵、護理計劃和審計記錄從一個提示中搭建您的護理人員後端。

免費開始 - 每月50個AI Agent提示,無需信用卡。

技術棧

此家庭看護者門戶後端模板包含的一切。

前端
13+ 種技術
後端
Back4app
資料庫
MongoDB
身份驗證
內建身份驗證 + 邀請
API
REST 和 GraphQL
即時
Live Queries

ER 圖

家庭照顧者入口網站架構的實體關係模型。

查看圖表來源
Mermaid
erDiagram
    Patient ||--o{ FamilyMember : "connected to"
    Patient ||--o{ CarePermission : "has permission"
    FamilyMember ||--o{ CarePermission : "granted to"
    Patient ||--o{ Vitals : "measured as"
    Patient ||--o{ Medication : "prescribed"
    Patient ||--o{ VisitNote : "visited in"
    _User ||--o{ AuditLog : "performed"

    Patient {
        String objectId PK
        String fullName
        Date dateOfBirth
        String medicalRecordNumber
        String primaryPhysician
        File profilePhoto
        Boolean isActive
        Date createdAt
        Date updatedAt
    }

    FamilyMember {
        String objectId PK
        Pointer user FK
        String fullName
        String relationship
        String contactPhone
        String contactEmail
        Boolean isVerified
        Date createdAt
        Date updatedAt
    }

    CarePermission {
        String objectId PK
        Pointer patient FK
        Pointer familyMember FK
        String accessLevel
        String status
        Pointer grantedBy FK
        Date expiresAt
        Date createdAt
        Date updatedAt
    }

    Vitals {
        String objectId PK
        Pointer patient FK
        Pointer recordedBy FK
        String type
        String value
        String unit
        Date recordedAt
        Boolean isCritical
        Date createdAt
        Date updatedAt
    }

    Medication {
        String objectId PK
        Pointer patient FK
        String name
        String dose
        String schedule
        Date nextDoseAt
        Boolean isActive
        String notes
        Date createdAt
        Date updatedAt
    }

    VisitNote {
        String objectId PK
        Pointer patient FK
        Pointer author FK
        String note
        Date visitDate
        String visibility
        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
    }

整合流程

典型的運行流程,包括認證、家庭邀請、許可分享、生命體徵攝取和實時更新。

查看圖表來源
Mermaid
sequenceDiagram
  participant User
  participant Portal as Family Caregiver Portal App
  participant Back4app as Back4app Cloud

  User->>Portal: Login with email or SSO
  Portal->>Back4app: POST /login (credentials)
  Back4app-->>Portal: Session token + user profile

  User->>Portal: Request access to Patient "Evelyn Parker"
  Portal->>Back4app: POST /classes/CarePermission { patient: Pointer(Patient, p1), familyMember: Pointer(FamilyMember, fm1), accessLevel: "vitals", status: "pending" }
  Back4app-->>Portal: CarePermission objectId + status pending

  Portal->>Back4app: Send notification / email to patient delegate (automated)
  User->>Portal: Patient or delegate approves request
  Portal->>Back4app: PUT /classes/CarePermission/{id} { status: "active", grantedBy: Pointer(_User, uPatient) }
  Back4app-->>Portal: CarePermission updated -> status active

  User->>Portal: Open patient dashboard (Vitals, Medications, Notes)
  Portal->>Back4app: GET /classes/Vitals?where={"patient":Pointer("Patient","p1")}&order=-recordedAt
  Back4app-->>Portal: Vitals list

  Back4app-->>Portal: LiveQuery event: Vitals created (real-time)
  Portal-->>User: Real-time update on patient vital signs

數據字典

家庭護理人員入口網站架構中每個類別的完整字段級參考。

字段類型描述必填
objectIdStringAuto-generated unique identifier自動
fullNameStringPatient display name
dateOfBirthDateDate of birth for age calculations
medicalRecordNumberStringInternal MRN or identifier
primaryPhysicianStringName or contact of primary physician
profilePhotoFileOptional profile photo
isActiveBooleanWhether the patient profile is active
createdAtDateAuto-generated creation timestamp自動
updatedAtDateAuto-generated last-update timestamp自動

9 欄位在 Patient

安全性與權限

如何使用 ACL、CLP 和 PermissionShare 策略保障老年人的記錄、家庭訪問及審核記錄。

基於 PermissionShare 的可視性

使用 PermissionShare 物件來確定授予者可以讀取哪些欄位和類別。保持主老年人資料的私密性,僅公開允許的摘要。

有限期和可撤銷的訪問權限

支持在 PermissionShare 上的 expiresAt 和伺服器端撤銷,以滿足同意要求和緊急訪問場景 iOS。

附加式審計記錄

撰寫授權、撤銷和敏感讀取的 AuditLog 條目。將審計條目的編輯限制為受信任的後端角色。

架構 (JSON)

準備好複製到 Back4app 或用作實作參考的原始 JSON 架構定義。

JSON
{
  "classes": [
    {
      "className": "Patient",
      "fields": {
        "objectId": {
          "type": "String",
          "required": false
        },
        "fullName": {
          "type": "String",
          "required": true
        },
        "dateOfBirth": {
          "type": "Date",
          "required": false
        },
        "medicalRecordNumber": {
          "type": "String",
          "required": true
        },
        "primaryPhysician": {
          "type": "String",
          "required": false
        },
        "profilePhoto": {
          "type": "File",
          "required": false
        },
        "isActive": {
          "type": "Boolean",
          "required": true
        },
        "createdAt": {
          "type": "Date",
          "required": false
        },
        "updatedAt": {
          "type": "Date",
          "required": false
        }
      }
    },
    {
      "className": "FamilyMember",
      "fields": {
        "objectId": {
          "type": "String",
          "required": false
        },
        "user": {
          "type": "Pointer",
          "required": true,
          "targetClass": "_User"
        },
        "fullName": {
          "type": "String",
          "required": true
        },
        "relationship": {
          "type": "String",
          "required": false
        },
        "contactPhone": {
          "type": "String",
          "required": false
        },
        "contactEmail": {
          "type": "String",
          "required": false
        },
        "isVerified": {
          "type": "Boolean",
          "required": true
        },
        "createdAt": {
          "type": "Date",
          "required": false
        },
        "updatedAt": {
          "type": "Date",
          "required": false
        }
      }
    },
    {
      "className": "CarePermission",
      "fields": {
        "objectId": {
          "type": "String",
          "required": false
        },
        "patient": {
          "type": "Pointer",
          "required": true,
          "targetClass": "Patient"
        },
        "familyMember": {
          "type": "Pointer",
          "required": true,
          "targetClass": "FamilyMember"
        },
        "accessLevel": {
          "type": "String",
          "required": true
        },
        "status": {
          "type": "String",
          "required": true
        },
        "grantedBy": {
          "type": "Pointer",
          "required": false,
          "targetClass": "_User"
        },
        "expiresAt": {
          "type": "Date",
          "required": false
        },
        "createdAt": {
          "type": "Date",
          "required": false
        },
        "updatedAt": {
          "type": "Date",
          "required": false
        }
      }
    },
    {
      "className": "Vitals",
      "fields": {
        "objectId": {
          "type": "String",
          "required": false
        },
        "patient": {
          "type": "Pointer",
          "required": true,
          "targetClass": "Patient"
        },
        "recordedBy": {
          "type": "Pointer",
          "required": false,
          "targetClass": "_User"
        },
        "type": {
          "type": "String",
          "required": true
        },
        "value": {
          "type": "String",
          "required": true
        },
        "unit": {
          "type": "String",
          "required": false
        },
        "recordedAt": {
          "type": "Date",
          "required": true
        },
        "isCritical": {
          "type": "Boolean",
          "required": false
        },
        "createdAt": {
          "type": "Date",
          "required": false
        },
        "updatedAt": {
          "type": "Date",
          "required": false
        }
      }
    },
    {
      "className": "Medication",
      "fields": {
        "objectId": {
          "type": "String",
          "required": false
        },
        "patient": {
          "type": "Pointer",
          "required": true,
          "targetClass": "Patient"
        },
        "name": {
          "type": "String",
          "required": true
        },
        "dose": {
          "type": "String",
          "required": true
        },
        "schedule": {
          "type": "String",
          "required": false
        },
        "nextDoseAt": {
          "type": "Date",
          "required": false
        },
        "isActive": {
          "type": "Boolean",
          "required": true
        },
        "notes": {
          "type": "String",
          "required": false
        },
        "createdAt": {
          "type": "Date",
          "required": false
        },
        "updatedAt": {
          "type": "Date",
          "required": false
        }
      }
    },
    {
      "className": "VisitNote",
      "fields": {
        "objectId": {
          "type": "String",
          "required": false
        },
        "patient": {
          "type": "Pointer",
          "required": true,
          "targetClass": "Patient"
        },
        "author": {
          "type": "Pointer",
          "required": false,
          "targetClass": "_User"
        },
        "note": {
          "type": "String",
          "required": true
        },
        "visitDate": {
          "type": "Date",
          "required": false
        },
        "visibility": {
          "type": "String",
          "required": false
        },
        "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 代理從此模板生成完整的家庭護理者門戶應用程序,包括前端、後端、身份驗證和權限流程。

Back4app AI 代理
準備好建設了
在 Back4app 上建立一個家庭護理者入口後端,使用此精確的模式和行為。

模式:
1. ElderlyProfile: owner(指向用戶的指標,必需)、fullName(字符串,必需)、dateOfBirth(日期)、carePreferences(對象)、emergencyContacts(數組);objectId、createdAt、updatedAt(系統)。
2. FamilyMember: user(指向用戶的指標,必需)、elderlyProfile(指向 ElderlyProfile 的指標,必需)、relation(字符串)、role(字符串:primary,secondary,read-only);objectId、createdAt、updatedAt(系統)。
3. PermissionShare: owner(指向用戶的指標,必需)、grantee(指向用戶的指標,必需)、elderlyProfile(指向 ElderlyProfile 的指標,必需)、scope(對象:fields 和 resourceTypes)、expiresAt(日期,可選)、active(布爾值);objectId、createdAt、updatedAt(系統)。
4. VitalReading: elderlyProfile(指向 ElderlyProfile 的指標,必需)、type(字符串:heartRate,bloodPressure,glucose 等,必需)、value(字符串)、unit(字符串)、recordedAt(日期,必需)、source(字符串,可選);objectId、createdAt、updatedAt(系統)。
5. CarePlan: elderlyProfile(指向 ElderlyProfile 的指標,必需)、title(字符串,必需)、tasks(對象數組:task,frequency,assignedTo)、status(字符串)、nextDueAt(日期);objectId、createdAt、updatedAt(系統)。
6. VisitNote: elderlyProfile(指向 ElderlyProfile 的指標,必需)、author(指向用戶的指標,必需)、note(字符串,必需)、visibility(字符串:private,shared)、createdAt(日期);objectId、createdAt、updatedAt(系統)。
7. AuditLog: actor(指向用戶的指標,必需)、action(字符串,必需)、targetType(字符串,必需)、targetId(字符串,必需)、payload(對象,可選);objectId、createdAt、updatedAt(系統)。

安全性:
- 使用 PermissionShare 來限制讀取;對敏感的讀取和寫入在雲端代碼中執行服務端檢查。設置 CLP/ACL 使只有擁有者和系統角色可以編輯主 ElderlyProfile 記錄。

身份驗證:
- 註冊、登錄、邀請家庭成員的流程。FamilyMember 是用戶和 ElderlyProfile 之間的聯繫。

行為:
- 邀請家庭成員,建立具有範圍和到期的 PermissionShare 記錄,從設備中攝取 VitalReading 事件,通過 Live Queries 通知訂閱的家庭成員,並為授權、撤銷和顯著的讀取寫入 AuditLog 條目。

交付:
- 帶有模式、ACL、CLP、雲端代碼鉤子的 Back4app 應用程序,用於權限執行和啟動前端集成示例。

按下面的按鈕以打開預填此模板提示的代理。

這是沒有技術後綴的基本提示。您可以在之後調整生成的前端堆棧。

幾分鐘內部署每月 50 次免費提示無需信用卡

API 遊樂場

嘗試在家庭護理者入口網站架構上使用 REST 和 GraphQL 終端。回應使用模擬數據,並不需要 Back4app 帳戶。

common.loadingPlayground

使用與此範本相同的架構。

選擇您的技術

展開每個卡片以獲取整合步驟、狀態模式、資料模型範例和離線註釋。

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完整
~3–7 分鐘家庭照顧者門戶的伺服器渲染網頁應用。Typed SDK完整
~3 分鐘家庭照顧者門戶的輕量級網頁集成。Typed SDK完整
~5 分鐘家庭照顧者門戶的原生 Android 應用。Typed SDK完整
約 5 分鐘家庭照顧者門戶的原生 iOS 應用。Typed SDK完整
少於 5 分鐘React 的家庭照顧者門戶網頁UI。Typed SDK完整
~3–7 分鐘家庭照顧者門戶的企業網頁應用。Typed SDK完整
快速 (2 分鐘) 設置靈活的 GraphQL API 用於家庭照顧者門戶。GraphQL API完整
~2 分鐘REST API 整合用於家庭照顧者門戶。REST API完整
少於 5 分鐘家庭照顧者門戶的伺服器端 PHP 後端。REST API完整
少於 5 分鐘.NET 後端用於家庭照顧者門戶。Typed SDK完整

設置時間反映從項目啟動到首次邀請流程和使用此模板架構進行的重要查詢的預期持續時間。

常見問題

有關使用此模板建立家庭看護者入口網站的常見問題。

家庭護理人員入口網站後端是什麼?
家庭護理人員入口網站模板包含什麼?
為什麼要使用 Back4app 作為護理人員入口網站?
我如何從設備中獲取生命體徵?
我該如何建模定期護理任務?
React 原生應用是否能離線快取生命徵象和個人資料摘要?
我該如何防止未經授權地讀取敏感字段?
在 Android 上顯示家庭角色的最佳方式是什麼?
同意日誌流的端到端流程如何運作?
我應該如何處理緊急訪問?

全球開發者信賴

團隊正在構建護理人員功能和優先考慮隱私的分享信任 Back4app 模板。

G2 Users Love Us Badge

準備好建立您的照顧者入口網站了嗎?

在幾分鐘內啟動您的家庭照顧者專案。不需要信用卡。

選擇科技