Add animal group assignment tracking and recode pairing formation types - #19
Open
labkey-martyp wants to merge 1 commit into
Open
Add animal group assignment tracking and recode pairing formation types#19labkey-martyp wants to merge 1 commit into
labkey-martyp wants to merge 1 commit into
Conversation
Adds an animal_group_members dataset with a data-entry form, history sources, and demographics/summary queries so group membership is tracked over time and closed on death and departure. Replaces the free-text pairing formation type list with coded values that carry display titles and disable dates.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rationale
Animal group membership had nowhere to live in the NBRI EHR, so there was no record of which animals belonged to which group or when they joined and left. The pairing formation type list is recoded in the same change because it shared the same weakness: free-text labels with no way to retire an option that is no longer offered.
Related Pull Requests
None.
Changes
Adds an animal group membership dataset that tracks when an animal joins and leaves a group, with a data-entry form for making those assignments.
Ends group memberships automatically when an animal dies or departs, and permits backdated entries since memberships are routinely recorded after the fact.
Surfaces an animal's active groups on demographics, and adds summary queries for group housing by room and for membership overlap across a date range.
Recodes pairing formation types as coded values carrying display titles and disable dates.