Update nh infos health care sheet

This commit is contained in:
Djery-Tom 2022-01-26 09:46:09 +01:00
parent df2d442492
commit 511587acd9
1 changed files with 3 additions and 0 deletions

View File

@ -18,6 +18,8 @@ class UpdateNhInfosHealthCareSheetsView3 extends Migration
SELECT nhi.insured_id,
nhi.network_id,
nhi.user_id,
u.phone as insured_phone,
u.email as insured_email,
nhcs.*,
nhpc.name as practitioner_provider_class,
ag.lastname as institution_name,
@ -30,6 +32,7 @@ class UpdateNhInfosHealthCareSheetsView3 extends Migration
p_nhpc.name as consultation_practitioner_provider_class
FROM nh_health_care_sheets nhcs
INNER JOIN nh_insurances nhi ON nhi.id = nhcs.insurance_id
INNER JOIN users u ON u.id = nhi.user_id
INNER JOIN agent_plus ag ON ag.network_agent_id = nhcs.network_agent_id
INNER JOIN countries_currencies cc ON cc.id = ag.country_id
INNER JOIN nh_provider_classes nhpc ON nhpc.id = nhcs.practitioner_provider_class_id