Skip to content

Commit

Permalink
prof_professional_name added
Browse files Browse the repository at this point in the history
  • Loading branch information
robjharrison committed Jun 5, 2024
1 parent 388bf68 commit 8404712
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cms_ssd_extract_sql/mosaic/SQL_Professionals_DW.sql
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ CREATE TABLE #t
(
prof_table_id INT /*Information not held as a separate field as Worker ID is unique*/,
prof_staff_id INT,
prof_professional_name VARCHAR(300), -- [REVIEW]
--FIRST_NAMES VARCHAR(50),
--LAST_NAMES VARCHAR(50),
prof_social_worker_registration_no VARCHAR(20),
prof_agency_worker_flag VARCHAR(10) /*Field removed from SSDS*/,
prof_professional_job_title VARCHAR(100),
prof_professional_job_title VARCHAR(500),
prof_professional_caseload INT DEFAULT 0,
prof_professional_department VARCHAR(100),
prof_full_time_equivalency DEC (10,2) /*Information not held in Mosaic; held in HR System (I-Trent)*/
Expand All @@ -38,6 +39,7 @@ INSERT #t
(
prof_table_id,
prof_staff_id,
prof_professional_name, -- [REVIEW] Used null as placholder until source field is identified
--FIRST_NAMES,
--LAST_NAMES,
prof_social_worker_registration_no,
Expand All @@ -50,6 +52,7 @@ INSERT #t
SELECT
d.prof_table_id,
d.prof_staff_id,
d.prof_professional_name, -- [REVIEW]
--d.FIRST_NAMES,
--d.LAST_NAMES,
d.prof_social_worker_registration_no,
Expand All @@ -63,6 +66,7 @@ FROM
SELECT
NULL prof_table_id /*Information not held as a separate field as Worker ID is unique*/,
a.ID prof_staff_id,
NULL prof_professional_name, --[REVIEW] Used null as placholder until source field is identified
a.FIRST_NAMES,
a.LAST_NAMES,
COALESCE(b.HCPCIdentifier, 'XX' + CAST(a.id as VARCHAR)) prof_social_worker_registration_no,
Expand Down Expand Up @@ -163,6 +167,7 @@ INNER JOIN
SELECT
t.prof_table_id,
t.prof_staff_id,
t.prof_professional_name, -- [REVIEW]
--t.FIRST_NAMES,
--t.LAST_NAMES,
t.prof_social_worker_registration_no,
Expand Down
5 changes: 5 additions & 0 deletions cms_ssd_extract_sql/mosaic/SQL_Professionals_Live.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ CREATE TABLE #t
(
prof_table_id INT /*Information not held as a separate field as Worker ID is unique*/, -- [REVIEW] Change to prof_profesional_id?
prof_staff_id INT,
prof_professional_name VARCHAR(300), -- [REVIEW] Used null as placholder until source field is identified
--FIRST_NAMES VARCHAR(50),
--LAST_NAMES VARCHAR(50),
prof_social_worker_registration_no VARCHAR(20),
Expand All @@ -20,6 +21,7 @@ INSERT #t
(
prof_table_id, -- [REVIEW] Change to prof_profesional_id?
prof_staff_id,
prof_professional_name, -- [REVIEW]
--FIRST_NAMES,
--LAST_NAMES,
--prof_social_worker_registration_no,
Expand All @@ -31,6 +33,7 @@ INSERT #t
SELECT
d.prof_table_id,
d.prof_staff_id,
d.prof_professional_name, --[REVIEW] Used null as placholder until source field is identified
--d.FIRST_NAMES,
--d.LAST_NAMES,
--d.prof_social_worker_registration_no,
Expand All @@ -43,6 +46,7 @@ FROM
SELECT
NULL prof_table_id /*Information not held as a separate field as Worker ID is unique*/,
a.ID prof_staff_id,
NULL prof_professional_name, --[REVIEW] Used null as placholder until source field is identified
--a.FIRST_NAMES,
--a.LAST_NAMES,
--COALESCE(b.HCPCIdentifier, 'XX' + CAST(a.id as VARCHAR)) prof_social_worker_registration_no,
Expand Down Expand Up @@ -130,6 +134,7 @@ INNER JOIN
SELECT
t.prof_table_id,
t.prof_staff_id,
t.prof_professional_name,
--t.FIRST_NAMES,
--t.LAST_NAMES,
t.prof_social_worker_registration_no,
Expand Down
1 change: 1 addition & 0 deletions cms_ssd_extract_sql/mosaic/ssd_professionals_essex.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
select
null prof_professional_id,
wkr.WORKER_ID prof_staff_id, -- [REVIEW]
null prof_professional_name, -- [REVIEW]
(
select
sw_no.REFERENCE
Expand Down
1 change: 1 addition & 0 deletions cms_ssd_extract_sql/mosaic/ssd_professionals_tag_dw.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
select
null prof_professional_id,
wkr.WORKER_ID prof_staff_id, -- [REVIEW]
null prof_professional_name, -- [REVIEW]
null prof_social_worker_registration_no,
null prof_agency_worker_flag,
null prof_professional_job_title,
Expand Down

0 comments on commit 8404712

Please sign in to comment.