Skip to content

BYOC_ID: 45366 - Refactor ooh consultations#1280

Open
Jennit07 wants to merge 4 commits into
developmentfrom
refactor-ooh-consultations
Open

BYOC_ID: 45366 - Refactor ooh consultations#1280
Jennit07 wants to merge 4 commits into
developmentfrom
refactor-ooh-consultations

Conversation

@Jennit07

@Jennit07 Jennit07 commented Apr 6, 2026

Copy link
Copy Markdown
Collaborator

refactoring of targets missing from here as this should be done in the top level script

@Jennit07 Jennit07 requested a review from OluwatobiOni April 6, 2026 10:47
@Jennit07 Jennit07 marked this pull request as ready for review April 13, 2026 10:53
@Jennit07

Copy link
Copy Markdown
Collaborator Author

Update: PR ready for review


# Disconnect from Denodo
on.exit(try(DBI::dbDisconnect(denodo_connect), silent = TRUE), add = TRUE)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is above where the data is read in other refactored scripts (i.e. above line 22 here). I'm not sure if this makes a difference but might be nice to move it for consistency?

year,
file_path = get_boxi_extract_path(year = year, type = "gp_ooh-c")
denodo_connect = get_denodo_connection(BYOC_MODE = BYOC_MODE),
file_path = get_boxi_extract_path(year = year, type = "gp_ooh-c"),

@LucyEmma22 LucyEmma22 Apr 23, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think get_boxi_extract_path should have BYOC_MODE passed to it:

file_path = get_boxi_extract_path(year = year, type = "gp_ooh-c", BYOC_MODE),

gender = "gender",
postcode = "patient_postcode",
hbrescode = "patient_nhs_board_code_9_curr",
hscp = "hscp_of_residence_code_curr",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Waiting for this to be changed from hcsp_of_residence_code_curr following UAT feedback.

location = "treatement_location_code",
location_description = "treatment_location_description",
hbtreatcode = "treatment_nhs_board_code_9",
kis_accessed = "kis_accessed",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a factor in BOXI and character in Denodo. I'm not sure if that will have any downstream effects?

@LucyEmma22

Copy link
Copy Markdown
Collaborator

refactoring of targets missing from here as this should be done in the top level script

Does process_extract_ooh_consultations.R need to be refactored to include BYOC_MODE = FALSE, run_id = NA and run_date_time = NA as arguments, and add run_id and run_date_time as columns? Or will this also be done only in the top level script?

@Jennit07 Jennit07 added ready for PHS testing PR complete Preprod data available On hold Waiting for something / someone outside of our control and removed PR ready for review labels May 11, 2026
@github-actions

Copy link
Copy Markdown

This Pull Request is stale because it has been at least 30 days with no activity. It will be closed if there is no activity within 7 days.

@github-actions github-actions Bot added the Stale label Jun 15, 2026
@OluwatobiOni

Copy link
Copy Markdown
Collaborator

Waiting on UAT changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants