Skip to content

Conversation

@labkey-martyp
Copy link
Contributor

Rationale

Make demographicsParents query part of core EHR and add it to the animal record in core EHR. Most centers have demographicsParents already overwritten and are adding it as Parents to the animal record. This adds a base version of demographicsParents and will add it to the animal record if not already done so by the center. Includes supplemental pedigree.

Changes

  • demographicsParents query
  • Add Parents to Animal table in DefaultEHRCustomizer

END as numParents
FROM study.demographics d

UNION
Copy link
Contributor

Choose a reason for hiding this comment

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

UNION ALL is faster if the result of UNION is unique

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah good call. I guess we'll make that assumption that there won't be duplicate records in supplemental pedigree and demographics.

@labkey-martyp labkey-martyp merged commit 4b3cd87 into release22.11-SNAPSHOT Feb 19, 2023
@labkey-martyp labkey-martyp deleted the 22.11_fb_core_ehr_parents branch February 19, 2023 21:09
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