update validasi benefit & plan

This commit is contained in:
2023-05-24 09:56:47 +07:00
parent 6f49e54631
commit f7838352b0
12 changed files with 484 additions and 9 deletions

View File

@@ -131,6 +131,66 @@ class CorporateBenefit extends Model
"Show Benefit Value" => 'show_benefit_value',
];
public static $listing_doc_headers = [
"Service",
"Plan",
"Benefit Code",
"Customer Benefit Code",
"Detail Benefit",
"ASO/Budget",
"Budget Condition",
"Budget Code",
"Primary benefit",
"Benefit Mode",
"Room Class",
"Max Bed",
"Tolerance Paramater",
"Max. Room Class",
"Limit Value",
"Area",
"Shared Benefit With",
"Shared Benefit Type",
"MSC",
"Gender",
"Min Age",
"Max Age",
"Freq. Period",
"Daily Frequency",
"Weekly Frequency",
"Monthly Frequency",
"Yearly Frequency",
"Custom Duration",
"Custom Duration Value",
"Cashless, Reimbursement",
"High Plan Factor",
"Pre Post Treatment",
"Pre Treatment",
"Post Treatment",
"Layer Type 1",
"Layer Value 1",
"Layer Type 2",
"Layer Value 2",
"Cashless (%)",
"Reimburse (%)",
"Digital (%)",
"CoShareM (%)",
"CoShareS (%)",
"CoShareC (%)",
"Cashless Deductible",
"Reimbursement Deductible",
"Digital Deductible",
"DeductibleM",
"DeductibleS",
"DeductibleC",
"Prorate Type",
"Prorate Lookup",
"Max Days for Disability",
"Max Periode of Disability",
"Currency",
"Show Benefit Item",
"Show Benefit Value",
];
public static $max_frequency_periods = [
0 => 'Policy Period',
1 => 'Daily Visit',

View File

@@ -126,6 +126,57 @@ class Plan extends Model
"Max Periode of Surgery Non Surgery" => "max_surgery_periode_days",
];
public static $listing_doc_headers = [
"Service",
"Plan",
"Customer Plan",
"Plan Type",
"Start Date of Plan",
"End Date of Plan",
"Referral",
"Referral Source",
"Referral Duration",
"Family Plan",
"Family Sharing Overflow",
"Plan Limit",
"Layer ID",
"Layer Condition",
"Budget Type",
"Budget Code",
"Budget Condition",
"Surgery",
"Non Surgery",
"Max/Claim",
"Max Count of Claim",
"Area",
"Shared Plan",
"Shared Plan Type",
"Cashless(%)",
"Reimbursement(%)",
"Digital(%)",
"CoShareM(%)",
"CoShareS(%)",
"CoShareC(%)",
"Cashless Deductible",
"Reimbursement Deductible",
"Digital Deductible",
"DeductibleM",
"DeductibleS",
"DeductibleC",
"Co-share & Deductible Condition",
"MSC",
"Gender",
"Min Age",
"Max Age",
"Rule of Excess",
"Max Excess Covered",
"Prorate Type",
"Prorate Lookup",
"Currency",
"Reinstatement days for Surgery NonSurgery",
"Max Periode of Surgery Non Surgery",
];
public function setAreaLimitAttribute($value)
{
$this->attributes['area_limit'] = empty($value) ? null : $value;