获取患者进行中的检测订单

This commit is contained in:
2023-08-07 09:06:34 +08:00
parent 2159400c44
commit cefe11b02b
4 changed files with 51 additions and 1 deletions
+22 -1
View File
@@ -54,7 +54,12 @@ class DetectionController extends AbstractController
return $this->response->json($data);
}
// 创建检测订单
/**
* 创建检测订单
* @return ResponseInterface
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function addDetectionOrder(): ResponseInterface
{
$request = $this->container->get(DetectionRequest::class);
@@ -64,4 +69,20 @@ class DetectionController extends AbstractController
$data = $detectionService->addDetectionOrder();
return $this->response->json($data);
}
/**
* 获取患者进行中的检测订单
* @return ResponseInterface
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function getDetectionDoctorOrderFirst(): ResponseInterface
{
$request = $this->container->get(DetectionRequest::class);
$request->scene('getDetectionDoctorOrderFirst')->validateResolved();
$detectionService = new DetectionService();
$data = $detectionService->getDetectionDoctorOrderFirst();
return $this->response->json($data);
}
}