新增:获取问诊订单病例缺少字段、医生发送缺少字段至患者、患者填写缺少字段至医生

This commit is contained in:
2023-11-30 17:56:25 +08:00
parent a69ba2ca2c
commit 6cbbcd586e
5 changed files with 374 additions and 6 deletions
+32
View File
@@ -61,4 +61,36 @@ class PatientCaseController extends AbstractController
$data = $PatientCaseService->getPatientFamilyInquiryCaseUnfilledFields();
return $this->response->json($data);
}
/**
* 医生发送缺少字段至患者
* @return ResponseInterface
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function sendCaseUnfilledFieldsToPatient(): ResponseInterface
{
$request = $this->container->get(PatientCaseRequest::class);
$request->scene('sendCaseUnfilledFieldsToPatient')->validateResolved();
$PatientCaseService = new PatientCaseService();
$data = $PatientCaseService->sendCaseUnfilledFieldsToPatient();
return $this->response->json($data);
}
/**
* 患者填写缺少字段至医生
* @return ResponseInterface
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function sendCaseUnfilledFieldsToDoctor(): ResponseInterface
{
$request = $this->container->get(PatientCaseRequest::class);
$request->scene('sendCaseUnfilledFieldsToDoctor')->validateResolved();
$PatientCaseService = new PatientCaseService();
$data = $PatientCaseService->sendCaseUnfilledFieldsToDoctor();
return $this->response->json($data);
}
}