Merge remote-tracking branch 'refs/remotes/origin/staging' into staging

This commit is contained in:
kevin
2023-07-04 09:42:37 +07:00
1905 changed files with 550 additions and 13 deletions

0
app/Builders/MemberBuilder.php Executable file → Normal file
View File

0
app/Console/Kernel.php Executable file → Normal file
View File

0
app/Events/ClaimApproved.php Executable file → Normal file
View File

0
app/Events/ClaimDeclined.php Executable file → Normal file
View File

0
app/Events/ClaimPaid.php Executable file → Normal file
View File

0
app/Events/ClaimPostpone.php Executable file → Normal file
View File

0
app/Events/ClaimReceived.php Executable file → Normal file
View File

0
app/Events/ClaimRequested.php Executable file → Normal file
View File

0
app/Exceptions/Handler.php Executable file → Normal file
View File

0
app/Exceptions/ImportRowException.php Executable file → Normal file
View File

0
app/Helpers/Helper.php Executable file → Normal file
View File

0
app/Http/Controllers/Api/AuthController.php Executable file → Normal file
View File

0
app/Http/Controllers/Api/OLDLMS/ClaimController.php Executable file → Normal file
View File

View File

@@ -261,6 +261,27 @@ class MembershipController extends Controller
return Helper::responseJson(data: MemberResource::make($member));
}
public function automaticLinking(Request $request)
{
$member = Member::query()
->when(in_array('email', $linkingRulesArr), function($q) use ($request) {
$q->where('email', $request->email);
})
->with([
'memberPlans' => function ($memberPlan) {
$memberPlan->latest();
},
])
->first();
if ($member) {
$message = $member->currentPolicy->corporate->welcome_message;
return Helper::responseJson(data: MemberResource::make($member), message: $message);
}
}
public function removeInsurance($email)
{
$user = User::where('sEmail', $email)->firstOrFail();

0
app/Http/Controllers/Api/OLDLMS/PaymentController.php Executable file → Normal file
View File

0
app/Http/Controllers/Controller.php Executable file → Normal file
View File

0
app/Http/Controllers/GeneratedDocumentController.php Executable file → Normal file
View File

0
app/Http/Kernel.php Executable file → Normal file
View File

0
app/Http/Middleware/Authenticate.php Executable file → Normal file
View File

0
app/Http/Middleware/EncryptCookies.php Executable file → Normal file
View File

0
app/Http/Middleware/LinksehatOldAuthMiddleware.php Executable file → Normal file
View File

View File

0
app/Http/Middleware/RedirectIfAuthenticated.php Executable file → Normal file
View File

0
app/Http/Middleware/TrimStrings.php Executable file → Normal file
View File

0
app/Http/Middleware/TrustHosts.php Executable file → Normal file
View File

0
app/Http/Middleware/TrustProxies.php Executable file → Normal file
View File

0
app/Http/Middleware/VerifyCsrfToken.php Executable file → Normal file
View File

0
app/Http/Resources/MemberDataTableResource.php Executable file → Normal file
View File

0
app/Http/Resources/OLDLMS/MemberLimitResource.php Executable file → Normal file
View File

3
app/Http/Resources/OLDLMS/MemberResource.php Executable file → Normal file
View File

@@ -32,8 +32,7 @@ class MemberResource extends JsonResource
'start' => $currentMemberPlan->start,
'end' => $currentMemberPlan->end,
'limit' => $this->currentPlan->limit_rules,
'limit_telecon' => $limitTelecon,
'limit_consultation' => 6
] : null,
'policy_code' => $this->currentPolicy?->code ?? null,
'corporate' => [

0
app/Imports/PlansImport.php Executable file → Normal file
View File

0
app/Jobs/ProcessImport.php Executable file → Normal file
View File

0
app/Jobs/TestJob.php Executable file → Normal file
View File

0
app/Listeners/LogClaimJournal.php Executable file → Normal file
View File

0
app/Listeners/NotifyClaimRequested.php Executable file → Normal file
View File

0
app/Models/Address.php Executable file → Normal file
View File

0
app/Models/Appointment.php Executable file → Normal file
View File

0
app/Models/AppointmentParticipant.php Executable file → Normal file
View File

0
app/Models/AppointmentType.php Executable file → Normal file
View File

0
app/Models/Benefit.php Executable file → Normal file
View File

0
app/Models/Brand.php Executable file → Normal file
View File

0
app/Models/Category.php Executable file → Normal file
View File

0
app/Models/City.php Executable file → Normal file
View File

0
app/Models/Claim.php Executable file → Normal file
View File

0
app/Models/ClaimDiagnosis.php Executable file → Normal file
View File

0
app/Models/ClaimHistory.php Executable file → Normal file
View File

0
app/Models/ClaimItem.php Executable file → Normal file
View File

0
app/Models/ClaimRequest.php Executable file → Normal file
View File

1
app/Models/Corporate.php Executable file → Normal file
View File

@@ -23,6 +23,7 @@ class Corporate extends Model
'help_text',
'active',
'linking_rules',
'automatic_linking'
];
protected $casts = [

3
app/Models/CorporateBenefit.php Executable file → Normal file
View File

@@ -69,6 +69,7 @@ class CorporateBenefit extends Model
'show_benefit_item',
'show_benefit_value',
'active',
'limit_free_tc',
'reason'
];
@@ -127,6 +128,7 @@ class CorporateBenefit extends Model
"Prorate Lookup" => 'prorate_lookup',
"Max Days for Disability" => 'max_days_for_disability',
"Max Periode of Disability" => 'max_period_for_disability',
"Limit Free TC" => 'limit_free_tc',
"Currency" => 'currency',
"Show Benefit Item" => 'show_benefit_item',
"Show Benefit Value" => 'show_benefit_value',
@@ -187,6 +189,7 @@ class CorporateBenefit extends Model
"Prorate Lookup",
"Max Days for Disability",
"Max Periode of Disability",
"Limit Free TC",
"Currency",
"Show Benefit Item",
"Show Benefit Value",

