2022-01-31 15:51:39 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Created by Reliese Model.
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
use Carbon\Carbon;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
/**
|
2022-02-04 06:38:50 +00:00
|
|
|
* Class NhAuthorizationOfCareRequest
|
2022-01-31 15:51:39 +00:00
|
|
|
*
|
|
|
|
* @property int $id
|
|
|
|
* @property string $request_id
|
|
|
|
* @property int $act_id
|
2022-02-04 06:38:50 +00:00
|
|
|
* @property int $insurance_id
|
|
|
|
* @property int|null $beneficiary_id
|
|
|
|
* @property string $to
|
2022-01-31 15:51:39 +00:00
|
|
|
* @property string $state
|
2022-02-04 06:38:50 +00:00
|
|
|
* @property int|null $health_care_sheet_id
|
2022-02-01 10:58:58 +00:00
|
|
|
* @property int|null $validating_agent_id
|
2022-01-31 15:51:39 +00:00
|
|
|
* @property Carbon $created_at
|
|
|
|
* @property Carbon $updated_at
|
|
|
|
*
|
|
|
|
* @package App\Models
|
|
|
|
*/
|
|
|
|
class NhAuthorizationOfCareRequest extends Model
|
|
|
|
{
|
|
|
|
protected $table = 'nh_authorization_of_care_requests';
|
|
|
|
|
|
|
|
protected $casts = [
|
2022-02-04 06:38:50 +00:00
|
|
|
'act_id' => 'int',
|
|
|
|
'insurance_id' => 'int',
|
|
|
|
'beneficiary_id' => 'int',
|
|
|
|
'health_care_sheet_id' => 'int',
|
|
|
|
'validating_agent_id' => 'int'
|
2022-01-31 15:51:39 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
protected $fillable = [
|
|
|
|
'request_id',
|
|
|
|
'act_id',
|
2022-02-04 06:38:50 +00:00
|
|
|
'insurance_id',
|
|
|
|
'beneficiary_id',
|
|
|
|
'to',
|
2022-02-01 10:58:58 +00:00
|
|
|
'state',
|
2022-02-04 06:38:50 +00:00
|
|
|
'health_care_sheet_id',
|
2022-02-01 10:58:58 +00:00
|
|
|
'validating_agent_id'
|
2022-01-31 15:51:39 +00:00
|
|
|
];
|
2022-02-01 10:58:58 +00:00
|
|
|
|
2022-02-04 06:38:50 +00:00
|
|
|
public function insurance()
|
2022-02-01 10:58:58 +00:00
|
|
|
{
|
2022-02-04 06:38:50 +00:00
|
|
|
return $this->belongsTo(NhInsurance::class, 'insurance_id');
|
2022-02-01 10:58:58 +00:00
|
|
|
}
|
2022-01-31 15:51:39 +00:00
|
|
|
}
|