用于患者记录、移动评分和会话备注的职业治疗师追踪器
患者移动、设备历史和会话备注
一个准备投入生产的 职业治疗师追踪器后端 在 Back4app,包含 患者、移动评分、设备日志、会话备注 和 状态历史。包括 ER 图、数据字典、JSON schema、API 游乐场和一个 AI 代理 提示以快速启动。
您将获得的内容
该模板为您提供一个职业治疗师追踪器后端,包括患者、MobilityScore、设备日志、SessionNote 和状态历史,以便运营主管可以审核行动变化,贡献者可以干净地更新护理详情。
- 患者档案追踪 — 模型患者,包括 patientId、displayName、dateOfBirth、primaryTherapist 和 mobilityStatus。
- 行动评估历史 — 保持与患者相关联的 MobilityScore 条目,包括 scoreDate、scoreType、scoreValue、notes 和 recordedBy。
- 设备责任 — 存储设备日志,包括 equipmentName、serialNumber、status、checkedOutAt、returnedAt 和 loggedBy。
- 会话记录历史 — 使用 sessionDate、sessionType、noteText、followUpNeeded 和 author 保存 SessionNote。
- 审计跟踪覆盖 — 使用 StatusHistory 记录患者状态类型变化,包括 fromValue、toValue、changedBy 和 changeReason。
职业治疗师跟踪器后端概览
一个健康的职业治疗师跟踪器管道具有明确的阶段、所有者和退出标准——否则 “进行中” 就变成了一个黑洞。小延误会迅速叠加。Back4app 为需要截止日期、文件和沟通的职业治疗师跟踪器实践锚定核心实体,所有这些都在一个授权工作区中。该架构涵盖 <strong>User</strong>(用户名、电子邮件、密码、角色)、<strong>Patient</strong>(患者ID、显示名称、出生日期、主要治疗师、移动状态)、<strong>MobilityScore</strong>(患者、评分日期、评分类型、评分值、备注、记录者)、<strong>EquipmentLog</strong>(患者、设备名称、序列号、状态、借出时间、归还时间、记录者)、<strong>SessionNote</strong>(患者、会话日期、会话类型、笔记文本、后续需要、作者)和 <strong>StatusHistory</strong>(患者、状态类型、fromValue、toValue、changedBy 和 changeReason),同时具有认证、审计准备好的历史记录和隐私敏感的访问权限。连接您首选的前端,开始更快跟踪治疗数据。
最佳适用:
职业治疗师追踪器模板概述
职业治疗师追踪器不仅关乎速度;当有人问“你怎么知道这是真的”时,它关乎可辩护性。
使用此概述查看患者病历管理、流动性评分跟踪、设备日志历史记录如何结合在一起,再决定将工程时间投入特定客户框架。
职业治疗师跟踪功能
本中心的每个技术卡片都使用相同的职业治疗师跟踪后端架构,包括Patient、MobilityScore、EquipmentLog、SessionNote和StatusHistory。
患者档案管理
患者存储 patientId、displayName、dateOfBirth、primaryTherapist 和 mobilityStatus。
移动评分跟踪
MobilityScore 链接 patient、scoreDate、scoreType、scoreValue、notes 和 recordedBy。
设备日志历史
EquipmentLog 记录患者、设备名称、序列号、状态、借出时间、归还时间以及记录人。
会议记录
SessionNote 记录患者、会议日期、会议类型、记录文本、是否需要跟进以及作者。
状态历史记录
StatusHistory 记录患者、状态类型、从值、到值、变更人和变更原因。
为什么要在 Back4app 上构建您的职业治疗师跟踪后端?
Back4app 为您提供 Patient、MobilityScore、EquipmentLog、SessionNote 和 StatusHistory 原语,以便您的团队可以专注于护理工作流程,而不是数据库的底层结构。
- •一个模型中的患者和行动历史: Patient 和 MobilityScore 类保持 patientId、displayName、scoreDate、scoreType、scoreValue 和 recordedBy 在每次评审中对齐。
- •设备可追溯性: EquipmentLog 记录设备名称、序列号、状态、checkedOutAt 和 returnedAt,帮助跟踪设备的交接和归还。
- •具有评审上下文的会议记录: 使用 SessionNote noteText、sessionDate、followUpNeeded 和 author,以便贡献者可以看到每次治疗访问期间发生的情况。
通过一个后端合同快速构建和更新职业治疗工作流程,适用于所有平台。
护理工作流程的好处
一个保持治疗数据可读、可追踪并准备好审核的临床操作后端。
更快的档案设置
从Patient、MobilityScore、EquipmentLog、SessionNote和StatusHistory类开始,而不是从零开始设计治疗数据库。
更清晰的设备责任
使用EquipmentLog的serialNumber、checkedOutAt、returnedAt和status字段,查看哪个设备被分配、归还或正在维修。
可见的评估记录
MobilityScore的scoreDate、scoreType、scoreValue和notes使得治疗进展在每次就诊中都易于审核。
与会话关联的备注
SessionNote noteText、sessionDate、followUpNeeded 和 author 保持跟踪的上下文附加到正确的患者记录。
更安全的访问控制
应用 ACL/CLP 规则,以便只有经过批准的用户可以创建或编辑 Patient、MobilityScore、EquipmentLog、SessionNote 和 StatusHistory 记录。
AI 辅助引导
快速生成后端支架和集成指南,使用一个结构化提示。
准备好启动您的职业治疗师追踪应用程序了吗?
让 Back4app AI Agent 在一个提示中制作您的职业治疗师追踪后端,并生成 Patient、MobilityScore、EquipmentLog、SessionNote 和 StatusHistory 流程。
免费开始 — 每月 50 个 AI 代理提示,无需信用卡
跟踪器的技术栈
此职业治疗师跟踪器后端模板中包含所有内容。
患者关系图
职业治疗师跟踪器后端架构的实体关系模型。
覆盖用户、患者、移动分数、设备日志、会话记录和状态历史的架构。
查看图表源
erDiagram
User ||--o{ Patient : "primaryTherapist"
User ||--o{ MobilityScore : "recordedBy"
User ||--o{ EquipmentLog : "loggedBy"
User ||--o{ SessionNote : "author"
User ||--o{ StatusHistory : "changedBy"
Patient ||--o{ MobilityScore : "patient"
Patient ||--o{ EquipmentLog : "patient"
Patient ||--o{ SessionNote : "patient"
Patient ||--o{ StatusHistory : "patient"
User {
String objectId PK
String username
String email
String password
String role
Date createdAt
Date updatedAt
}
Patient {
String objectId PK
String patientId
String displayName
Date dateOfBirth
String primaryTherapistId FK
String mobilityStatus
Date createdAt
Date updatedAt
}
MobilityScore {
String objectId PK
String patientId FK
Date scoreDate
String scoreType
Number scoreValue
String notes
String recordedById FK
Date createdAt
Date updatedAt
}
EquipmentLog {
String objectId PK
String patientId FK
String equipmentName
String serialNumber
String status
Date checkedOutAt
Date returnedAt
String loggedById FK
Date createdAt
Date updatedAt
}
SessionNote {
String objectId PK
String patientId FK
Date sessionDate
String sessionType
String noteText
Boolean followUpNeeded
String authorId FK
Date createdAt
Date updatedAt
}
StatusHistory {
String objectId PK
String patientId FK
String statusType
String fromValue
String toValue
String changedById FK
String changeReason
Date createdAt
Date updatedAt
}
跟踪器请求流程
进行签入、患者审查、移动分数输入、设备日志记录和会话记录更新的典型运行流程。
查看图表源
sequenceDiagram
participant User
participant OT as Occupational Therapist Tracker App
participant Back4app as Back4app Cloud
User->>OT: Sign in with therapist account
OT->>Back4app: POST /login
Back4app-->>OT: Session token
User->>OT: Load patient caseload
OT->>Back4app: GET /classes/Patient?include=primaryTherapist
Back4app-->>OT: Patient list with mobility status
User->>OT: Add a mobility score
OT->>Back4app: POST /classes/MobilityScore
Back4app-->>OT: MobilityScore objectId
User->>OT: Log equipment checkout or return
OT->>Back4app: POST /classes/EquipmentLog
Back4app-->>OT: EquipmentLog objectId
User->>OT: Save session notes and status history
OT->>Back4app: POST /classes/SessionNote
OT->>Back4app: POST /classes/StatusHistory
Back4app-->>OT: Audit trail saved现场指南
职业治疗师追踪架构中每个类别的完整字段级参考。
| 字段 | 类型 | 描述 | 必需 |
|---|---|---|---|
| objectId | String | Auto-generated unique identifier | 自动 |
| username | String | User login name | |
| String | User email address | ||
| password | String | Hashed password (write-only) | |
| role | String | User role (e.g. lead, therapist, contributor) | |
| createdAt | Date | Auto-generated creation timestamp | 自动 |
| updatedAt | Date | Auto-generated last-update timestamp | 自动 |
7 字段在 User 中
访问规则和权限
ACL 和 CLP 策略如何保护用户、患者、移动评分、设备日志、会话记录和状态历史。
患者档案控制
只有授权的贡献者可以创建或更新患者记录及相关临床对象。
设备处理责任
只有经过批准的用户可以创建或编辑设备日志条目,保持序列号、借出时间、归还时间和状态变化可审核。
范围临床可见性
限制读取,使用户只能看到他们被允许审阅的患者档案、移动评分条目、会话记录和状态历史行。
JSON Schema
原始 JSON 架构定义准备好复制到 Back4app 或用作实施参考。
{
"classes": [
{
"className": "User",
"fields": {
"objectId": {
"type": "String",
"required": false
},
"username": {
"type": "String",
"required": true
},
"email": {
"type": "String",
"required": true
},
"password": {
"type": "String",
"required": true
},
"role": {
"type": "String",
"required": true
},
"createdAt": {
"type": "Date",
"required": false
},
"updatedAt": {
"type": "Date",
"required": false
}
}
},
{
"className": "Patient",
"fields": {
"objectId": {
"type": "String",
"required": false
},
"patientId": {
"type": "String",
"required": true
},
"displayName": {
"type": "String",
"required": true
},
"dateOfBirth": {
"type": "Date",
"required": false
},
"primaryTherapist": {
"type": "Pointer",
"required": true,
"targetClass": "User"
},
"mobilityStatus": {
"type": "String",
"required": true
},
"createdAt": {
"type": "Date",
"required": false
},
"updatedAt": {
"type": "Date",
"required": false
}
}
},
{
"className": "MobilityScore",
"fields": {
"objectId": {
"type": "String",
"required": false
},
"patient": {
"type": "Pointer",
"required": true,
"targetClass": "Patient"
},
"scoreDate": {
"type": "Date",
"required": true
},
"scoreType": {
"type": "String",
"required": true
},
"scoreValue": {
"type": "Number",
"required": true
},
"notes": {
"type": "String",
"required": false
},
"recordedBy": {
"type": "Pointer",
"required": true,
"targetClass": "User"
},
"createdAt": {
"type": "Date",
"required": false
},
"updatedAt": {
"type": "Date",
"required": false
}
}
},
{
"className": "EquipmentLog",
"fields": {
"objectId": {
"type": "String",
"required": false
},
"patient": {
"type": "Pointer",
"required": true,
"targetClass": "Patient"
},
"equipmentName": {
"type": "String",
"required": true
},
"serialNumber": {
"type": "String",
"required": false
},
"status": {
"type": "String",
"required": true
},
"checkedOutAt": {
"type": "Date",
"required": false
},
"returnedAt": {
"type": "Date",
"required": false
},
"loggedBy": {
"type": "Pointer",
"required": true,
"targetClass": "User"
},
"createdAt": {
"type": "Date",
"required": false
},
"updatedAt": {
"type": "Date",
"required": false
}
}
},
{
"className": "SessionNote",
"fields": {
"objectId": {
"type": "String",
"required": false
},
"patient": {
"type": "Pointer",
"required": true,
"targetClass": "Patient"
},
"sessionDate": {
"type": "Date",
"required": true
},
"sessionType": {
"type": "String",
"required": true
},
"noteText": {
"type": "String",
"required": true
},
"followUpNeeded": {
"type": "Boolean",
"required": true
},
"author": {
"type": "Pointer",
"required": true,
"targetClass": "User"
},
"createdAt": {
"type": "Date",
"required": false
},
"updatedAt": {
"type": "Date",
"required": false
}
}
},
{
"className": "StatusHistory",
"fields": {
"objectId": {
"type": "String",
"required": false
},
"patient": {
"type": "Pointer",
"required": true,
"targetClass": "Patient"
},
"statusType": {
"type": "String",
"required": true
},
"fromValue": {
"type": "String",
"required": false
},
"toValue": {
"type": "String",
"required": true
},
"changedBy": {
"type": "Pointer",
"required": true,
"targetClass": "User"
},
"changeReason": {
"type": "String",
"required": false
},
"createdAt": {
"type": "Date",
"required": false
},
"updatedAt": {
"type": "Date",
"required": false
}
}
}
]
}与 AI 代理一起构建
使用 Back4app AI 代理从此模板生成一个真实的职业治疗师跟踪应用程序,包括前端、后端、身份验证,以及 Patient、MobilityScore、EquipmentLog、SessionNote 和 StatusHistory 流程。
在 Back4app 上创建一个具有该确切架构和行为的职业治疗师跟踪应用程序。 架构: 1. 用户(使用 Back4app 内置):用户名、电子邮件、密码、角色;objectId、createdAt、updatedAt(系统)。 2. 患者:patientId(字符串,必填)、displayName(字符串,必填)、dateOfBirth(日期,选填)、primaryTherapist(指向用户的指针,必填)、mobilityStatus(字符串,必填);objectId、createdAt、updatedAt(系统)。 3. MobilityScore:patient(指向患者的指针,必填)、scoreDate(日期,必填)、scoreType(字符串,必填)、scoreValue(数字,必填)、notes(字符串,选填)、recordedBy(指向用户的指针,必填);objectId、createdAt、updatedAt(系统)。 4. EquipmentLog:patient(指向患者的指针,必填)、equipmentName(字符串,必填)、serialNumber(字符串,选填)、status(字符串,必填)、checkedOutAt(日期,选填)、returnedAt(日期,选填)、loggedBy(指向用户的指针,必填);objectId、createdAt、updatedAt(系统)。 5. SessionNote:patient(指向患者的指针,必填)、sessionDate(日期,必填)、sessionType(字符串,必填)、noteText(字符串,必填)、followUpNeeded(布尔值,必填)、author(指向用户的指针,必填);objectId、createdAt、updatedAt(系统)。 6. StatusHistory:patient(指向患者的指针,必填)、statusType(字符串,必填)、fromValue(字符串,选填)、toValue(字符串,必填)、changedBy(指向用户的指针,必填)、changeReason(字符串,选填);objectId、createdAt、updatedAt(系统)。 安全性: - 只有指定的治疗师和主要用户可以查看患者详细信息。 - 只有拥有患者的治疗师或领导才能更新 Patient、MobilityScore、EquipmentLog、SessionNote 和 StatusHistory。 - 每次对 mobilityStatus 的更改都应创建一条 StatusHistory 记录。 - 保持会话注释和患者标识符的私密性。 身份验证: - 注册、登录、登出。 行为: - 加载病例、记录移动分数、记录设备借出或归还、保存会话注释,并维护可审计的状态历史。 交付: - Back4app 应用程序,带架构、ACL、CLP;用于患者管理、评分、设备跟踪、注释和审计历史的前端。
按下面的按钮打开带有预填充模板提示的代理。
这是没有技术后缀的基础提示。您可以之后调整生成的前端架构。
API 沙盒
尝试 REST 和 GraphQL 端点与职业治疗师跟踪器架构。响应使用模拟数据,无需 Back4app 账户。
使用与此模板相同的架构。
选择你的技术栈
展开每个卡片以查看如何将患者、ID 和名称与您选择的技术栈集成。
Flutter 职业治疗师跟踪后台
React 职业治疗师跟踪后台
React 原生 职业治疗师跟踪后台
Next.js 职业治疗师跟踪后台
JavaScript 职业治疗师跟踪后台
Android 职业治疗师跟踪后台
iOS 职业治疗师跟踪后台
Vue 职业治疗师跟踪后台
Angular 职业治疗师跟踪后台
GraphQL 职业治疗师跟踪后台
REST API 职业治疗师跟踪后台
PHP 职业治疗师跟踪后台
.NET 职业治疗师跟踪后台
每项技术带来的收益
每个技术栈使用相同的职业治疗师跟踪器后端模式和 API 合同。
统一治疗数据结构
管理患者档案、MobilityScore 条目、EquipmentLog 事件、SessionNote 记录以及 StatusHistory 行,使用一个模式。
护理团队的 Mobility Score 工作流
跟踪每次患者审核的 scoreDate、scoreType、scoreValue 和 recordedBy。
设备保管日志
捕获 equipmentName、serialNumber、status、checkedOutAt 和 returnedAt,以保持交接可审核。
贡献者的会话记录历史
存储 sessionType、sessionDate、noteText、followUpNeeded 和 author,以便于档案审核和交接工作。
编辑的状态历史
当患者状态更改时,记录 statusType、fromValue、toValue、changedBy 和 changeReason。
职业治疗师追踪器堆栈比较
比较所有支持技术的设置速度、SDK 风格和 AI 支持。
| 框架 | 设置时间 | 职业治疗师跟踪器好处 | SDK 类型 | AI 支持 |
|---|---|---|---|---|
| 大约 5 分钟 | 用于患者病历和移动评分审查的单一代码库,适用于移动和网页。 | 类型化 SDK | 完整 | |
| 少于 5 分钟 | 快速网页仪表板,用于会话记录和设备日志。 | 类型化 SDK | 完整 | |
| 大约 3–7 分钟 | 跨平台移动应用,用于治疗轮次和笔记记录。 | 类型化 SDK | 完整 | |
| 快速(5 分钟)设置 | 服务器渲染的审查界面,用于患者和移动历史。 | 类型化 SDK | 完整 | |
| ~3–5分钟 | 用于会话笔记和设备跟踪的轻量级网页集成。 | Typed SDK | 完整 | |
| 大约5分钟 | 用于护理点移动分数录入的原生 Android 应用。 | Typed SDK | 完整 | |
| 少于5分钟 | 用于图表审查和会话笔记的原生 iOS 应用。 | Typed SDK | 完整 | |
| ~3–7分钟 | React患者时间线和设备日志的互动网页 UI。 | 输入型 SDK | 完整 | |
| 快速(5分钟)设置 | 面向运营负责人和贡献者的企业 веб 应用。 | 输入型 SDK | 完整 | |
| 少于 2 分钟 | 灵活的 GraphQL API 用于患者图表和流动性评分。 | GraphQL API | 完整 | |
| 快速(2分钟)设置 | REST API 设备日志和会话记录的集成。 | REST API | 完整 | |
| ~3 分钟 | 用于临床操作工具的服务器端 PHP 后端。 | REST API | 完整 | |
| ~3–7 分钟 | 用于治疗跟踪和审计历史的 .NET 后端。 | 输入型 SDK | 完整 |
设置时间反映从项目启动到使用此模板架构进行第一次患者或移动性评分查询的预期持续时间。
问答
关于使用此模板构建职业治疗师跟踪器后端的常见问题。