|
@ -622,6 +622,8 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
" o.consumer as \"consumer\"," +
|
|
|
" o.consumer_name as \"consumerName\"," +
|
|
|
" o.consumer_mobile as \"consumerMobile\", "+
|
|
|
" o.disease_code as \"diseaseCode\", "+
|
|
|
" o.disease_name as \"diseaseName\", "+
|
|
|
" o.fee as \"fee\", ";
|
|
|
if ("xm_ykyy_wx".equals(wechatId)) {
|
|
|
if (flag){
|
|
@ -745,6 +747,8 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
rs.put("address", basePatientDO.getAddress());
|
|
|
rs.put("mobile", basePatientDO.getMobile());
|
|
|
rs.put("birthday", DateUtil.dateToStr(basePatientDO.getBirthday(), "yyyy-MM-dd"));
|
|
|
rs.put("diseaseCode",outpatientDO.getDiseaseCode());
|
|
|
rs.put("diseaseName",outpatientDO.getDiseaseName());
|
|
|
String hisPatient="";
|
|
|
PatientMappingDO patientMappingDO = patientMappingDao.findByPatient(basePatientDO.getId());
|
|
|
if(null!=patientMappingDO){
|
|
@ -2532,8 +2536,8 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
* @return
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
public List<Map<String,Object>> getICD10(String pyKey) throws Exception {
|
|
|
String sql = "select code,name,py_code,d_code from dict_icd10 where 1=1 ";
|
|
|
public List<Map<String,Object>> getICD10(String pyKey,String flag) throws Exception {
|
|
|
String sql = "select code,name,py_code,d_code from dict_icd10 where 1=1 and flag ='"+flag+"' ";
|
|
|
if (StringUtils.isNoneBlank(pyKey)){
|
|
|
sql += " and (py_code like '%"+pyKey+"%' or name like '%"+pyKey+"%') ";
|
|
|
}
|
|
@ -2695,7 +2699,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
* @param diagnosisJson
|
|
|
* @return
|
|
|
*/
|
|
|
public Map<String, Object> makeDiagnosis(String outPatientId,String prescriptionId, String advice, String type, String infoJsons, String diagnosisJson, String inspectionJson, String emrJson,String hisId) throws Exception {
|
|
|
public Map<String, Object> makeDiagnosis(String outPatientId,String prescriptionId, String advice, String type, String infoJsons, String diagnosisJson, String inspectionJson, String emrJson,String hisId,String diseaseCode,String diseaseName) throws Exception {
|
|
|
|
|
|
Map<String, Object> result = new HashedMap();
|
|
|
|
|
@ -2703,6 +2707,9 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
WlyyOutpatientDO outpatientDO = outpatientDao.findOne(outPatientId);
|
|
|
//设置医嘱
|
|
|
outpatientDO.setAdvice(advice);
|
|
|
//设置特殊病种
|
|
|
outpatientDO.setDiseaseCode(diseaseCode);
|
|
|
outpatientDO.setDiseaseName(diseaseName);
|
|
|
|
|
|
//========================处方操作=============================================================
|
|
|
//创建处方记录
|
|
@ -3625,6 +3632,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
" p.real_order AS \"realOrder\" ,"+
|
|
|
" p.origin_real_order AS \"originRealOrder\"," +
|
|
|
" o.patient_name as \"patientName\", "+
|
|
|
" o.doctor_name as \"doctorName\", "+
|
|
|
" p.check_status as \"checkStatus\", "+
|
|
|
" p.check_reason as \"checkReason\" "+
|
|
|
" FROM " +
|
|
@ -7093,7 +7101,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
}
|
|
|
WlyyHospitalSysDictDO hospitalSysDictDO = hospitalSysDictDao.findById("isSort");//isSort:1按照后台顺序,0按照系统排序
|
|
|
if (hospitalSysDictDO!=null&&hospitalSysDictDO.getDictValue().equalsIgnoreCase("1")){
|
|
|
sql +=" and d.del='1' order by d.sort asc ";
|
|
|
sql +=" and d.del='1' order by d.sort,d.id asc ";
|
|
|
}else {
|
|
|
if("xm_ykyy_wx".equalsIgnoreCase(wechatId)){
|
|
|
if (flag){
|
|
@ -14611,6 +14619,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
wlyyHisSettleVO.setOutChargeNo(outChargeNo);
|
|
|
wlyyHisSettleVO.setOrgCode("6");
|
|
|
wlyyHisSettleVO.setXyzf00("0");
|
|
|
wlyyHisSettleVO.setBqbm00(ylzMedicalRelationDO.getDiseaseCode());
|
|
|
wlyyHisSettleVO.setChannelType("09");
|
|
|
wlyyHisSettleVO.setDjlsh0(ylzMedicalRelationDO.getBillSerial());
|
|
|
wlyyHisSettleVO.setMzlsh0(ylzMedicalRelationDO.getInsuranceSerial());
|