Server 103 Commit
This commit is contained in:
0
Modules/Internal/Config/.gitkeep
Normal file → Executable file
0
Modules/Internal/Config/.gitkeep
Normal file → Executable file
0
Modules/Internal/Config/config.php
Normal file → Executable file
0
Modules/Internal/Config/config.php
Normal file → Executable file
0
Modules/Internal/Console/.gitkeep
Normal file → Executable file
0
Modules/Internal/Console/.gitkeep
Normal file → Executable file
0
Modules/Internal/Database/Migrations/.gitkeep
Normal file → Executable file
0
Modules/Internal/Database/Migrations/.gitkeep
Normal file → Executable file
0
Modules/Internal/Database/Seeders/.gitkeep
Normal file → Executable file
0
Modules/Internal/Database/Seeders/.gitkeep
Normal file → Executable file
0
Modules/Internal/Database/Seeders/InternalDatabaseSeeder.php
Normal file → Executable file
0
Modules/Internal/Database/Seeders/InternalDatabaseSeeder.php
Normal file → Executable file
0
Modules/Internal/Database/factories/.gitkeep
Normal file → Executable file
0
Modules/Internal/Database/factories/.gitkeep
Normal file → Executable file
0
Modules/Internal/Emails/SendVerifyEmail.php
Normal file → Executable file
0
Modules/Internal/Emails/SendVerifyEmail.php
Normal file → Executable file
0
Modules/Internal/Entities/.gitkeep
Normal file → Executable file
0
Modules/Internal/Entities/.gitkeep
Normal file → Executable file
0
Modules/Internal/Events/ForgetPassword.php
Normal file → Executable file
0
Modules/Internal/Events/ForgetPassword.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/.gitkeep
Normal file → Executable file
0
Modules/Internal/Http/Controllers/.gitkeep
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/AppointmentController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/AppointmentController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/AuditTrailController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/AuditTrailController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/AuthController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/AuthController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/BenefitController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/BenefitController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/CityController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/CityController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/ClaimController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/ClaimController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/ClaimRequestController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/ClaimRequestController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/CorporateBenefitController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/CorporateBenefitController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/CorporateController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/CorporateController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/CorporateFormulariumController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/CorporateFormulariumController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/CorporateManageController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/CorporateManageController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/CorporateMemberController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/CorporateMemberController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/CorporatePlanController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/CorporatePlanController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/CorporateServiceController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/CorporateServiceController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/DailyMonitoringController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/DailyMonitoringController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/DiagnosisController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/DiagnosisController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/DiagnosisExclusionController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/DiagnosisExclusionController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/DiagnosisTemplateController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/DiagnosisTemplateController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/DistrictController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/DistrictController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/DivisionController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/DivisionController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/DoctorController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/DoctorController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/DoctorRatingController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/DoctorRatingController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/DrugController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/DrugController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/FormulariumController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/FormulariumController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/FormulariumTemplateController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/FormulariumTemplateController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/HospitalController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/HospitalController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/LaboratoriumResultController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/LaboratoriumResultController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/Linksehat/PaymentController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/Linksehat/PaymentController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/LivechatController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/LivechatController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/MemberController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/MemberController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/NavigationController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/NavigationController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/OptionController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/OptionController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/OrganizationController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/OrganizationController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/PlanController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/PlanController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/PrescriptionController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/PrescriptionController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/ProvinceController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/ProvinceController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/ReportLogController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/ReportLogController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/RequestLogBenefitController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/RequestLogBenefitController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/RequestLogController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/RequestLogController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/RequestLogMedicineController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/RequestLogMedicineController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/ServiceController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/ServiceController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/SpecialityController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/SpecialityController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/UserManagementController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/UserManagementController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/VillageController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/Api/VillageController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/ClaimEncounterController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/ClaimEncounterController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/InternalController.php
Normal file → Executable file
0
Modules/Internal/Http/Controllers/InternalController.php
Normal file → Executable file
0
Modules/Internal/Http/Middleware/.gitkeep
Normal file → Executable file
0
Modules/Internal/Http/Middleware/.gitkeep
Normal file → Executable file
0
Modules/Internal/Http/Requests/.gitkeep
Normal file → Executable file
0
Modules/Internal/Http/Requests/.gitkeep
Normal file → Executable file
0
Modules/Internal/Listeners/SendVerifyEmail.php
Normal file → Executable file
0
Modules/Internal/Listeners/SendVerifyEmail.php
Normal file → Executable file
0
Modules/Internal/Notifications/NotifyVerifyEmail.php
Normal file → Executable file
0
Modules/Internal/Notifications/NotifyVerifyEmail.php
Normal file → Executable file
0
Modules/Internal/Providers/.gitkeep
Normal file → Executable file
0
Modules/Internal/Providers/.gitkeep
Normal file → Executable file
0
Modules/Internal/Providers/EventServiceProvider.php
Normal file → Executable file
0
Modules/Internal/Providers/EventServiceProvider.php
Normal file → Executable file
0
Modules/Internal/Providers/InternalServiceProvider.php
Normal file → Executable file
0
Modules/Internal/Providers/InternalServiceProvider.php
Normal file → Executable file
0
Modules/Internal/Providers/RouteServiceProvider.php
Normal file → Executable file
0
Modules/Internal/Providers/RouteServiceProvider.php
Normal file → Executable file
0
Modules/Internal/Resources/assets/.gitkeep
Normal file → Executable file
0
Modules/Internal/Resources/assets/.gitkeep
Normal file → Executable file
0
Modules/Internal/Resources/assets/js/app.js
Normal file → Executable file
0
Modules/Internal/Resources/assets/js/app.js
Normal file → Executable file
0
Modules/Internal/Resources/assets/sass/app.scss
Normal file → Executable file
0
Modules/Internal/Resources/assets/sass/app.scss
Normal file → Executable file
0
Modules/Internal/Resources/lang/.gitkeep
Normal file → Executable file
0
Modules/Internal/Resources/lang/.gitkeep
Normal file → Executable file
0
Modules/Internal/Resources/views/.gitkeep
Normal file → Executable file
0
Modules/Internal/Resources/views/.gitkeep
Normal file → Executable file
0
Modules/Internal/Resources/views/index.blade.php
Normal file → Executable file
0
Modules/Internal/Resources/views/index.blade.php
Normal file → Executable file
0
Modules/Internal/Resources/views/layouts/master.blade.php
Normal file → Executable file
0
Modules/Internal/Resources/views/layouts/master.blade.php
Normal file → Executable file
0
Modules/Internal/Routes/.gitkeep
Normal file → Executable file
0
Modules/Internal/Routes/.gitkeep
Normal file → Executable file
0
Modules/Internal/Routes/api.php
Normal file → Executable file
0
Modules/Internal/Routes/api.php
Normal file → Executable file
0
Modules/Internal/Routes/web.php
Normal file → Executable file
0
Modules/Internal/Routes/web.php
Normal file → Executable file
0
Modules/Internal/Services/CorporateService.php
Normal file → Executable file
0
Modules/Internal/Services/CorporateService.php
Normal file → Executable file
0
Modules/Internal/Services/ExclusionService.php
Normal file → Executable file
0
Modules/Internal/Services/ExclusionService.php
Normal file → Executable file
0
Modules/Internal/Services/FormulariumService.php
Normal file → Executable file
0
Modules/Internal/Services/FormulariumService.php
Normal file → Executable file
0
Modules/Internal/Services/IcdService.php
Normal file → Executable file
0
Modules/Internal/Services/IcdService.php
Normal file → Executable file
75
Modules/Internal/Services/MemberEnrollmentService.php
Normal file → Executable file
75
Modules/Internal/Services/MemberEnrollmentService.php
Normal file → Executable file
@@ -952,8 +952,6 @@ class MemberEnrollmentService
|
||||
}
|
||||
break;
|
||||
case "2": // Member Information Update (Without Replacement Card)
|
||||
|
||||
|
||||
$this->validateRow($row);
|
||||
$member = Member::query()
|
||||
->where('member_id', $row['member_id'])
|
||||
@@ -1188,6 +1186,79 @@ class MemberEnrollmentService
|
||||
'sKTP' => $row['nric'] ?? null,
|
||||
]
|
||||
);
|
||||
} else {
|
||||
$name = explode(" ", $row['name']);
|
||||
// First name
|
||||
$first_name = isset($name[0]) ? $name[0] : '';
|
||||
// Middle name
|
||||
$middle_name = isset($name[1]) ? $name[1] : '';
|
||||
// Last name
|
||||
$last_name = '';
|
||||
if (count($name) > 2) {
|
||||
$last_name = implode(" ", array_slice($name, 2));
|
||||
}
|
||||
|
||||
if ($row['relationship_with_principal'] == 'H') {
|
||||
$sMartialStatus = 6;
|
||||
$nIDHubunganKeluarga = 3;
|
||||
} else if ($row['relationship_with_principal'] == 'W') {
|
||||
$sMartialStatus = 7;
|
||||
$nIDHubunganKeluarga = 4;
|
||||
} else if ($row['relationship_with_principal'] == 'S') {
|
||||
$sMartialStatus = 4;
|
||||
$nIDHubunganKeluarga = 5;
|
||||
} else if ($row['relationship_with_principal'] == 'D') {
|
||||
$sMartialStatus = 5;
|
||||
$nIDHubunganKeluarga = 5;
|
||||
} else {
|
||||
$sMartialStatus = 0;
|
||||
$nIDHubunganKeluarga = 0;
|
||||
}
|
||||
if ($row['sex'] == 'M') {
|
||||
$nIDJenisKelamin = 1;
|
||||
} else {
|
||||
$nIDJenisKelamin = 2;
|
||||
};
|
||||
|
||||
|
||||
$userLms = User::create(
|
||||
[
|
||||
'sFirstName' => $first_name,
|
||||
'sLastName' => $middle_name . ' ' . $last_name, // Ubah ini dengan variabel yang sesuai dengan nama belakang (last name)
|
||||
'sPhone' => $row['telephone_mobile'],
|
||||
'sEmail' => str_replace(' ', '', $row['email']),
|
||||
'nIDHubunganKeluarga' => $nIDHubunganKeluarga !== 0 ? $nIDHubunganKeluarga : null,
|
||||
'dUpdateOn' => date('Y-m-d H:i:s'),
|
||||
]
|
||||
);
|
||||
|
||||
$nIDUser = $userLms->nID;
|
||||
$userLmsDetail = UserDetail::create(
|
||||
[
|
||||
'nIDUser' => $nIDUser,
|
||||
// 'dTanggalLahir' => $row['date_of_birth'],
|
||||
'dTanggalLahir' => $this->dateParser($row['date_of_birth']),
|
||||
'dCreateOn' => date('Y-m-d H:i:s'),
|
||||
'sMartialStatus' => $sMartialStatus != 0 ? $sMartialStatus : null,
|
||||
'nIDJenisKelamin' => $nIDJenisKelamin,
|
||||
'sCreateBy' => $nIDUser,
|
||||
'sKTP' => $row['nric'] ?? null,
|
||||
]
|
||||
);
|
||||
|
||||
UserInsurance::updateOrCreate(
|
||||
['nIDUser' => $nIDUser],
|
||||
[
|
||||
'nIDInsurance' => 106,
|
||||
'sNamaPeserta' => $row['name'],
|
||||
'dStartDate' => $row['member_effective_date'],
|
||||
'dExpireDate' => $row['member_expiry_date'],
|
||||
'dTanggalLahir' => $row['date_of_birth'] ? $this->dateParser($row['date_of_birth']) : null,
|
||||
'sNoPolis' => $row['member_id'],
|
||||
'sVerificationCode' => (string) Uuid::uuid5(Uuid::NAMESPACE_DNS, $row['member_id'])
|
||||
]
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
12
Modules/Internal/Services/RequestLogService.php
Normal file → Executable file
12
Modules/Internal/Services/RequestLogService.php
Normal file → Executable file
@@ -282,12 +282,12 @@ class RequestLogService
|
||||
}
|
||||
|
||||
if ($row['record_mode'] == 1){
|
||||
$requestLog = RequestLog::updateOrCreate(
|
||||
[
|
||||
'member_id' => $member->id,
|
||||
'submission_date' => $row['submission_date'],
|
||||
'organization_id' => $organization_id,
|
||||
],
|
||||
$requestLog = RequestLog::create(
|
||||
// [
|
||||
// 'member_id' => $member->id,
|
||||
// 'submission_date' => $row['submission_date'],
|
||||
// 'organization_id' => $organization_id,
|
||||
// ],
|
||||
$data
|
||||
);
|
||||
} else if ($row['record_mode'] == 2) {
|
||||
|
||||
0
Modules/Internal/Tests/Feature/.gitkeep
Normal file → Executable file
0
Modules/Internal/Tests/Feature/.gitkeep
Normal file → Executable file
0
Modules/Internal/Tests/Unit/.gitkeep
Normal file → Executable file
0
Modules/Internal/Tests/Unit/.gitkeep
Normal file → Executable file
0
Modules/Internal/Transformers/AppointmentResource.php
Normal file → Executable file
0
Modules/Internal/Transformers/AppointmentResource.php
Normal file → Executable file
0
Modules/Internal/Transformers/AuditTrailResource.php
Normal file → Executable file
0
Modules/Internal/Transformers/AuditTrailResource.php
Normal file → Executable file
0
Modules/Internal/Transformers/ClaimEditResource.php
Normal file → Executable file
0
Modules/Internal/Transformers/ClaimEditResource.php
Normal file → Executable file
0
Modules/Internal/Transformers/ClaimHistoryCareResource.php
Normal file → Executable file
0
Modules/Internal/Transformers/ClaimHistoryCareResource.php
Normal file → Executable file
0
Modules/Internal/Transformers/ClaimRequestResource.php
Normal file → Executable file
0
Modules/Internal/Transformers/ClaimRequestResource.php
Normal file → Executable file
0
Modules/Internal/Transformers/ClaimRequestShowResource.php
Normal file → Executable file
0
Modules/Internal/Transformers/ClaimRequestShowResource.php
Normal file → Executable file
0
Modules/Internal/Transformers/ClaimResource.php
Normal file → Executable file
0
Modules/Internal/Transformers/ClaimResource.php
Normal file → Executable file
0
Modules/Internal/Transformers/ClaimShowResource.php
Normal file → Executable file
0
Modules/Internal/Transformers/ClaimShowResource.php
Normal file → Executable file
0
Modules/Internal/Transformers/CorporateFormulariumResource.php
Normal file → Executable file
0
Modules/Internal/Transformers/CorporateFormulariumResource.php
Normal file → Executable file
0
Modules/Internal/Transformers/CorporateManageResource.php
Normal file → Executable file
0
Modules/Internal/Transformers/CorporateManageResource.php
Normal file → Executable file
0
Modules/Internal/Transformers/CorporateServiceConfigResource.php
Normal file → Executable file
0
Modules/Internal/Transformers/CorporateServiceConfigResource.php
Normal file → Executable file
0
Modules/Internal/Transformers/DailyMonitoringResource.php
Normal file → Executable file
0
Modules/Internal/Transformers/DailyMonitoringResource.php
Normal file → Executable file
0
Modules/Internal/Transformers/DiagnosisExclusionResource.php
Normal file → Executable file
0
Modules/Internal/Transformers/DiagnosisExclusionResource.php
Normal file → Executable file
0
Modules/Internal/Transformers/DoctorResource.php
Normal file → Executable file
0
Modules/Internal/Transformers/DoctorResource.php
Normal file → Executable file
0
Modules/Internal/Transformers/EncounterResource.php
Normal file → Executable file
0
Modules/Internal/Transformers/EncounterResource.php
Normal file → Executable file
0
Modules/Internal/Transformers/LinksehatPaymentResource.php
Normal file → Executable file
0
Modules/Internal/Transformers/LinksehatPaymentResource.php
Normal file → Executable file
0
Modules/Internal/Transformers/LivechatResource.php
Normal file → Executable file
0
Modules/Internal/Transformers/LivechatResource.php
Normal file → Executable file
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user