| | |
| | | if (rows.length > 0) { |
| | | const user = rows[0]; |
| | | const response = { |
| | | code: "1", |
| | | result:[ { |
| | | |
| | | patientId: user.code, |
| | | fullName: user.patient_name, |
| | | gender: user.patient_gender, |
| | |
| | | examDoctor:'', |
| | | examDept:"", |
| | | diagnosisDoctor:'' |
| | | }], |
| | | msg: "success" |
| | | |
| | | }; |
| | | res.json(response); |
| | | } else { |
| | |
| | | * PostCheckExam 病人信息及检测结果以JSON的形式回传至服务器 |
| | | */ |
| | | app.post('/PostCheckExam',async(req,res)=>{ |
| | | const mode=req.body |
| | | // 查看body参数 |
| | | const body=req.body |
| | | |
| | | if(mode){ |
| | | logHttps(mode) |
| | | }else{ |
| | | mode.action='hahhaha' |
| | | logHttps(mode) |
| | | } |
| | | res.status(400).json({ retCode: "-1", msg: "kankan" }); |