|
@ -116,16 +116,24 @@ public class PresModeAdapter {
|
|
|
while (iterator.hasNext()){
|
|
|
JSONArray modeArray = (JSONArray) iterator.next();
|
|
|
JSONObject mode = (JSONObject) modeArray.get(0);
|
|
|
Prescription p = new Prescription();
|
|
|
p.setCode(mode.getInteger("RECIPE_NO")+"");
|
|
|
p.setCreateTime(mode.getDate("APPLY_TIME"));
|
|
|
JSONObject p = new JSONObject();
|
|
|
p.put("code",mode.getInteger("RECIPE_NO")+"");
|
|
|
p.put("createTime",mode.getString("APPLY_TIME"));
|
|
|
|
|
|
Doctor doctor = zyDictService.getDoctByJw(mode.getString("APPLY_OPERATOR"),mode.getString("HEALTH_ORG_CODE"));
|
|
|
// "APPLY_OPERATOR_NAME": 开单医生姓名","HEALTH_ORG_CODE": "开单机构编码",
|
|
|
p.setDoctor(doctor.getCode());
|
|
|
p.setDoctorName(doctor.getName());
|
|
|
p.setHospitalName(doctor.getHospitalName());
|
|
|
p.setHospital(doctor.getHospital());
|
|
|
if(doctor!=null){
|
|
|
p.put("doctor",doctor.getCode());
|
|
|
p.put("doctorName",doctor.getName());
|
|
|
p.put("hospitalName",doctor.getHospitalName());
|
|
|
p.put("hospital",doctor.getHospital());
|
|
|
}else{
|
|
|
p.put("doctor",mode.getString("APPLY_OPERATOR"));
|
|
|
p.put("hospitalName",mode.getString("APPLY_OPERATOR_NAME"));
|
|
|
//p.setHospitalName(doctor.getHospitalName());
|
|
|
p.put("hospital",mode.getString("HEALTH_ORG_CODE"));
|
|
|
}
|
|
|
|
|
|
|
|
|
PrescriptionDiagnosis diagnosis = new PrescriptionDiagnosis();
|
|
|
diagnosis.setCode(mode.getString("DIAGNOSE_CODE"));//诊断代码
|
|
@ -177,7 +185,7 @@ public class PresModeAdapter {
|
|
|
prescriptionInfo.setPhysicSkinTestName(info.getString("PHYSIC_SKIN_TEST_NAME"));//皮试类型名称
|
|
|
prescriptionInfos.add(prescriptionInfo);
|
|
|
}
|
|
|
p.setPrescriptionInfo(prescriptionInfos);
|
|
|
p.put("prescriptionInfo",prescriptionInfos);
|
|
|
rs.add(p);
|
|
|
}
|
|
|
return rs;
|