Skip to content

Conversation

@labkey-martyp
Copy link
Contributor

@labkey-martyp labkey-martyp commented Oct 7, 2021

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

  • ETL definitions and source queries
  • Dataset definitions
  • Views and metadata
  • Reporting pages
  • Clinical history for Clinical Remarks

WHERE evtEvtGrp.EVENT_GROUP_ID = 56
-- 56 Breeder

GROUP BY anmEvt.ANIMAL_EVENT_ID,
Copy link
Contributor

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?

Copy link
Contributor Author

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');
Copy link
Contributor

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');
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
SELECT core.executeJavaUpgradeCode('etl;{NIRC_EHR}/ehr_lookups');
SELECT core.executeJavaUpgradeCode('etl;{NIRC_EHR}/ehr_lookups;truncate');

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call. Updated

Copy link
Contributor

@labkey-jeckels labkey-jeckels left a 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-martyp
Copy link
Contributor Author

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

@labkey-martyp labkey-martyp merged commit ac15c37 into release21.7-SNAPSHOT Oct 8, 2021
@labkey-martyp labkey-martyp deleted the 21.7_fb_etl_breeder_comments branch October 8, 2021 21:24
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.

4 participants