Merge remote-tracking branch 'origin/staging' into origin/production
This commit is contained in:
@@ -15,6 +15,10 @@ class Drug extends Model
|
||||
'name',
|
||||
'generic_name',
|
||||
'code',
|
||||
'id_setara',
|
||||
'code_setara',
|
||||
'nama_setara',
|
||||
'multiply_jual',
|
||||
'description',
|
||||
'brand_id',
|
||||
'mims_class',
|
||||
|
||||
@@ -16,6 +16,13 @@ class RequestDailyMonitoring extends Model
|
||||
|
||||
protected $fillable = [
|
||||
'request_log_id',
|
||||
'doctor_1',
|
||||
'doctor_2',
|
||||
'temp_diagnosis',
|
||||
'final_diagnosis',
|
||||
'approval_pendamping',
|
||||
'description',
|
||||
'note',
|
||||
'subject',
|
||||
'object',
|
||||
'submission_date',
|
||||
|
||||
@@ -51,6 +51,8 @@ class RequestLog extends Model
|
||||
'approved_final_log_at',
|
||||
'created_final_at',
|
||||
'created_final_by',
|
||||
'specialities_id',
|
||||
'dppj',
|
||||
'type_of_member'
|
||||
];
|
||||
|
||||
@@ -82,7 +84,7 @@ class RequestLog extends Model
|
||||
"Keterangan IGL" => "keterangan",
|
||||
"Catatan FGL" => "catatan",
|
||||
"QC 1" => "status_final_log",
|
||||
"Ingestion Code" => "ingestion_code",
|
||||
"Ingestion Code" => "ingestion_code",
|
||||
"Ingestion Status" => "ingestion_status",
|
||||
|
||||
];
|
||||
|
||||
@@ -21,14 +21,16 @@ use Str;
|
||||
class RequestLogService{
|
||||
|
||||
public static function storeRequestLog(
|
||||
$row = null,
|
||||
$code,
|
||||
$member,
|
||||
$paymentType,
|
||||
$serviceCode,
|
||||
$submissionDate,
|
||||
$status, $organization_id = null,
|
||||
$source
|
||||
$row = null,
|
||||
$code,
|
||||
$member,
|
||||
$paymentType,
|
||||
$serviceCode,
|
||||
$submissionDate,
|
||||
$status, $organization_id = null,
|
||||
$source,
|
||||
$specialities_id,
|
||||
$dppj
|
||||
)
|
||||
{
|
||||
try {
|
||||
@@ -55,6 +57,8 @@ class RequestLogService{
|
||||
'policy_id' => $member->currentPolicy->id ?? null,
|
||||
'organization_id' => $organization ? $organization->id : 0,
|
||||
'source' => $source,
|
||||
'specialities_id' => $specialities_id,
|
||||
'dppj' => $dppj
|
||||
];
|
||||
|
||||
$requestLog = RequestLog::create($requestLogData);
|
||||
@@ -109,7 +113,7 @@ class RequestLogService{
|
||||
DB::commit();
|
||||
return $claimManagement;
|
||||
|
||||
|
||||
|
||||
} catch (\Exception $error) {
|
||||
DB::rollBack();
|
||||
|
||||
@@ -168,4 +172,4 @@ class RequestLogService{
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user