48 lines
1.5 KiB
PHP
48 lines
1.5 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);
|
|
}
|
|
} |