|
@ -1,13 +1,11 @@
|
|
|
package com.yihu.jw.hospital.endpoint.prescription;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.yihu.jw.doctor.service.excel.DoctorWorkTimeExcelReader;
|
|
|
import com.yihu.jw.doctor.service.excel.DoctorWorkTimeMainExcelDO;
|
|
|
import com.yihu.jw.entity.base.doctor.BaseDoctorDO;
|
|
|
import com.yihu.jw.entity.hospital.message.SystemMessageDO;
|
|
|
import com.yihu.jw.entity.hospital.prescription.WlyyOutpatientDO;
|
|
|
import com.yihu.jw.entity.hospital.prescription.WlyyPrescriptionCheckDO;
|
|
|
import com.yihu.jw.entity.hospital.prescription.WlyyPrescriptionDO;
|
|
|
import com.yihu.jw.entity.hospital.prescription.WlyyPrescriptionDiagnosisDO;
|
|
|
import com.yihu.jw.entity.hospital.prescription.*;
|
|
|
import com.yihu.jw.hospital.prescription.dao.OutpatientDao;
|
|
|
import com.yihu.jw.hospital.prescription.service.InspectionService;
|
|
|
import com.yihu.jw.hospital.prescription.service.PrescriptionLogService;
|
|
@ -1404,5 +1402,44 @@ public class PrescriptionEndpoint extends EnvelopRestEndpoint {
|
|
|
return ObjEnvelop.getError(e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 创建电子病历
|
|
|
* @param emrJson
|
|
|
* @return
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
@PostMapping(value= BaseHospitalRequestMapping.Prescription.saveEmr)
|
|
|
@ApiOperation("创建电子病历")
|
|
|
public ObjEnvelop saveEmr(
|
|
|
@ApiParam(name = "emrJson", value = "emrJson", required = true)
|
|
|
@RequestParam(required = true)String emrJson) throws Exception {
|
|
|
try {
|
|
|
WlyyPrescriptionEmrDO emrDO = objectMapper.readValue(emrJson,WlyyPrescriptionEmrDO.class);
|
|
|
return ObjEnvelop.getSuccess("ok",prescriptionService.saveEmr(emrDO));
|
|
|
} catch (Exception e) {
|
|
|
return ObjEnvelop.getError(e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 查询电子病历
|
|
|
* @param prescriptionId
|
|
|
* @return
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
@GetMapping(value= BaseHospitalRequestMapping.Prescription.findEmrByPrescriptionId)
|
|
|
@ApiOperation("查询电子病历")
|
|
|
public ObjEnvelop findByPrescriptionId(
|
|
|
@ApiParam(name = "prescriptionId", value = "prescriptionId", required = true)
|
|
|
@RequestParam(required = true)String prescriptionId) throws Exception {
|
|
|
try {
|
|
|
return ObjEnvelop.getSuccess("ok",prescriptionService.findByPrescriptionId(prescriptionId));
|
|
|
} catch (Exception e) {
|
|
|
return ObjEnvelop.getError(e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
}
|