This commit is contained in:
2023-04-25 20:51:07 +08:00
parent 2255d3a3a1
commit d215493859
4 changed files with 26 additions and 2 deletions
+16
View File
@@ -301,6 +301,22 @@ class UserDoctorController extends AbstractController
return $this->response->json($data);
}
/**
* 检测是否可以开具处方
* @return ResponseInterface
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function checkOpenPrescription(): ResponseInterface
{
$request = $this->container->get(UserDoctorRequest::class);
$request->scene('getPrescriptionInfo')->validateResolved();
$UserDoctorService = new UserDoctorService();
$data = $UserDoctorService->getPrescriptionInfo();
return $this->response->json($data);
}
/**
* 获取医生名片
* @return ResponseInterface