Skip to content

Commit

Permalink
Update mha_generalised_anxiety_disorder.sql
Browse files Browse the repository at this point in the history
The referenced lookup table changed name.
  • Loading branch information
mpekar1 authored Jul 29, 2024
1 parent d1856e3 commit 4fd1cde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions health/mha_generalised_anxiety_disorder.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 4fd1cde

Please sign in to comment.