### Question:
PreliminaryCaseServiceImpl implements PreliminaryCaseService { @Override public CommonResult getPatientCaseInfo(Integer doctorRoleId, Integer caseId){ JSONObject returnJson = new JSONObject(); JSONArray traditionalDiagnose = new JSONArray(); JSONArray modernDiagnose = new JSONArray(); JSONArray finalTraditionalDiagnose = new JSONArray(); JSONArray finalModernDiagnose = new JSONArray(); if(caseId == null) return CommonResult.fail(ResultCode.E_801); if(doctorRoleId == null) return CommonResult.fail(ResultCode.E_801); HashMap patientCase = patientCaseMapper.getPatientCaseInfo(caseId); if(patientCase == null) return CommonResult.fail(ResultCode.E_800); returnJson.put("caseId", caseId); returnJson.put("status", patientCase.get("status")); returnJson.put("narrate", patientCase.get("narrate")); returnJson.put("curTreatCondition", patientCase.get("curTreatCondition")); returnJson.put("assistDiagnose", patientCase.get("assistDiagnose")); returnJson.put("curDisease", patientCase.get("curDisease")); returnJson.put("allergy", patientCase.get("allergy")); returnJson.put("pastDisease", patientCase.get("pastDisease")); returnJson.put("physicalCondition", patientCase.get("physicalCondition")); List<HashMap> diagnoses = diagnoseMapper.listDiagnosesDetailByCaseId(caseId); if(diagnoses.size() != 0) { Integer type; if (String.valueOf(diagnoses.get(0).get("type")).equals("中医疾病")) type = 0; else type = 1; returnJson.put("diagnoseType", type); for(HashMap diagnose: diagnoses) { Boolean isFirstDiagnosed = (Boolean)diagnose.get("isFirstDiagnosed"); if (type == 0) { if (isFirstDiagnosed == true) traditionalDiagnose.add(diagnose); else finalTraditionalDiagnose.add(diagnose); } else{ if (isFirstDiagnosed == true) modernDiagnose.add(diagnose); else finalModernDiagnose.add(diagnose); } } } returnJson.put("traditionalDiagnose", traditionalDiagnose); returnJson.put("modernDiagnose", modernDiagnose); 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);  }### Answer:
@Test public void testGetPatientCaseInfo() throws Exception { }