-
Notifications
You must be signed in to change notification settings - Fork 0
Breeder and Clinical Remarks ETL and reporting #47
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
Breeder and Clinical Remarks ETL and reporting #47
Conversation
| WHERE evtEvtGrp.EVENT_GROUP_ID = 56 | ||
| -- 56 Breeder | ||
|
|
||
| GROUP BY anmEvt.ANIMAL_EVENT_ID, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't see any aggregate column, Is this group by needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, removed from both source queries. There are a few other source queries with group bys but no aggregates, wasn't sure if there were duplicate row issues in the source data.
| @@ -0,0 +1,4 @@ | |||
| SELECT core.executeJavaUpgradeCode('reloadStudy'); | |||
| SELECT core.executeJavaUpgradeCode('etl;{NIRC_EHR}/breeder'); | |||
| SELECT core.executeJavaUpgradeCode('etl;{NIRC_EHR}/ehr_lookups'); | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we might need to truncate ehr_lookups and run.
| @@ -0,0 +1,4 @@ | |||
| SELECT core.executeJavaUpgradeCode('reloadStudy'); | |||
| SELECT core.executeJavaUpgradeCode('etl;{NIRC_EHR}/breeder'); | |||
| SELECT core.executeJavaUpgradeCode('etl;{NIRC_EHR}/ehr_lookups'); | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| SELECT core.executeJavaUpgradeCode('etl;{NIRC_EHR}/ehr_lookups'); | |
| SELECT core.executeJavaUpgradeCode('etl;{NIRC_EHR}/ehr_lookups;truncate'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call. Updated
labkey-jeckels
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks OK to me with Ankur's suggestions. Per our discussion, would be great to get the lookup sets cache to auto-clear via a DataIterator and/or QueryUpdateService hook
@labkey-jeckels Added cache clearing in this PR, LabKey/ehrModules#250 |
Rationale
Incremental ETLs migrating Breeder and Comments (Clinical Remarks) into datasets. Update reporting including clinical history for clinical remarks.
Related Pull Requests
LabKey/ehrModules#250
Changes