|
|
|
@ -338,12 +338,13 @@ public class AppController extends BaseController
|
|
|
|
|
* @return {@code AjaxResult}
|
|
|
|
|
*/
|
|
|
|
|
@ApiOperation("患者诊断记录历史列表")
|
|
|
|
|
@GetMapping("/record/list/{patientId}")
|
|
|
|
|
@GetMapping("/record/list/{patientId}/{hospitalId}")
|
|
|
|
|
@Log(title = "患者诊断记录历史列表", businessType = BusinessType.OTHER)
|
|
|
|
|
public AjaxResult diagnosisOfRecordList(@PathVariable("patientId") Long patientId)
|
|
|
|
|
public AjaxResult diagnosisOfRecordList(@PathVariable("patientId") Long patientId, @PathVariable("hospitalId") Long hospitalId)
|
|
|
|
|
{
|
|
|
|
|
TPatientHospitalDoctor tPatientHospitalDoctor = new TPatientHospitalDoctor();
|
|
|
|
|
tPatientHospitalDoctor.setPatientId(patientId);
|
|
|
|
|
tPatientHospitalDoctor.setHospitalId(hospitalId);
|
|
|
|
|
List<TRecordResp> tRecords = tRecordService.queryRecordListByPHDids(tPatientHospitalDoctor);
|
|
|
|
|
List<TRecordResp> tRecordResps = tRecords.stream().filter(record -> "1".equals(record.getStatus())).collect(Collectors.toList());
|
|
|
|
|
if (tRecordResps.isEmpty()) {
|
|
|
|
|