修复就诊人健康信息默认值
This commit is contained in:
@@ -22,7 +22,7 @@ class PatientController extends BaseAppController
|
||||
*/
|
||||
public function actionList()
|
||||
{
|
||||
$all = UserPatient::find()->with(['healthInquiry'])->where([
|
||||
$all = UserPatient::find()->where([
|
||||
'user_id' => \Yii::$app->user->identity->id,
|
||||
'is_delete' => 0
|
||||
])->orderBy('id desc')->asArray()->all();
|
||||
@@ -181,6 +181,12 @@ class PatientController extends BaseAppController
|
||||
$HealthForm=new HealthForm();
|
||||
$HealthForm->attributes=$post;
|
||||
|
||||
return $HealthForm->info();
|
||||
$info = $HealthForm->info();
|
||||
|
||||
$info['family_history'] = explode(',',$info['family_history']);
|
||||
$info['person_history'] = explode(',',$info['person_history']);
|
||||
$info['allergic_history'] = explode(',',$info['allergic_history']);
|
||||
|
||||
return $info;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user