# spring-backend **Repository Path**: ccquan/spring-backend ## Basic Information - **Project Name**: spring-backend - **Description**: 智能药盒后端代码 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-07-30 - **Last Updated**: 2021-07-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 数据库关系 ### 用户信息表 ```json { "User": { "id": "d1060e1c-09d5-4f4e-8093-69e493dd0989", "wxOpenid":"NEbgHHAlp7xiSA445x9VtnC5JZYnMlFYNAjkr1X1pg", "verifyPhone": "13800138000", "firstJoinDate": "2020-11-01T15:14:20.861Z+08:00", "lastLoginDate": "2020-11-01T15:14:20.861Z+08:00", "deleteStatus": false }, "HealthCard": { "identityNumber": "440101199909092467", "name": "陈小兰", "birth": "1999-09-09", "sex": "FEMALE", "weight": 51.0, "height": 173.0, "bloodType": "O", "phone": "13800138000", "history": "无", "allergic": "酒精", "sosPhoneMaster": "18900188000", "sosRelationMaster": "父女", "sosPhoneReserve": "13922189000", "sosRelationReserve": "母女" }, "Devices": [ { "uuid": "f809a18b-6356-4599-a832-1407d0685e2d", "type": "R1D", "firstLaunchTime":"2020-11-01T16:10:20.151Z+08:00", "firstAckTime": "2020-11-01T16:15:25.151Z+08:00", "lastConnectTime":"2020-11-01T16:15:25.151Z+08:00", "connectTimes": 1, "lastGpsLng": 23.178357, "lastGpsLat": 113.327473, "lastGpsUpdateTime":"2020-11-01T16:13:25.151Z+08:00", "remark": "自用的药盒~", "slotSize": 7, "slots": [ [ { "method": "口服", "certificateCode": "H11022467", "dose": "1包" } ], [ { "method": "口服", "certificateCode": "H11022467", "dose": "2包" } ], [ { "method": "口服", "certificateCode": "H11022467", "dose": "2包" } ], [] ] }, { "uuid": "f809a18b-6356-4599-a832-1407d0685e2d", "type": "R1D", "firstLaunchTime":"2020-11-01T16:10:24.253Z+08:00", "firstAckTime": "2020-11-01T16:15:27.966Z+08:00", "lastConnectTime":"2020-11-01T16:15:27.966Z+08:00", "connectTimes": 1, "lastGpsLng": 23.178357, "lastGpsLat": 113.327473, "lastGpsUpdateTime":"2020-11-01T16:13:24.543Z+08:00", "remark": "备用的药盒~", "slotSize": 7, "slots": [] } ], "Recipe": { "exhort": "少吃刺激食物,多喝水,多运动。复查时间:2021/01/05", "reviewTime": "2020-01-05", "inventory": [ { "certificateCode": "H11022467", "medicineTimes": 3, "method": "口服", "medicineUnit": "次/天", "medicineDose": 1, "record": false, "moreTips": "每一天服药的第一次温水泡服一包,其余温水泡服两包" } ] } } ``` --- ### 字段介绍 ```json { "User": { // 用户信息 "id": "用户Id", "wxOpenid":"微信小程序内唯一OpenId", "verifyPhone": "使用者手机号码", "firstJoinDate": "首次加入平台时间", "lastLoginDate": "最后一次登录时间", "deleteStatus": "删除状态 0 为正常,1 为删除" }, "HealthCard": { // 健康卡 "identityNumber": "患者身份证号", "name": "患者姓名", "birth": "患者出生日", "sex": "患者性别", "weight": "患者体重", "height": "患者身高", "bloodType": "患者血型", "phone": "患者手机号码", "history": "患者既往史", "allergic": "患者过敏史", "sosPhoneMaster": "主要紧急呼叫号码", "sosRelationMaster": "患者与主要紧急呼唤关系", "sosPhoneReserve": "备用紧急呼叫号码", "sosRelationReserve": "患者与备用紧急呼唤关系" }, "Devices": [ // 设备列表 { // 设备信息 "uuid": "设备唯一Id", "type": "设备型号", "firstLaunchTime":"设备启动时间", "firstAckTime": "设备首次确认时间", "lastConnectTime":"设备最后一次连接时间", "connectTimes": "设备连接通讯次数", "lastGpsLng": "最后一次GPS定位维度", "lastGpsLat": "最后一次GPS定位经度", "lastGpsUpdateTime":"最后一次GPS定位时间", "remark": "用户备注", "slotSize": "药仓容量", "slots": [ // 药仓信息 [ { "method": "服用方式", "certificateCode": "国药准字", "dose": "服用数量" } ], [], [], [] ] } ], "Recipe": { // 处方 "exhort": "医生叮嘱", "reviewTime": "复查(复诊)时间", "inventory": [ // 处方列表 { // 用药细节信息 "certificateCode": "国字准号", "medicineTimes": "用药次数 (与medicineUnit有关系) 例如: 3", "method": "服药方式", "medicineUnit": "用药次数单位 (与medicineTimes有关系) 例如:次/天", "medicineDose": "用药专业剂量", "record": "是否需要视频督导", "moreTips": "用药特别叮嘱" } ] } } ``` --- ### 用户服药记录 ```json { "UserId": "d1060e1c-09d5-4f4e-8093-69e493dd0989", "Logging": [ { "date": "2021-01", "info": [ { "offset": 28880, "msg": "打开了XXX药仓,服用XXX药物" }, { "offset": 28920, "msg": "关闭了XXX药仓,完成XXX药物服用" } ] } ] } ``` ### 字段介绍 ```json { "UserId": "设备Id", "Logging": [ { "date": "记录年月 例如:2021-01", "info": [ { "offset": "从月偏移秒数 (例如:28800,代表 2021-01-01T08:00:00.000)", "msg": "服药信息 例如:打开了XXX药仓,服用XXX药物" }, { "offset": "从月偏移秒数 (例如:28800,代表 2021-01-01T08:00:00.000)", "msg": "服药信息 例如:关闭了XXX药仓,完成XXX药物服用" } ] } ] } ``` ---