118 lines
3.9 KiB
PHP
118 lines
3.9 KiB
PHP
<?php
|
|
|
|
namespace App\Controller;
|
|
|
|
use App\Request\PatientCaseRequest;
|
|
use App\Services\InquiryService;
|
|
use App\Services\PatientCaseService;
|
|
use Psr\Container\ContainerExceptionInterface;
|
|
use Psr\Container\NotFoundExceptionInterface;
|
|
use Psr\Http\Message\ResponseInterface;
|
|
|
|
/**
|
|
* 患者家庭成员病例
|
|
*/
|
|
class PatientCaseController extends AbstractController
|
|
{
|
|
/**
|
|
* 获取问诊订单病例详情-基础
|
|
* @return ResponseInterface
|
|
* @throws ContainerExceptionInterface
|
|
* @throws NotFoundExceptionInterface
|
|
*/
|
|
public function getPatientFamilyInquiryCaseSimple(): ResponseInterface
|
|
{
|
|
$request = $this->container->get(PatientCaseRequest::class);
|
|
$request->scene('getPatientFamilyInquiryCaseSimple')->validateResolved();
|
|
|
|
$PatientCaseService = new PatientCaseService();
|
|
$data = $PatientCaseService->getPatientFamilyInquiryCaseSimple();
|
|
return $this->response->json($data);
|
|
}
|
|
|
|
/**
|
|
* 获取问诊订单病例详情
|
|
* @return ResponseInterface
|
|
* @throws ContainerExceptionInterface
|
|
* @throws NotFoundExceptionInterface
|
|
*/
|
|
public function getPatientFamilyInquiryCase(): ResponseInterface
|
|
{
|
|
$request = $this->container->get(PatientCaseRequest::class);
|
|
$request->scene('getPatientFamilyInquiryCase')->validateResolved();
|
|
|
|
$PatientCaseService = new PatientCaseService();
|
|
$data = $PatientCaseService->getPatientFamilyInquiryCase();
|
|
return $this->response->json($data);
|
|
}
|
|
|
|
/**
|
|
* 获取问诊订单病例缺少字段
|
|
* @return ResponseInterface
|
|
* @throws ContainerExceptionInterface
|
|
* @throws NotFoundExceptionInterface
|
|
*/
|
|
public function getPatientFamilyInquiryCaseUnfilledFields(): ResponseInterface
|
|
{
|
|
$request = $this->container->get(PatientCaseRequest::class);
|
|
$request->scene('getPatientFamilyInquiryCaseUnfilledFields')->validateResolved();
|
|
|
|
$PatientCaseService = new PatientCaseService();
|
|
$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);
|
|
}
|
|
|
|
/**
|
|
* 获取服务包订单病例详情-基础
|
|
* @return ResponseInterface
|
|
*/
|
|
public function getPatientFamilyServiceCaseSimple(): ResponseInterface
|
|
{
|
|
$PatientCaseService = new PatientCaseService();
|
|
$data = $PatientCaseService->getPatientFamilyServiceCaseSimple();
|
|
return $this->response->json($data);
|
|
}
|
|
|
|
/**
|
|
* 获取服务包订单病例详情
|
|
* @return ResponseInterface
|
|
*/
|
|
public function getPatientFamilyServiceCase(): ResponseInterface
|
|
{
|
|
$PatientCaseService = new PatientCaseService();
|
|
$data = $PatientCaseService->getPatientFamilyServiceCase();
|
|
return $this->response->json($data);
|
|
}
|
|
} |