diff --git a/member/modules/v1/controllers/PatientController.php b/member/modules/v1/controllers/PatientController.php index 9d9f4ee..a260bb3 100644 --- a/member/modules/v1/controllers/PatientController.php +++ b/member/modules/v1/controllers/PatientController.php @@ -184,6 +184,9 @@ class PatientController extends BaseAppController $HealthForm->attributes = $post; $info = $HealthForm->info(); + $info['family_history'] = !empty($info['family_history']) ? explode(',', $info['family_history']) : []; + $info['person_history'] = !empty($info['person_history']) ? explode(',', $info['person_history']) : []; + $info['allergic_history'] = !empty($info['allergic_history']) ? explode(',', $info['allergic_history']) : []; return $info; if (!empty($info['family_history'])) {