update listing dan edit claim management
This commit is contained in:
@@ -31,7 +31,13 @@ class Claim extends Model
|
||||
'benefit_id',
|
||||
'organization_id',
|
||||
'status',
|
||||
'service_code'
|
||||
'service_code',
|
||||
'benefit_code',
|
||||
'benefit_desc',
|
||||
'amount_incurred',
|
||||
'amount_approved',
|
||||
'amount_not_approved',
|
||||
'excess_paid',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
|
||||
@@ -26,6 +26,7 @@ class ClaimRequest extends Model
|
||||
'policy_id',
|
||||
'status',
|
||||
'claim_id',
|
||||
'organization_id',
|
||||
'code'
|
||||
];
|
||||
|
||||
@@ -45,6 +46,8 @@ class ClaimRequest extends Model
|
||||
"MEMBER ID" => "member_id",
|
||||
"MEMBER NAME" => "member_name",
|
||||
"RECORD TYPE (P/D)" => "record_type",
|
||||
"BENEFIT CODE" => "benefit_code",
|
||||
"BENEFIT DESC" => "benefit_desc",
|
||||
"CLAIM TYPE" => "claim_type",
|
||||
"CLAIM PROCESS STATUS" => "status",
|
||||
"CLIENT CLAIM ID" => "client_claim_id",
|
||||
@@ -63,7 +66,7 @@ class ClaimRequest extends Model
|
||||
"TOT AMT NOT APPROVED" => "tot_amt_not_approved",
|
||||
"TOT EXCESS PAID" => "tot_excess_paid",
|
||||
"REMARKS" => "remarks",
|
||||
"SECONDARY DIAGNOSIS CODE" => "secondary_diagnosis_code",
|
||||
"SECONDARY DIAGNOSIS CODE" => "secondary_diagnosis",
|
||||
"APPROVED DATE" => "approved_date",
|
||||
"APPROVED BY" => "approved_by",
|
||||
"DATE RECEIVED" => "data_received",
|
||||
@@ -233,6 +236,11 @@ class ClaimRequest extends Model
|
||||
return $this->morphMany(ClaimHistory::class, 'historiable');
|
||||
}
|
||||
|
||||
public function organization()
|
||||
{
|
||||
return $this->belongsTo(Organization::class, 'organization_id');
|
||||
}
|
||||
|
||||
public function member()
|
||||
{
|
||||
return $this->belongsTo(Member::class, 'member_id', 'id');
|
||||
|
||||
@@ -103,4 +103,8 @@ class Organization extends Model
|
||||
{
|
||||
return $this->hasMany(Claim::class, 'organization_id', 'id');
|
||||
}
|
||||
public function claim_request()
|
||||
{
|
||||
return $this->hasMany(ClaimRequest::class, 'organization_id', 'id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user