"use strict";
|
const common_vendor = require("../../common/vendor.js");
|
const _sfc_main = {
|
__name: "case-detail",
|
setup(__props) {
|
const caseDetail = common_vendor.ref({
|
id: 1,
|
hospitalName: "青岛镜湖医院",
|
hospitalLogo: "/static/hospital/kiang-wu.jpg",
|
departmentName: "心内科",
|
date: "2024-03-25 09:30",
|
visitType: "门诊",
|
patientName: "张三",
|
gender: "男",
|
age: 45,
|
cardNo: "1234567890",
|
complaint: "胸闷、气短2天",
|
presentIllness: "患者2天前无明显诱因出现胸闷、气短,活动后加重...",
|
pastHistory: "高血压病史5年,长期服用降压药物...",
|
examinations: [
|
{
|
id: 1,
|
name: "心电图检查",
|
time: "2024-03-25 10:00",
|
result: "窦性心律,心率75次/分...",
|
hasReport: true
|
},
|
{
|
id: 2,
|
name: "血常规检查",
|
time: "2024-03-25 10:30",
|
result: "各项指标正常",
|
hasReport: true
|
}
|
],
|
diagnoses: [
|
{ type: "初步诊断", name: "冠心病" },
|
{ type: "并发症", name: "高血压2级" }
|
],
|
treatment: "1. 硝酸甘油片含服\n2. 阿司匹林肠溶片口服",
|
advice: "1. 建议定期复查\n2. 控制饮食\n3. 规律服药",
|
prescriptions: [
|
{
|
name: "硝酸甘油片",
|
specification: "0.5mg*50片/盒",
|
dosage: "遵医嘱",
|
frequency: "需要时含服",
|
quantity: 1
|
},
|
{
|
name: "阿司匹林肠溶片",
|
specification: "100mg*30片/盒",
|
dosage: "1片",
|
frequency: "每日1次",
|
quantity: 2
|
}
|
],
|
prescriptionAmount: 156.5,
|
doctorName: "张医生",
|
doctorTitle: "主任医师",
|
doctorSpecialty: "擅长:冠心病、心律失常、高血压等心血管疾病的诊治",
|
doctorAvatar: "/static/doctor/doctor1.jpg"
|
});
|
const viewReport = (exam) => {
|
if (exam.hasReport) {
|
common_vendor.index.navigateTo({
|
url: `/pages/records/report?id=${exam.id}`
|
});
|
}
|
};
|
const viewAllReports = () => {
|
common_vendor.index.navigateTo({
|
url: `/pages/records/reports?caseId=${caseDetail.value.id}`
|
});
|
};
|
const bookAgain = () => {
|
common_vendor.index.navigateTo({
|
url: `/pages/appointment/doctor?departmentId=${caseDetail.value.departmentId}&hospitalId=${caseDetail.value.hospitalId}`
|
});
|
};
|
common_vendor.onMounted(() => {
|
var _a, _b;
|
const pages = getCurrentPages();
|
const page = pages[pages.length - 1];
|
const caseId = (_b = (_a = page.$page) == null ? void 0 : _a.options) == null ? void 0 : _b.id;
|
loadCaseDetail(caseId);
|
});
|
const loadCaseDetail = (id) => {
|
common_vendor.index.__f__("log", "at pages/my/case-detail.vue:282", "加载病例详情:", id);
|
};
|
return (_ctx, _cache) => {
|
return {
|
a: caseDetail.value.hospitalLogo,
|
b: common_vendor.t(caseDetail.value.hospitalName),
|
c: common_vendor.t(caseDetail.value.departmentName),
|
d: common_vendor.t(caseDetail.value.date),
|
e: common_vendor.t(caseDetail.value.visitType),
|
f: common_vendor.t(caseDetail.value.patientName),
|
g: common_vendor.t(caseDetail.value.gender),
|
h: common_vendor.t(caseDetail.value.age),
|
i: common_vendor.t(caseDetail.value.cardNo),
|
j: common_vendor.t(caseDetail.value.complaint),
|
k: common_vendor.t(caseDetail.value.presentIllness),
|
l: common_vendor.t(caseDetail.value.pastHistory),
|
m: common_vendor.f(caseDetail.value.examinations, (exam, index, i0) => {
|
return {
|
a: common_vendor.t(exam.name),
|
b: common_vendor.t(exam.time),
|
c: common_vendor.t(exam.result),
|
d: index,
|
e: common_vendor.o(($event) => viewReport(exam), index)
|
};
|
}),
|
n: common_vendor.f(caseDetail.value.diagnoses, (diagnosis, index, i0) => {
|
return {
|
a: common_vendor.t(diagnosis.type),
|
b: common_vendor.t(diagnosis.name),
|
c: index
|
};
|
}),
|
o: common_vendor.t(caseDetail.value.treatment),
|
p: common_vendor.t(caseDetail.value.advice),
|
q: common_vendor.f(caseDetail.value.prescriptions, (medicine, index, i0) => {
|
return {
|
a: common_vendor.t(medicine.name),
|
b: common_vendor.t(medicine.specification),
|
c: common_vendor.t(medicine.dosage),
|
d: common_vendor.t(medicine.frequency),
|
e: common_vendor.t(medicine.quantity),
|
f: index
|
};
|
}),
|
r: common_vendor.t(caseDetail.value.prescriptionAmount),
|
s: caseDetail.value.doctorAvatar,
|
t: common_vendor.t(caseDetail.value.doctorName),
|
v: common_vendor.t(caseDetail.value.doctorTitle),
|
w: common_vendor.t(caseDetail.value.doctorSpecialty),
|
x: common_vendor.o(viewAllReports),
|
y: common_vendor.o(bookAgain),
|
z: common_vendor.gei(_ctx, "")
|
};
|
};
|
}
|
};
|
wx.createPage(_sfc_main);
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/my/case-detail.js.map
|