Merge remote-tracking branch 'origin/staging' into origin/production

This commit is contained in:
Linksehat Staging Server
2024-01-25 13:24:50 +07:00
6 changed files with 127 additions and 24 deletions

View File

@@ -732,6 +732,23 @@ class RequestLogController extends Controller
$data['signatureAd'] = $signatureAd; $data['signatureAd'] = $signatureAd;
$dataDiagnosis = [];
if($dataRequestLog->diagnosis)
{
$dataDiagnosiCodes = explode(',', $dataRequestLog->diagnosis);
foreach ($dataDiagnosiCodes as $diagnosisCode)
{
$diagnoisis = DB::table('icd')
->where('icd.code', '=', $diagnosisCode)
->select('icd.name')
->first();
array_push($dataDiagnosis, $diagnoisis);
}
}
$data['dataDiagnosis'] = $dataDiagnosis;
$pdf = new Dompdf(); $pdf = new Dompdf();
$options = new Options(); $options = new Options();

View File

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

View File

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

View File

@@ -424,6 +424,36 @@
</tfoot> </tfoot>
</table> </table>
<table class="claim-info-<?php echo now()->timestamp; ?>">
<thead>
<tr style="background-color: #F4F6F8;">
<td colspan="5" style="width: 5%; text-align: left;"><b>Diagnosis</b></td>
</tr>
</thead>
<tbody>
@php
if(count($dataDiagnosis))
{
foreach ($dataDiagnosis as $valDiagnosis)
{
@endphp
<tr>
<td colspan="5" style="width: 5%; text-align: left;">{{ !empty($valDiagnosis->name) ? ' - '.$valDiagnosis->name : '-'}}</td>
</tr>
@php
}
}
else
{
@endphp
<tr>
<td colspan="5" style="width: 5%; text-align: left;">-</td>
</tr>
@php
}
@endphp
</tbody>
</table>
<table class="claim-info-<?php echo now()->timestamp; ?>"> <table class="claim-info-<?php echo now()->timestamp; ?>">
<thead> <thead>
<tr style="background-color: #F4F6F8;"> <tr style="background-color: #F4F6F8;">
@@ -432,7 +462,7 @@
</thead> </thead>
<tbody> <tbody>
<tr> <tr>
<td colspan="5" style="width: 5%; text-align: left;">{{ !empty($dataRequestLog->catatan) ? $dataRequestLog->catatan : ''}}</td> <td colspan="5" style="width: 5%; text-align: left;">{{ !empty($dataRequestLog->catatan) ? $dataRequestLog->catatan : '-'}}</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>