tmp
This commit is contained in:
@@ -110,7 +110,7 @@ class HandlerEscortRecord {
|
||||
}
|
||||
|
||||
const updatedRecord = await DBModel.EscortRecord.updateRecord(id, {
|
||||
"escort.status": status,
|
||||
"status": status,
|
||||
});
|
||||
|
||||
if (!updatedRecord) {
|
||||
|
||||
@@ -39,6 +39,8 @@ const EscortRecordSchema = mongoose.Schema(
|
||||
mobile: { type: String, default: "", unique: true, index: true, comment: "患者联系电话" },
|
||||
sex: { type: String, enum: ["male", "female"], comment: "患者性别" },
|
||||
age: { type: Number, default: 0, comment: "患者年龄" },
|
||||
weight: { type: Number, default: 0, comment: "患者体重(kg)" },
|
||||
height: { type: Number, default: 0, comment: "患者身高(cm)" },
|
||||
idnumber: { type: String, default: "", comment: "患者身份证号" },
|
||||
},
|
||||
|
||||
@@ -48,6 +50,19 @@ const EscortRecordSchema = mongoose.Schema(
|
||||
escort: {
|
||||
serviceId: { type: Number, default: -1, comment: "陪诊服务ID" },
|
||||
serviceName: { type: String, default: "", comment: "陪诊服务名称" },
|
||||
sexRequirement: { type: String, enum: ["none", "male", "female"], comment: "陪诊员性别要求" },
|
||||
},
|
||||
|
||||
/**
|
||||
* 陪诊员信息 - 为患者提供服务的陪诊员
|
||||
*/
|
||||
attendant: {
|
||||
id: {
|
||||
type: mongoose.Schema.Types.ObjectId, index: true, comment: "陪诊员用户ID"
|
||||
},
|
||||
name: { type: String, default: "", comment: "陪诊员姓名" },
|
||||
sex: { type: String, enum: ["none", "male", "female"], comment: "陪诊员性别" },
|
||||
mobile: { type: String, default: "", comment: "陪诊员联系电话" },
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -72,20 +87,6 @@ const EscortRecordSchema = mongoose.Schema(
|
||||
duration: { type: Number, default: 60, comment: "陪诊时长(分钟)" },
|
||||
},
|
||||
|
||||
/**
|
||||
* 陪诊员信息 - 为患者提供服务的陪诊员
|
||||
*/
|
||||
attendant: {
|
||||
id: {
|
||||
type: mongoose.Schema.Types.ObjectId,
|
||||
ref: "user",
|
||||
index: true,
|
||||
comment: "陪诊员用户ID"
|
||||
},
|
||||
name: { type: String, default: "", comment: "陪诊员姓名" },
|
||||
sex: { type: String, enum: ["none", "male", "female"], comment: "陪诊员性别" },
|
||||
},
|
||||
|
||||
/**
|
||||
* 费用信息 - 服务费用相关
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user