update template import request log

This commit is contained in:
2024-01-25 11:11:41 +07:00
parent 667c08dc0c
commit 423fe7b182
4 changed files with 79 additions and 23 deletions

View File

@@ -25,7 +25,8 @@ class RequestLogService
"Date Addmission" => "submission_date",
"Date Discharge" => "discharge_date",
"Member ID Peserta" => "member_id",
"Type of patient" => "service",
"Service" => "service",
"Type of Member" => "type_of_member",
"Provider Code" => "organization_id",
"End Of Claim Numbers" => "code",
"Diagnosis" => "diagnosis",
@@ -34,8 +35,9 @@ class RequestLogService
"Benefit Item" => "benefit_id",
"Amount Approval" => "amount_approval",
"Amount Not Approval" => "amount_not_approval",
"Final Billing" => "final_billing",
"Remarks" => "keterangan",
"Total COB" => "total_cob",
"Keterangan IGL" => "keterangan",
"Catatan FGL" => "catatan",
"QC 1" => "status_final_log",
"Ingestion Code" => "ingestion_code", // TODO I think this should not be here because if user uploading result then ingestion code and status will be filled
"Ingestion Status" => "ingestion_status",
@@ -47,7 +49,8 @@ class RequestLogService
"submission_date" => "Date Addmission",
"discharge_date" => "Date Discharge",
"member_id" => "Member ID Peserta",
"service" => "Type of patient",
"service" => "Service",
"type_of_member" => "Type of Member",
"organization_id" => "Provider Code",
"code" => "End Of Claim Numbers",
"diagnosis" => "Diagnosis",
@@ -56,8 +59,9 @@ class RequestLogService
"benefit_id" => "Benefit Item",
"amount_approval" => "Amount Approval",
"amount_not_approval" => "Amount Not Approval",
"keterangan" => "Remarks",
"final_billing" => "Final Billing",
"total_cob" => "Total COB",
"keterangan" => "Keterangan IGL",
"catatan" => "Catatan FGL",
"status_final_log" => "QC 1" ,
"ingestion_code" => "Ingestion Code",
"ingestion_status" => "Ingestion Status",
@@ -68,7 +72,8 @@ class RequestLogService
"Date Addmission",
"Date Discharge",
"Member ID Peserta",
"Type of patient",
"Service",
"Type of Member",
"Provider Code",
"End Of Claim Numbers",
"Diagnosis",
@@ -77,8 +82,9 @@ class RequestLogService
"Benefit Item",
"Amount Approval",
"Amount Not Approval",
"Final Billing",
"Remarks",
"Total COB",
"Keterangan IGL",
"Catatan FGL",
"QC 1",
"Ingestion Code",
"Ingestion Status",
@@ -89,7 +95,8 @@ class RequestLogService
"Date Addmission",
"Date Discharge",
"Member ID Peserta",
"Type of patient",
"Service",
"Type of Member",
"Provider Code",
"End Of Claim Numbers",
"Diagnosis",
@@ -98,8 +105,9 @@ class RequestLogService
"Benefit Item",
"Amount Approval",
"Amount Not Approval",
"Final Billing",
"Remarks",
"Total COB",
"Keterangan IGL",
"Catatan FGL",
"QC 1",
"Ingestion Code",
"Ingestion Status",
@@ -232,7 +240,9 @@ class RequestLogService
'status_final_log' => $statusFinalLog,
'final_log' =>$final_log,
'import_system' =>TRUE,
// 'catatan' => $row['catatan'],
'catatan' => $row['catatan'],
'type_of_member' => $row['type_of_member'],
'total_cob' => $row['total_cob'],
'keterangan' => $row['keterangan'],
'policy_id' => $member->currentPolicy->id ?? null,
'organization_id' => $organization_id,
@@ -251,6 +261,9 @@ class RequestLogService
'status_final_log' => $statusFinalLog,
'final_log' =>$final_log,
'import_system' =>TRUE,
'catatan' => $row['catatan'],
'type_of_member' => $row['type_of_member'],
'total_cob' => $row['total_cob'],
'diagnosis' => $row['diagnosis'],
'keterangan' => $row['keterangan'],
'policy_id' => $member->currentPolicy->id ?? null,

View File

@@ -25,6 +25,8 @@ class RequestLog extends Model
'member_id',
'payment_type',
'service_code',
'type_of_member',
'total_cob',
'policy_id',
'final_log',
'status',
@@ -56,24 +58,28 @@ class RequestLog extends Model
'deleted_by',
];
public static $doc_headers_to_field_map = [
public $doc_headers_to_field_map = [
"Record Mode" => "record_mode",
"Date Addmission" => "submission_date",
"Date Discharge" => "discharge_date",
"Member ID Peserta" => "member_id",
"Type of patient" => "service",
"Service" => "service",
"Type of Member" => "type_of_member",
"Provider Code" => "organization_id",
"End Of Claim Numbers" => "code",
"Remarks" => "keterangan",
"Diagnosis" => "catatan",
"Diagnosis" => "diagnosis",
"Tgl Billing dari RS" => "approved_final_log_at",
"Total Billing" => "total_billing",
"Benefit Item" => "benefit_id",
"Amount Approval" => "amount_approval",
"Amount Not Approval" => "amount_not_approval",
"Final Billing" => "final_billing",
"Remarks" => "keterangan",
"Total COB" => "total_cob",
"Keterangan IGL" => "keterangan",
"Catatan FGL" => "catatan",
"QC 1" => "status_final_log",
"Ingestion Code" => "ingestion_code",
"Ingestion Status" => "ingestion_status",
];
public static $listing_doc_headers = [
@@ -81,19 +87,22 @@ class RequestLog extends Model
"Date Addmission",
"Date Discharge",
"Member ID Peserta",
"Type of patient",
"Service",
"Type of Member",
"Provider Code",
"End Of Claim Numbers",
"Remarks",
"Diagnosis",
"Tgl Billing dari RS",
"Total Billing",
"Benefit Item",
"Amount Approval",
"Amount Not Approval",
"Final Billing",
"Remarks",
"Total COB",
"Keterangan IGL",
"Catatan FGL",
"QC 1",
"Ingestion Code",
"Ingestion Status",
];
public static $listing_data_doc_headers = [

View File

@@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('request_logs', function (Blueprint $table) {
$table->string('type_of_member')->after('service_code')->default(null);
$table->integer('total_cob')->after('type_of_member')->default(0);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('request_logs', function (Blueprint $table) {
$table->dropColumn('type_of_member');
$table->dropColumn('total_cob');
});
}
};