0
app/Models/CorporateDivision.php Executable file → Normal file
View File

0
app/Models/CorporateEmployee.php Executable file → Normal file
View File

0
app/Models/CorporateFormularium.php Executable file → Normal file
View File

0
app/Models/CorporateManager.php Executable file → Normal file
View File

0
app/Models/CorporatePlan.php Executable file → Normal file
View File

0
app/Models/CorporatePolicy.php Executable file → Normal file
View File

0
app/Models/CorporateService.php Executable file → Normal file
View File

0
app/Models/CorporateServiceConfig.php Executable file → Normal file
View File

0
app/Models/CorporateServiceSpeciality.php Executable file → Normal file
View File

0
app/Models/District.php Executable file → Normal file
View File

0
app/Models/Drug.php Executable file → Normal file
View File

0
app/Models/DrugAtc.php Executable file → Normal file
View File

0
app/Models/DrugCategory.php Executable file → Normal file
View File

0
app/Models/DrugComposition.php Executable file → Normal file
View File

0
app/Models/DrugExternalIdentifier.php Executable file → Normal file
View File

0
app/Models/DrugIdentifier.php Executable file → Normal file
View File

0
app/Models/DrugSellingUnit.php Executable file → Normal file
View File

0
app/Models/DrugUnit.php Executable file → Normal file
View File

0
app/Models/Encounter.php Executable file → Normal file
View File

0
app/Models/EncounterDiagnosis.php Executable file → Normal file
View File

0
app/Models/EncounterParticipant.php Executable file → Normal file
View File

0
app/Models/Exclusion.php Executable file → Normal file
View File

0
app/Models/ExclusionRules.php Executable file → Normal file
View File

0
app/Models/Family.php Executable file → Normal file
View File

0
app/Models/File.php Executable file → Normal file
View File

0
app/Models/Formularium.php Executable file → Normal file
View File

0
app/Models/FormulariumItem.php Executable file → Normal file
View File

0
app/Models/GeneratedDocument.php Executable file → Normal file
View File

0
app/Models/Icd.php Executable file → Normal file
View File

0
app/Models/Identifier.php Executable file → Normal file
View File

0
app/Models/ImportLog.php Executable file → Normal file
View File

0
app/Models/Ingredient.php Executable file → Normal file
View File

0
app/Models/LimitJournal.php Executable file → Normal file
View File

0
app/Models/Member.php Executable file → Normal file
View File

0
app/Models/MemberPlan.php Executable file → Normal file
View File

0
app/Models/MemberPolicy.php Executable file → Normal file
View File

0
app/Models/Meta.php Executable file → Normal file
View File

0
app/Models/NotificationToken.php Executable file → Normal file
View File

0
app/Models/OLDLMS/Appointment.php Executable file → Normal file
View File

0
app/Models/OLDLMS/AppointmentDetail.php Executable file → Normal file
View File

0
app/Models/OLDLMS/Dokter.php Executable file → Normal file
View File

0
app/Models/OLDLMS/Healthcare.php Executable file → Normal file
View File

0
app/Models/OLDLMS/HealthcareCommission.php Executable file → Normal file
View File

0
app/Models/OLDLMS/Insurance.php Executable file → Normal file
View File

0
app/Models/OLDLMS/JadwalDokter.php Executable file → Normal file
View File

0
app/Models/OLDLMS/JadwalDokterDay.php Executable file → Normal file
View File

0
app/Models/OLDLMS/Kota.php Executable file → Normal file
View File

0
app/Models/OLDLMS/Livechat.php Executable file → Normal file
View File

0
app/Models/OLDLMS/Provinsi.php Executable file → Normal file
View File

0
app/Models/OLDLMS/Speciality.php Executable file → Normal file
View File

Some files were not shown because too many files have changed in this diff Show More