Files
vueapp/dist/assets/pages-chat-chat.C6x0yrXE.js
T

2 lines
14 KiB
JavaScript
Raw Normal View History

import{d as e,a as l,b as a,c as s,B as t,o,e as n,f as i,w as c,i as d,j as u,t as r,l as m,m as p,F as f,k as _,g as h,n as g,q as b,y as v,z as k,x,S as y,u as V,I as C,J as $}from"./index-DW9fDEMX.js";import{_ as F}from"./config-doctor.TgARj_nM.js";import I from"./pages-diagnosis-diagnosis.CYLO22Hl.js";import{_ as j}from"./_plugin-vue_export-helper.BCo6x5W8.js";import"./pages-treatment-treatment.d2FGaPvO.js";import"./pages-assessment-assessment.BrVJ3T4X.js";const w={id:"case-1006004",title:"æŒç»­èƒ¸ç—›3å°æ—¶",patientName:"陈先生",gender:"ç”·",age:60,department:"心血管内科",scene:"ä½é™¢éƒ¨",caseNo:"1006004",tone:"orange",mode:"training"};const P=j(e({__name:"chat",props:{caseItem:{}},emits:["open-settings","open-profile","go-home"],setup(e,{emit:j}){const P=e,T=j,U=l({patient:{name:"陈先生",gender:"ç”·",age:60,department:"心血管内科",chiefComplaint:"æŒç»­èƒ¸ç—›3å°æ—¶"},stages:[{key:"history",label:"ç—…å²é‡‡é›†",active:!0},{key:"diagnosis",label:"åˆæ­¥è¯Šæ–­",active:!1},{key:"treatment",label:"治疗方案",active:!1}],messages:[]}),N=a(""),q=a(!1),D=a(0),S=a(""),A=a(!1),O=a(!1),H=a(!1),B=a(!1);let X=null;const z=[{name:"心电图",result:"检查结果:床边12导è”心电图æç¤ºçª¦æ€§å¿ƒå¾‹ï¼ŒIIã€IIIã€aVF å¯¼è” ST 段抬高,æç¤ºä¸‹å£æ€¥æ€§å¿ƒè‚Œæ¢—æ­»å¯èƒ½ã€‚"},{name:"胸部X线",result:"检查结果:胸部Xçº¿æœªè§æ˜Žæ˜¾æ°”胸或纵隔明显增宽,心影大å°åŸºæœ¬æ­£å¸¸ï¼Œä¸èƒ½æŽ’除急性冠脉综åˆå¾ã€‚"},{name:"心è„超声",result:"检查结果:心è„超声æç¤ºå·¦å®¤ä¸‹å£èŠ‚æ®µæ€§è¿åЍå‡ä½Žï¼Œæœªè§å¤§é‡å¿ƒåŒ…积液,需结åˆå¿ƒç”µå›¾åŠå¿ƒè‚Œæ ‡å¿—物判断。"},{name:"冠脉CTA",result:"检查结果:冠脉CTAæç¤ºå³å† çŠ¶åŠ¨è„‰è¿‘æ®µé‡åº¦ç‹­çª„/闭塞å¯èƒ½ï¼Œå»ºè®®ç»“åˆæ€¥è¯Šä»‹å…¥è¯„估。"}],G=l({temperature:"",pulse:"",respiration:"",bloodPressure:"",spo2:"",complexion:"",examFinding:"",otherFinding:""}),J=s((()=>U.patient.chiefComplaint.includes("胸痛")?"胸痛":U.patient.chiefComplaint.slice(0,6)));function Q(){B.value=!1,H.value=!0}function R(){H.value=!1,B.value=!0}function E(){const e=[G.temperature.trim()?`体温 ${G.temperature.trim()}℃`:"",G.pulse.trim()?`心率 ${G.pulse.trim()}次/分`:"",G.respiration.trim()?`å‘¼å¸ ${G.respiration.trim()}次/分`:"",G.bloodPressure.trim()?`血压 ${G.bloodPressure.trim()}mmHg`:"",G.spo2.trim()?`血氧 ${G.spo2.trim()}%`:"",G.complexion.trim()?`æ„识/é¢è‰²ï¼š${G.complexion.trim()}`:"",G.examFinding.trim()?`心肺/腹部查体:${G.examFinding.trim()}`:"",G.otherFinding.trim()?`å…¶ä»–å‘现:${G.otherFinding.trim()}`:""].filter(Boolean);if(0===e.length)return void function(e){X&&clearTimeout(X);S.value=e,A.value=!0,b({title:e,icon:"none"}),X=setTimeout((()=>{A.value=!1}),2200)}("请至少录入一项体格检查");const l=Date.now(),a=[{id:`doctor-physical-${l}`,role:"doctor",content:`录入体格检查:${e.join("ï¼›")}`,label:"我"},{id:`mentor-physical-${l+1}`,role:"mentor",content:K(),label:"AI助手"}];U.messages.push(...a),B.value=!1,G.temperature="",G.pulse="",G.respiration="",G.bloodPressure="",G.spo2="",G.complexion="",G.examFinding="",G.otherFinding="",M()}function K(){const e=Number(G.pulse),l=Number(G.respiration),a=Number(G.spo2),s=Number(G.temperature),t=[];e>=100&&t.push("心率åå¿«"),l>=22&&t.push("呼å¸é¢‘率åå¿«"),a>0&&a<95&&t.push("血氧å低"),s>=37.3&&t.push("体温å高"),(G.complexion.includes("è‹ç™½")||G.complexion.includes("出汗"))&&t.push(¢è‰²/出汗æç¤ºæ€¥æ€§ç—…容"),(G.otherFinding.includes("血压差")||G.otherFinding.includes(Œä¾§"))&&t.push(Œä¾§è¡€åŽ‹æˆ–è„‰æå·®å¼‚需警惕主动脉夹层");return`${t.length?`å·²è®°å½•ä½“æ ¼æ£€æŸ¥ã€‚å½“å‰æç¤ºï¼š${t.join("ã€")}。`:"å·²è®°å½•ä½“æ ¼æ£€æŸ¥ï¼Œæš‚æœªè§æ˜Žç¡®å¼‚常体å¾ã€‚"}建议结åˆèƒ¸ç—›æ€§è´¨ã€å¿ƒç”µå›¾åŠå¿ƒè‚Œæ ‡å¿—物进一步判断,并æŒç»­ç›‘测生命体å¾å˜åŒ–。`}function L(){const e=N.value.trim();e&&!q.value&&(q.value=!0,N.value="",function(e){const l=e.trim(),a=l.includes("出冷汗")||l.includes(¶å¿ƒ")?"æœï¼Œåˆšæç¼å¾åŽå®³çšæååºäºä¸èº«å·æ±ï¼Œè¿˜æœç