Merge remote-tracking branch 'origin/staging' into origin/production
This commit is contained in:
@@ -8,6 +8,7 @@ use App\Traits\Blameable;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
use Altek\Accountant\Contracts\Recordable;
|
||||
use Str;
|
||||
|
||||
class RequestLog extends Model
|
||||
@@ -56,36 +57,42 @@ class RequestLog extends Model
|
||||
];
|
||||
|
||||
public static $doc_headers_to_field_map = [
|
||||
"Date Of Request" => "submission_date",
|
||||
"Record Mode" => "record_mode",
|
||||
"Date Addmission" => "submission_date",
|
||||
"Date Discharge" => "discharge_date",
|
||||
"Member ID Peserta" => "member_id",
|
||||
"Type of patient" => "service",
|
||||
"Provider Name" => "organization_id",
|
||||
"Provider Code" => "organization_id",
|
||||
"End Of Claim Numbers" => "code",
|
||||
"Remarks" => "keterangan",
|
||||
"Diagnosis" => "catatan",
|
||||
"Tgl Billing dari RS" => "approved_final_log_at",
|
||||
"Benefit Item" => "benefit_id",
|
||||
"Total Billing" => "total_billing",
|
||||
"Benefit Item" => "benefit_id",
|
||||
"Amount Approval" => "amount_approval",
|
||||
"Amount Not Approval" => "amount_not_approval",
|
||||
"Final Billing" => "final_billing",
|
||||
"Remarks" => "keterangan",
|
||||
"QC 1" => "status_final_log",
|
||||
];
|
||||
|
||||
public static $listing_doc_headers = [
|
||||
"Date Of Request",
|
||||
"Record Mode",
|
||||
"Date Addmission",
|
||||
"Date Discharge",
|
||||
"Member ID Peserta",
|
||||
"Type of patient",
|
||||
"Provider Name",
|
||||
"Provider Code",
|
||||
"End Of Claim Numbers",
|
||||
"Remarks",
|
||||
"Diagnosis",
|
||||
"Tgl Billing dari RS",
|
||||
"Benefit Item",
|
||||
"Total Billing",
|
||||
"Benefit Item",
|
||||
"Amount Approval",
|
||||
"Amount Not Approval",
|
||||
"Final Billing",
|
||||
"Remarks",
|
||||
"QC 1",
|
||||
];
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Altek\Accountant\Contracts\Recordable;
|
||||
|
||||
class RequestLogBenefit extends Model
|
||||
{
|
||||
|
||||
@@ -20,6 +20,8 @@ use App\Models\Icd;
|
||||
use App\Models\IcdTemplate;
|
||||
use App\Models\FormulariumTemplate;
|
||||
use App\Models\AuditTrail;
|
||||
use App\Models\RequestLog;
|
||||
use App\Models\RequestLogBenefit;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
|
||||
use App\Models\OLDLMS\PersonalAccessToken;
|
||||
@@ -170,6 +172,22 @@ class AppServiceProvider extends ServiceProvider
|
||||
$this->logAuditTrail($model, 'deleted');
|
||||
});
|
||||
|
||||
// Request LOG Template
|
||||
RequestLog::updated(function ($model) {
|
||||
$this->logAuditTrail($model, 'updated');
|
||||
});
|
||||
RequestLog::deleted(function ($model) {
|
||||
$this->logAuditTrail($model, 'deleted');
|
||||
});
|
||||
|
||||
// Request LOG Template
|
||||
RequestLogBenefit::updated(function ($model) {
|
||||
$this->logAuditTrail($model, 'updated');
|
||||
});
|
||||
RequestLogBenefit::deleted(function ($model) {
|
||||
$this->logAuditTrail($model, 'deleted');
|
||||
});
|
||||
|
||||
// Formualrium Template
|
||||
CorporateFormularium::updated(function ($model) {
|
||||
$this->logAuditTrail($model, 'updated');
|
||||
|
||||
Reference in New Issue
Block a user