处方溯源测试

This commit is contained in:
2024-12-13 16:32:43 +08:00
parent fc52ab7b9a
commit 58d9c1f8bc

View File

@@ -140,6 +140,7 @@ class ExamineController extends BasePharmacistController
*/
public function actionVerify()
{
// 审核处理
$pharmacistrInfo = PharmacistrInfo::find()->where(['su_id' => \Yii::$app->user->identity->getId()])->one();
if (!$pharmacistrInfo) {
throw new Exception('药师数据错误');
@@ -241,6 +242,7 @@ class ExamineController extends BasePharmacistController
$doctor['depart'] = $depart->name;
$doctor['name'] = $doctorInfo->name;
ds($prescription);
return [
'type' => $prescription->prescription_type == 1 ? '中药处方' : ($prescription->prescription_type == 2 ? '西药处方' : '颗粒药处方'),
'prescription' => $prescription,