"use strict";const e=require("../../common/vendor.js"),t={__name:"case-detail",setup(t){const a=e.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:!0},{id:2,name:"血常规检查",time:"2024-03-25 10:30",result:"各项指标正常",hasReport:!0}],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"}),o=()=>{e.index.navigateTo({url:`/pages/records/reports?caseId=${a.value.id}`})},i=()=>{e.index.navigateTo({url:`/pages/appointment/doctor?departmentId=${a.value.departmentId}&hospitalId=${a.value.hospitalId}`})};e.onMounted(()=>{var e,t;const a=getCurrentPages(),o=null==(t=null==(e=a[a.length-1].$page)?void 0:e.options)?void 0:t.id;n(o)});const n=e=>{console.log("加载病例详情:",e)};return(t,n)=>({a:a.value.hospitalLogo,b:e.t(a.value.hospitalName),c:e.t(a.value.departmentName),d:e.t(a.value.date),e:e.t(a.value.visitType),f:e.t(a.value.patientName),g:e.t(a.value.gender),h:e.t(a.value.age),i:e.t(a.value.cardNo),j:e.t(a.value.complaint),k:e.t(a.value.presentIllness),l:e.t(a.value.pastHistory),m:e.f(a.value.examinations,(t,a,o)=>({a:e.t(t.name),b:e.t(t.time),c:e.t(t.result),d:a,e:e.o(a=>(t=>{t.hasReport&&e.index.navigateTo({url:`/pages/records/report?id=${t.id}`})})(t),a)})),n:e.f(a.value.diagnoses,(t,a,o)=>({a:e.t(t.type),b:e.t(t.name),c:a})),o:e.t(a.value.treatment),p:e.t(a.value.advice),q:e.f(a.value.prescriptions,(t,a,o)=>({a:e.t(t.name),b:e.t(t.specification),c:e.t(t.dosage),d:e.t(t.frequency),e:e.t(t.quantity),f:a})),r:e.t(a.value.prescriptionAmount),s:a.value.doctorAvatar,t:e.t(a.value.doctorName),v:e.t(a.value.doctorTitle),w:e.t(a.value.doctorSpecialty),x:e.o(o),y:e.o(i),z:e.gei(t,"")})}};wx.createPage(t);