@Test public void testListFinalDiagnose() throws Exception { }
public CommonResult listFinalDiagnose(Integer caseId){ JSONObject returnJson = new JSONObject(); JSONArray finalTraditionalDiagnose = new JSONArray(); JSONArray finalModernDiagnose = new JSONArray(); List<HashMap> diagnoses = diagnoseMapper.listFinalDiagnoseByCaseId(caseId); for(HashMap diagnose : diagnoses){ if((diagnose.get("type")).equals("中草药")) finalTraditionalDiagnose.add(diagnose); else finalModernDiagnose.add(diagnose); } returnJson.put("finalTraditionalDiagnose", finalTraditionalDiagnose); returnJson.put("finalModernDiagnose", finalModernDiagnose); return CommonResult.success(returnJson); }
PreliminaryCaseServiceImpl implements PreliminaryCaseService { public CommonResult listFinalDiagnose(Integer caseId){ JSONObject returnJson = new JSONObject(); JSONArray finalTraditionalDiagnose = new JSONArray(); JSONArray finalModernDiagnose = new JSONArray(); List<HashMap> diagnoses = diagnoseMapper.listFinalDiagnoseByCaseId(caseId); for(HashMap diagnose : diagnoses){ if((diagnose.get("type")).equals("中草药")) finalTraditionalDiagnose.add(diagnose); else finalModernDiagnose.add(diagnose); } returnJson.put("finalTraditionalDiagnose", finalTraditionalDiagnose); returnJson.put("finalModernDiagnose", finalModernDiagnose); return CommonResult.success(returnJson); } }
PreliminaryCaseServiceImpl implements PreliminaryCaseService { public CommonResult listFinalDiagnose(Integer caseId){ JSONObject returnJson = new JSONObject(); JSONArray finalTraditionalDiagnose = new JSONArray(); JSONArray finalModernDiagnose = new JSONArray(); List<HashMap> diagnoses = diagnoseMapper.listFinalDiagnoseByCaseId(caseId); for(HashMap diagnose : diagnoses){ if((diagnose.get("type")).equals("中草药")) finalTraditionalDiagnose.add(diagnose); else finalModernDiagnose.add(diagnose); } returnJson.put("finalTraditionalDiagnose", finalTraditionalDiagnose); returnJson.put("finalModernDiagnose", finalModernDiagnose); return CommonResult.success(returnJson); }  }
PreliminaryCaseServiceImpl implements PreliminaryCaseService { public CommonResult listFinalDiagnose(Integer caseId){ JSONObject returnJson = new JSONObject(); JSONArray finalTraditionalDiagnose = new JSONArray(); JSONArray finalModernDiagnose = new JSONArray(); List<HashMap> diagnoses = diagnoseMapper.listFinalDiagnoseByCaseId(caseId); for(HashMap diagnose : diagnoses){ if((diagnose.get("type")).equals("中草药")) finalTraditionalDiagnose.add(diagnose); else finalModernDiagnose.add(diagnose); } returnJson.put("finalTraditionalDiagnose", finalTraditionalDiagnose); returnJson.put("finalModernDiagnose", finalModernDiagnose); return CommonResult.success(returnJson); }  @Override CommonResult listPatients(Integer doctorRoleId); @Override CommonResult getPatientCaseInfo(Integer doctorRoleId, Integer caseId); CommonResult finalDiagnose(PatientCaseParam patientCaseParam); @Override CommonResult savePresentPatientCase(PatientCaseParam patientCaseParam); @Override CommonResult submitPresentPatientCase(PatientCaseParam patientCaseParam); CommonResult savePatientCase(PatientCaseParam patientCaseParam, int status, Boolean isFirstDiagnosed); CommonResult clearPatientCase(Integer caseId); CommonResult listFinalDiagnose(Integer caseId); @Override CommonResult finishDiagnose(Integer caseId); int getAgeByBirth(Date birthDay); }
PreliminaryCaseServiceImpl implements PreliminaryCaseService { public CommonResult listFinalDiagnose(Integer caseId){ JSONObject returnJson = new JSONObject(); JSONArray finalTraditionalDiagnose = new JSONArray(); JSONArray finalModernDiagnose = new JSONArray(); List<HashMap> diagnoses = diagnoseMapper.listFinalDiagnoseByCaseId(caseId); for(HashMap diagnose : diagnoses){ if((diagnose.get("type")).equals("中草药")) finalTraditionalDiagnose.add(diagnose); else finalModernDiagnose.add(diagnose); } returnJson.put("finalTraditionalDiagnose", finalTraditionalDiagnose); returnJson.put("finalModernDiagnose", finalModernDiagnose); return CommonResult.success(returnJson); }  @Override CommonResult listPatients(Integer doctorRoleId); @Override CommonResult getPatientCaseInfo(Integer doctorRoleId, Integer caseId); CommonResult finalDiagnose(PatientCaseParam patientCaseParam); @Override CommonResult savePresentPatientCase(PatientCaseParam patientCaseParam); @Override CommonResult submitPresentPatientCase(PatientCaseParam patientCaseParam); CommonResult savePatientCase(PatientCaseParam patientCaseParam, int status, Boolean isFirstDiagnosed); CommonResult clearPatientCase(Integer caseId); CommonResult listFinalDiagnose(Integer caseId); @Override CommonResult finishDiagnose(Integer caseId); int getAgeByBirth(Date birthDay);  }