Skip to content

Commit 589dcc8

Browse files
committed
inclusion - exclusion labelling on ssd_person
1 parent fa33621 commit 589dcc8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

deployment_extracts/systemc/live/ssd_deployment_individual_files/systemc_sqlserver_v1.3.5_1_20251110.sql

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ SELECT
360360
FROM
361361
HDM.Child_Social.DIM_PERSON AS p
362362

363-
-- [TESTING][PLACEHOLDER] 903 table refresh only in reporting period?
363+
-- [TESTING] 903 table refresh only in reporting period?
364364
LEFT JOIN (
365365
-- ??other accessible location for NO_UPN data than 903 table?? -- [TESTING|LA DEBUG]
366366
SELECT
@@ -375,13 +375,17 @@ ON
375375
p.DIM_PERSON_ID = f903.dim_person_id
376376

377377
WHERE
378+
/* EXCLUSIONS */
378379

379380
-- p.DIM_PERSON_ID IN (1, 2, 3) AND -- -- hard filter on CMS person ids for LA reduced cohort testing
380381

381382
p.DIM_PERSON_ID IS NOT NULL
382383
AND p.DIM_PERSON_ID <> -1
383-
-- AND YEAR(p.BIRTH_DTTM) != 1900 -- #DtoI-1814
384+
-- AND YEAR(p.BIRTH_DTTM) != 1900 -- Remove admin records hard-filter -- #DtoI-1814
385+
386+
/* INCLUSIONS */
384387
AND (p.IS_CLIENT = 'Y'
388+
385389
OR (
386390
EXISTS (
387391
SELECT 1

0 commit comments

Comments
 (0)