Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DC-3485] Update generate_ehr_upload_pids.py to automatically exclude sites without submissions #1804

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

hiro-mishima
Copy link
Contributor

@hiro-mishima hiro-mishima commented Nov 14, 2023

  • Before the change, you had to manually copy and paste the SELECT statement to the view definition for the update. With this change, you do not need to do so: the DDL will re-create the view for you.
  • Curation playbook is updated accordingly.

@hiro-mishima hiro-mishima changed the title [DC-3485] Update ehr_upload_pids [DC-3485] Update generate_ehr_upload_pids.py to automatically exclude sites without submissions Nov 15, 2023
Copy link
Contributor

@nishanthpp93 nishanthpp93 left a comment

Choose a reason for hiding this comment

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

Looks good, but one concern. Let me know if already addressed.

Comment on lines +34 to +39
person_id,
current_datetime() AS report_run_time,
Org_ID as org_id,
HPO_ID as hpo_id,
Site_Name as site_name,
TIMESTAMP_MICROS(t.last_modified_time * 1000) AS latest_upload_time
Copy link
Contributor

Choose a reason for hiding this comment

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

@hiro-mishima Our biggest problem with the ehr_upload_pids was the "Query too large" error, which prevented us from doing this. This feels like it is making the query more complicated. Let me know if you've already tested this and it works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants