Merge remote-tracking branch 'origin/staging' into origin/production
This commit is contained in:
@@ -732,6 +732,23 @@ class RequestLogController extends Controller
|
||||
|
||||
$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();
|
||||
|
||||
$options = new Options();
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
@@ -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');
|
||||
});
|
||||
}
|
||||
};
|
||||
Binary file not shown.
@@ -424,6 +424,36 @@
|
||||
</tfoot>
|
||||
|
||||
</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; ?>">
|
||||
<thead>
|
||||
<tr style="background-color: #F4F6F8;">
|
||||
@@ -432,7 +462,7 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<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>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user