Update nh infos health care sheet
This commit is contained in:
parent
df2d442492
commit
511587acd9
|
@ -18,6 +18,8 @@ class UpdateNhInfosHealthCareSheetsView3 extends Migration
|
||||||
SELECT nhi.insured_id,
|
SELECT nhi.insured_id,
|
||||||
nhi.network_id,
|
nhi.network_id,
|
||||||
nhi.user_id,
|
nhi.user_id,
|
||||||
|
u.phone as insured_phone,
|
||||||
|
u.email as insured_email,
|
||||||
nhcs.*,
|
nhcs.*,
|
||||||
nhpc.name as practitioner_provider_class,
|
nhpc.name as practitioner_provider_class,
|
||||||
ag.lastname as institution_name,
|
ag.lastname as institution_name,
|
||||||
|
@ -30,6 +32,7 @@ class UpdateNhInfosHealthCareSheetsView3 extends Migration
|
||||||
p_nhpc.name as consultation_practitioner_provider_class
|
p_nhpc.name as consultation_practitioner_provider_class
|
||||||
FROM nh_health_care_sheets nhcs
|
FROM nh_health_care_sheets nhcs
|
||||||
INNER JOIN nh_insurances nhi ON nhi.id = nhcs.insurance_id
|
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 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 countries_currencies cc ON cc.id = ag.country_id
|
||||||
INNER JOIN nh_provider_classes nhpc ON nhpc.id = nhcs.practitioner_provider_class_id
|
INNER JOIN nh_provider_classes nhpc ON nhpc.id = nhcs.practitioner_provider_class_id
|
||||||
|
|
Loading…
Reference in New Issue