feat: add reviewed follow-up audio patient enrichment

This commit is contained in:
2026-09-29 15:44:30 +08:00
parent 3cdc812f2b
commit 70be2fc70f
46 changed files with 7384 additions and 246 deletions
+3 -2
View File
@@ -79,7 +79,8 @@ class Diagnosis extends BaseModel
*/
public function getPastHistoryArrAttr($value, $data)
{
return !empty($data['past_history']) ? explode(',', $data['past_history']) : [];
return ($data['past_history'] ?? null) !== null && $data['past_history'] !== ''
? explode(',', (string) $data['past_history']) : [];
}
/**
@@ -87,7 +88,7 @@ class Diagnosis extends BaseModel
*/
public function getAppetiteAttr($value, $data)
{
return !empty($value) ? explode(',', $value) : [];
return $value !== null && $value !== '' ? explode(',', (string) $value) : [];
}
/**