From 4fd1cde888f3c3940ebf3744099b69c9f1aeac6e Mon Sep 17 00:00:00 2001 From: mpekar1 Date: Mon, 29 Jul 2024 14:17:26 +1200 Subject: [PATCH] Update mha_generalised_anxiety_disorder.sql The referenced lookup table changed name. --- health/mha_generalised_anxiety_disorder.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/health/mha_generalised_anxiety_disorder.sql b/health/mha_generalised_anxiety_disorder.sql index c252a42..bc13c07 100644 --- a/health/mha_generalised_anxiety_disorder.sql +++ b/health/mha_generalised_anxiety_disorder.sql @@ -191,7 +191,7 @@ INSERT INTO [IDI_Sandpit].[DL-MAA20XX-YY].[tmp_anxiety_solo] (snz_uid, event_dat SELECT a.[snz_uid] ,[moh_pha_dispensed_date] AS event_date FROM [IDI_Clean_YYYYMM].[moh_clean].[pharmaceutical] AS a -INNER JOIN [IDI_Metadata].[clean_read_CLASSIFICATIONS].[moh_dim_form_pack_subsidy_code] AS b +INNER JOIN [IDI_Metadata].[clean_read_CLASSIFICATIONS].[moh_pharmaceutical_lookup] AS b ON a.[moh_pha_dim_form_pack_code] = b.[DIM_FORM_PACK_SUBSIDY_KEY] WHERE EXISTS ( SELECT 1 @@ -207,7 +207,7 @@ INSERT INTO [IDI_Sandpit].[DL-MAA20XX-YY].[tmp_anxiety_multi] (snz_uid, event_da SELECT a.[snz_uid] ,[moh_pha_dispensed_date] AS event_date FROM [IDI_Clean_YYYYMM].[moh_clean].[pharmaceutical] AS a -INNER JOIN [IDI_Metadata].[clean_read_CLASSIFICATIONS].[moh_dim_form_pack_subsidy_code] AS b +INNER JOIN [IDI_Metadata].[clean_read_CLASSIFICATIONS].[moh_pharmaceutical_lookup] AS b ON a.[moh_pha_dim_form_pack_code] = b.[DIM_FORM_PACK_SUBSIDY_KEY] WHERE EXISTS ( SELECT 1