|
@ -638,7 +638,21 @@ public class JwPrescriptionService {
|
|
|
|
|
|
//控制目标
|
|
|
followupContent7.put("CONTROL_DATE", json.getString("CONTROL_DATE"));//控制日期 V04
|
|
|
followupContent7.put("CONTROL_CONSTITUTOR", json.getString("CONTROL_CONSTITUTOR"));//制定者 V05
|
|
|
|
|
|
String CONTROL_CONSTITUTOR = json.getString("CONTROL_CONSTITUTOR");
|
|
|
if(StringUtils.isNoneBlank(CONTROL_CONSTITUTOR) ){
|
|
|
if(jwdoctorCode.equals(CONTROL_CONSTITUTOR)){
|
|
|
followupContent7.put("CONTROL_CONSTITUTOR", doctor.getName());//制定者姓名 V05
|
|
|
followupContent7.put("CONTROL_CONSTITUTOR_DOCTORCODE", doctor.getCode());//制定者本地CODE V05
|
|
|
followupContent7.put("CONTROL_CONSTITUTOR_JWDOCTORCODE", jwdoctorCode);//制定者本地CODE V05
|
|
|
}else{
|
|
|
Doctor control_doctor = doctorDao.findMappingDoctor(CONTROL_CONSTITUTOR, jworgCode);
|
|
|
followupContent7.put("CONTROL_CONSTITUTOR", control_doctor.getName());//制定者姓名 V05
|
|
|
followupContent7.put("CONTROL_CONSTITUTOR_DOCTORCODE", control_doctor.getCode());//制定者本地CODE V05
|
|
|
followupContent7.put("CONTROL_CONSTITUTOR_JWDOCTORCODE", CONTROL_CONSTITUTOR);//制定者本地CODE V05
|
|
|
}
|
|
|
}
|
|
|
|
|
|
followupContent7.put("CONTROL_BP_U", json.getString("CONTROL_BP_U"));//血压收缩压 V06
|
|
|
followupContent7.put("CONTROL_BP_D", json.getString("CONTROL_BP_D"));//血压舒张压 V07
|
|
|
followupContent7.put("CONTROL_BS_FPG", json.getString("CONTROL_BS_FPG"));//空腹血糖 V08
|
|
@ -933,17 +947,22 @@ public class JwPrescriptionService {
|
|
|
|
|
|
//控制目标操作者CODE
|
|
|
String CONTROL_CONSTITUTOR_DOCTORCODE = "";
|
|
|
|
|
|
//基卫控制目标操作者
|
|
|
if(followupResultMap.containsKey("CONTROL_CONSTITUTOR")){
|
|
|
|
|
|
String CONTROL_CONSTITUTOR = "";
|
|
|
if(followupResultMap.containsKey("CONTROL_CONSTITUTOR_DOCTORCODE")){
|
|
|
|
|
|
CONTROL_CONSTITUTOR_DOCTORCODE = followupResultMap.get("CONTROL_CONSTITUTOR_DOCTORCODE");
|
|
|
CONTROL_CONSTITUTOR = doctorMappingDao.findByDocotrCodeAndJwDoctorHospital(CONTROL_CONSTITUTOR_DOCTORCODE, followup.getOrgCode());
|
|
|
|
|
|
if(followupResultMap.containsKey("CONTROL_CONSTITUTOR_JWDOCTORCODE")){
|
|
|
followupResultMap.put("CONTROL_CONSTITUTOR",followupResultMap.get("CONTROL_CONSTITUTOR_JWDOCTORCODE"));//基卫控制目标操作者
|
|
|
}else{
|
|
|
//基卫控制目标操作者,判断是否有控制者名称或者控制者CODE
|
|
|
if(followupResultMap.containsKey("CONTROL_CONSTITUTOR") || followupResultMap.containsKey("CONTROL_CONSTITUTOR_DOCTORCODE")){
|
|
|
|
|
|
String CONTROL_CONSTITUTOR = "";
|
|
|
if(followupResultMap.containsKey("CONTROL_CONSTITUTOR_DOCTORCODE")){
|
|
|
|
|
|
CONTROL_CONSTITUTOR_DOCTORCODE = followupResultMap.get("CONTROL_CONSTITUTOR_DOCTORCODE");
|
|
|
CONTROL_CONSTITUTOR = doctorMappingDao.findByDocotrCodeAndJwDoctorHospital(CONTROL_CONSTITUTOR_DOCTORCODE, followup.getOrgCode());
|
|
|
|
|
|
followupResultMap.put("CONTROL_CONSTITUTOR",CONTROL_CONSTITUTOR);//基卫控制目标操作者
|
|
|
}
|
|
|
|
|
|
followupResultMap.put("CONTROL_CONSTITUTOR",CONTROL_CONSTITUTOR);//基卫控制目标操作者
|
|
|
}else{
|
|
|
logger.info("随访记录上传失败,控制目标操作者CODE为空: 操作者为" + followupResultMap.containsKey("CONTROL_CONSTITUTOR"));
|
|
|
continue;
|
|
@ -951,6 +970,7 @@ public class JwPrescriptionService {
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
List<FollowupDrugs> followupDrugs = followupDrugsDao.findByFollowupId(followup.getId());
|
|
|
List<FollowupDrugs> followupDrugsNormal = new ArrayList<>();//其他药品
|
|
|
List<FollowupDrugs> followupDrugsInsulin = new ArrayList<>();//胰岛素
|
|
@ -971,19 +991,26 @@ public class JwPrescriptionService {
|
|
|
DecimalFormat df = new DecimalFormat("######0.00");
|
|
|
|
|
|
//普通药品
|
|
|
if(!followupDrugsNormal.isEmpty()){
|
|
|
for (int i = 0; i < followupDrugsNormal.size(); i++) {
|
|
|
// if(!followupDrugsNormal.isEmpty()){
|
|
|
for (int i = 0; i <= 6; i++) {
|
|
|
int tag = i+1;
|
|
|
followupResultMap.put("PHYSIC_NAME"+tag,followupDrugsNormal.get(i).getDrugsName());
|
|
|
followupResultMap.put("FREQUENCY"+tag,followupDrugsNormal.get(i).getFrequency());
|
|
|
followupResultMap.put("PHYSIC_UNIT"+tag,followupDrugsNormal.get(i).getUnit());
|
|
|
if(followupDrugsNormal.get(i).getDose() !=null){
|
|
|
followupResultMap.put("PHYSIC_DOSE"+tag,df.format(followupDrugsNormal.get(i).getDose()));
|
|
|
if( !followupDrugsNormal.isEmpty() && followupDrugsNormal.size() >0 && followupDrugsNormal.size() <= tag){
|
|
|
followupResultMap.put("PHYSIC_NAME"+tag,followupDrugsNormal.get(i).getDrugsName());
|
|
|
followupResultMap.put("FREQUENCY"+tag,followupDrugsNormal.get(i).getFrequency());
|
|
|
followupResultMap.put("PHYSIC_UNIT"+tag,followupDrugsNormal.get(i).getUnit());
|
|
|
if(followupDrugsNormal.get(i).getDose() !=null){
|
|
|
followupResultMap.put("PHYSIC_DOSE"+tag,df.format(followupDrugsNormal.get(i).getDose()));
|
|
|
}else{
|
|
|
followupResultMap.put("PHYSIC_DOSE"+tag,"");
|
|
|
}
|
|
|
}else{
|
|
|
followupResultMap.put("PHYSIC_DOSE","");
|
|
|
followupResultMap.put("PHYSIC_NAME"+tag,"");
|
|
|
followupResultMap.put("FREQUENCY"+tag,"");
|
|
|
followupResultMap.put("PHYSIC_UNIT"+tag,"");
|
|
|
followupResultMap.put("PHYSIC_DOSE"+tag,"");
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
// }
|
|
|
|
|
|
//胰岛素类药品
|
|
|
if(!followupDrugsInsulin.isEmpty()){
|