过敏测试应用后端模板
安全地记录皮肤点刺测试结果和管理免疫疗法时间表
一个生产就绪的 过敏测试后端 在 Back4app 上,安全记录皮肤点刺测试结果并管理免疫疗法时间表。包括 ER 图、数据字典、JSON schema、API 游乐场,以及一个快速启动的 AI Agent 提示。
关键要点
推出一个安全的后端,具有记录、时间管理和集中审计日志,允许您的产品团队专注于用户体验和合规性。
- 以患者为中心的数据模型 — 将患者档案链接到皮肤刺痛测试结果和免疫疗法时间表,以实现全面跟踪和文档记录。
- 安全记录测试结果 — 在记录皮肤刺痛测试结果时,确保患者隐私和数据保护,并附带详细元数据。
- 免疫疗法管理 — 跟踪免疫疗法的时间表,包括剂量和频率,并支持版本更新。
- 合规友好的日志记录 — 集中式审计日志类记录敏感事件以供审查、跟踪和合规使用。
- 内置 API — 使用 REST 和 GraphQL API 实现与前端应用程序的无缝集成。
什么是过敏测试应用后端模板?
Back4app 是一种后端即服务 (BaaS),用于快速交付。过敏测试应用后端模板是过敏测试结果和免疫疗法计划的预构建架构。连接你喜欢的前端(React,Flutter,Next.js 等)并更快交付。
最佳适用:
概述
过敏测试应用需要安全的数据管理、可审计的更改和可靠的测试结果和疗程安排交付。
此模板定义了SkinPrickTestResult、ImmunotherapySchedule、PatientProfile和AuditLog,具有所有权和基于角色的规则,以实现快速和安全的开发。
核心过敏测试功能
该中心的每个技术卡片使用相同的过敏测试后端架构,包括 SkinPrickTestResult、ImmunotherapySchedule、PatientProfile 和 AuditLog。
皮肤点刺测试结果记录
记录皮肤点刺测试的结果,包括患者详细信息和结果元数据。
免疫疗法日程管理
管理免疫疗法治疗的详细日程,连接患者。
患者档案管理
安全存储患者身份、人口统计和联系信息。
集中审计日志
AuditLog 捕获并维护对记录进行的关键操作的记录。
为什么选择使用Back4app构建您的过敏测试应用程序后端?
Back4app管理后端的基本要素——安全性、持久性、API和实时——让您可以专注于患者护理、隐私工作流程和集成。
- •安全记录临床数据: 内置身份验证和ACL/CLP模式帮助管理对测试结果和治疗信息的访问。
- •审计和来源: AuditLog跟踪谁查看、发布或修改了关键记录,以支持合规。
- •消息和通知: 线程消息和可选的实时更新增强了临床医生与患者之间的沟通。
快速部署安全的后端为您的过敏测试应用程序,专注于改进临床工作流程。
核心优势
强调隐私、数据完整性和快速交付的过敏测试后端。
加速的患者体验
通过利用经过验证的后端模板快速实施测试结果记录和免疫治疗计划管理。
强大的数据来源
维护测试结果和治疗计划的版本跟踪,以便进行全面审核。
细粒度权限
通过ACL/CLP访问控制保护敏感医疗记录,确保只有授权用户可以查看。
集成的消息功能
利用安全消息传递促进患者与医疗Provider之间的沟通。
合规准备日志
利用集中审计日志监控用户操作,确保符合监管要求。
人工智能辅助的快速开发
通过人工智能代理提示快速启动您的实施,为模式、ACL 和代码集成搭建框架。
准备开发一个安全的过敏测试应用程序吗?
允许 Back4app 人工智能代理构建您的过敏测试应用后端,并创建皮肤点刺测试结果记录和免疫治疗管理设置。
免费开始 - 每月 50 次人工智能代理提示,无需信用卡
技术栈
此过敏测试后端模板中包含所有内容。
ER 图
过敏测试后端架构的实体关系模型。
覆盖皮肤刺痛测试结果、免疫治疗计划、患者档案和审计日志的架构。
查看图表源
erDiagram
PatientProfile ||--o{ TestResult : "has"
PatientProfile ||--o{ ImmunotherapySchedule : "receives"
PatientProfile ||--o{ Message : "context for"
PatientProfile ||--o{ Appointment : "scheduled in"
_User ||--o{ Message : "sends/receives"
_User ||--o{ Appointment : "provides"
PatientProfile {
String objectId PK
Pointer user FK
String displayName
Date dateOfBirth
Array allergies
Date createdAt
Date updatedAt
}
TestResult {
String objectId PK
Pointer patient FK
String testCode
String testName
String resultValue
String status
Date publishedAt
Date createdAt
Date updatedAt
}
ImmunotherapySchedule {
String objectId PK
Pointer patient FK
Array injections
Date lastInjection
Date createdAt
Date updatedAt
}
Message {
String objectId PK
String conversationId
Pointer from FK
Pointer to FK
Pointer patient FK
String body
Boolean isRead
Date sentAt
Date createdAt
Date updatedAt
}
Appointment {
String objectId PK
Pointer patient FK
Pointer provider FK
Date startAt
Date endAt
String location
String status
String reason
Date createdAt
Date updatedAt
}
AuditLog {
String objectId PK
Pointer actor FK
String entityType
String entityId
String action
String summary
Date createdAt
Date updatedAt
}
集成流程
进行身份验证、记录测试结果、更新免疫治疗计划和消息传递的典型运行流程。
查看图表源
sequenceDiagram
participant Patient
participant App as Allergy Testing App
participant Clinician
participant Back4app as Back4app Cloud
Patient->>App: Sign in with email or SSO
App->>Back4app: POST /login (credentials/SSO token)
Back4app-->>App: Return Session Token + Patient context
Patient->>App: View Allergy Test Results
App->>Back4app: GET /classes/TestResult?where={"patient":Pointer("PatientProfile","p123")}
Back4app-->>App: List of TestResult objects
Patient->>App: Schedule Immunotherapy Appointment
App->>Back4app: POST /classes/ImmunotherapySchedule (injections)
Back4app-->>App: ImmunotherapySchedule object created
Patient->>App: Send secure message to clinician
App->>Back4app: POST /classes/Message (conversationId, body, to: Pointer(_User, clinicianId))
Back4app-->>App: Message objectId
Back4app-->>App: LiveQuery -> new Message or TestResult update
App-->>Patient: Real-time notification (new message/request)数据字典
过敏测试架构中每个类的完整字段级参考。
| 字段 | 类型 | 描述 | 必填 |
|---|---|---|---|
| objectId | String | Auto-generated unique identifier | 自动 |
| user | Pointer<_User> | Linked Back4app user account | |
| displayName | String | Patient full name shown in UI | |
| dateOfBirth | Date | Patient date of birth | — |
| allergies | Array<String> | List of allergies | |
| createdAt | Date | Auto-generated creation timestamp | 自动 |
| updatedAt | Date | Auto-generated last-update timestamp | 自动 |
7 字段在 PatientProfile 中
安全性和权限
ACL、CLP 和加密策略如何保护皮肤刺测试结果、免疫疗法时间表和审计日志。
基于角色的访问和所有权
实施 ACL,使患者只能查看自己的测试结果和时间表;CLP 限制未经授权的类操作。
加密有效负载和附件
安全地存储敏感附件,并利用加密保护静态数据。
仅追加审核记录
使用服务器端云代码编写审核日志条目,以确保历史合规记录保持不可篡改。
架构(JSON)
原始JSON架构定义,准备复制到Back4app或作为实现参考。
{
"classes": [
{
"className": "PatientProfile",
"fields": {
"objectId": {
"type": "String",
"required": false
},
"user": {
"type": "Pointer",
"required": true,
"targetClass": "_User"
},
"displayName": {
"type": "String",
"required": true
},
"dateOfBirth": {
"type": "Date",
"required": false
},
"allergies": {
"type": "Array",
"required": true
},
"createdAt": {
"type": "Date",
"required": false
},
"updatedAt": {
"type": "Date",
"required": false
}
}
},
{
"className": "TestResult",
"fields": {
"objectId": {
"type": "String",
"required": false
},
"patient": {
"type": "Pointer",
"required": true,
"targetClass": "PatientProfile"
},
"testCode": {
"type": "String",
"required": false
},
"testName": {
"type": "String",
"required": true
},
"resultValue": {
"type": "String",
"required": false
},
"status": {
"type": "String",
"required": true
},
"publishedAt": {
"type": "Date",
"required": false
},
"createdAt": {
"type": "Date",
"required": false
},
"updatedAt": {
"type": "Date",
"required": false
}
}
},
{
"className": "ImmunotherapySchedule",
"fields": {
"objectId": {
"type": "String",
"required": false
},
"patient": {
"type": "Pointer",
"required": true,
"targetClass": "PatientProfile"
},
"injections": {
"type": "Array",
"required": true
},
"lastInjection": {
"type": "Date",
"required": false
},
"createdAt": {
"type": "Date",
"required": false
},
"updatedAt": {
"type": "Date",
"required": false
}
}
},
{
"className": "Message",
"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"
},
"patient": {
"type": "Pointer",
"required": true,
"targetClass": "PatientProfile"
},
"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
},
"patient": {
"type": "Pointer",
"required": true,
"targetClass": "PatientProfile"
},
"provider": {
"type": "Pointer",
"required": true,
"targetClass": "_User"
},
"startAt": {
"type": "Date",
"required": true
},
"endAt": {
"type": "Date",
"required": true
},
"location": {
"type": "String",
"required": false
},
"status": {
"type": "String",
"required": true
},
"reason": {
"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
},
"createdAt": {
"type": "Date",
"required": false
},
"updatedAt": {
"type": "Date",
"required": false
}
}
}
]
}与AI代理一起构建
使用Back4app AI代理根据此模板生成过敏测试应用,包括后端架构、ACL和起始前端集成。
在 Back4app 上创建一个过敏测试后端,使用此确切的架构和行为。 架构: 1. SkinPrickTestResult: patient(指向患者的指针),testDate(日期,必需),results(对象),objectId,createdAt,updatedAt。 2. ImmunotherapySchedule: patient(指向患者的指针),dosage(字符串),startDate(日期),endDate(日期),objectId,createdAt,updatedAt。 3. PatientProfile: user(指向用户的指针,必需),demographics(对象),contact(对象);objectId,createdAt,updatedAt。 4. AuditLog: actor(指向用户的指针,必需),action(字符串),entityType(字符串),entityId(字符串),payload(对象,可选),createdAt(日期);objectId,createdAt,updatedAt。 安全性: - 实施ACL以限制患者和 Provider 角色对测试结果和日程的访问。使用云代码进行安全交易和记录操作。 身份验证: - 支持患者和 Provider 的用户注册;管理角色和安全会话处理。 行为: - 患者登录,提交皮肤刺痛测试结果,管理免疫治疗日程,并发送消息进行互动;Provider 发布测试结果和治疗日程,视需要而定。 交付: - Back4app 应用程序,带有架构、ACL、云代码挂钩以发布操作和审核记录,以及患者和 Provider 视图的入门前端集成。
点击下面的按钮以打开带有此模板提示预填充的代理。
这是没有技术后缀的基础提示。您可以在之后调整生成的前端堆栈。
API 游乐场
根据过敏测试架构尝试REST和 GraphQL 端点。响应使用模拟数据,不需要 Back4app 帐户。
使用与此模板相同的架构。
选择您的技术
展开每个卡片以获取集成步骤、状态模式、数据模型示例和离线注释。
Flutter 过敏测试后端
React 过敏测试后端
React 原生 过敏测试后端
Next.js 过敏测试后端
JavaScript 过敏测试后端
Android 过敏测试后端
iOS 过敏测试后端
Vue 过敏测试后端
Angular 过敏测试后端
GraphQL 过敏测试后端
REST API 过敏测试后端
PHP 过敏测试后端
.NET 过敏测试后端
您每种技术获得的内容
每个技术栈使用相同的过敏测试后端架构和 API 合同。
统一的过敏测试数据结构
标准化的架构有效管理过敏测试结果。
过敏测试结果的安全共享
轻松与患者和医疗Provider安全共享测试结果。
REST/GraphQL API用于过敏测试
灵活的API将过敏测试数据与任何前端技术集成。
免疫疗法时间管理
自动化和跟踪过敏测试患者的免疫疗法时间表。
敏感数据的访问控制
细粒度权限以确保过敏测试信息的隐私。
过敏测试的实时通知
通过及时更新告知患者他们的测试结果。
过敏测试框架比较
评估各种技术的设置时间、SDK类型和AI支持。
| 框架 | 设置时间 | 过敏测试的好处 | SDK 类型 | AI 支持 |
|---|---|---|---|---|
| 快速(5分钟)设置 | 移动和网页的过敏测试单一代码库。 | Typed SDK | 完整 | |
| 约5分钟 | 过敏测试的快速网页仪表板。 | Typed SDK | 完整 | |
| 大约5分钟 | 跨平台的过敏测试移动应用。 | Typed SDK | 完整 | |
| 少于5分钟 | 用于过敏测试的服务器渲染网页应用。 | Typed SDK | 完整 | |
| 约3-5分钟 | 轻量级的过敏测试网页集成。 | Typed SDK | 完整 | |
| 快速(5分钟)设置 | 用于过敏测试的原生Android应用。 | Typed SDK | 完整 | |
| 约5分钟 | 用于过敏测试的原生iOS应用。 | Typed SDK | 完整 | |
| 大约5分钟 | Reactive过敏测试网页用户界面。 | Typed SDK | 完整 | |
| 少于5分钟 | 用于过敏测试的企业网页应用。 | Typed SDK | 完整 | |
| 少于2分钟 | 灵活的GraphQL API用于过敏测试。 | GraphQL API | 完整 | |
| 快速(2分钟)设置 | REST API过敏测试集成。 | REST API | 完整 | |
| 约3分钟 | 用于过敏测试的服务器端PHP后台。 | REST API | 完整 | |
| 大约5分钟 | .NET过敏测试后台。 | Typed SDK | 完整 |
设置时间反映了从项目开始到首次成功测试记录和免疫治疗记录管理所需的预期持续时间,使用此模板。
常见问题
关于使用此模板构建过敏测试后端的常见问题。