feat: add reviewed follow-up audio patient enrichment
This commit is contained in:
@@ -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) : [];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user