-
Notifications
You must be signed in to change notification settings - Fork 1
Weights and species reports #13
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
Merged
labkey-martyp
merged 5 commits into
release26.7-SNAPSHOT
from
26.7_fb_weight_species_ranges
Aug 3, 2026
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
61dcc6d
Re-declare ehr wrapped lookup columns in NBRI query metadata
labkey-martyp a9bde65
Key NBRI weight ranges on species codes and load species lookups
labkey-martyp 433b995
Use species codes in NBRI test subjects for weight range validation
labkey-martyp 1dd9c36
Use species and gender codes in NBRI reference sample data
labkey-martyp 0dc868e
Shorten re-declaration comments in NBRI query metadata
labkey-martyp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -111,6 +111,8 @@ routes | |
| sib_score | ||
| source | ||
| snomed | ||
| species | ||
| species_codes | ||
| skin_problem | ||
| status_codes | ||
| stool_score | ||
|
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| Species Min Weight Max Weight | ||
| Cynomolgus 0.0 20.0 | ||
| Rhesus 0.0 35.0 | ||
| CMO 0.04 2.2 | ||
| MCY 0.2 16.0 | ||
| MMU 0.2 30.0 | ||
| MNE 0.2 30.0 |
19 changes: 19 additions & 0 deletions
19
nbri_ehr/resources/queries/ehr_lookups/weight_ranges.query.xml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| <query xmlns="http://labkey.org/data/xml/query"> | ||
| <metadata> | ||
| <tables xmlns="http://labkey.org/data/xml"> | ||
| <table tableName="weight_ranges" tableDbType="TABLE"> | ||
| <columns> | ||
| <column columnName="species"> | ||
| <columnTitle>Species</columnTitle> | ||
| <fk> | ||
| <fkDbSchema>ehr_lookups</fkDbSchema> | ||
| <fkTable>species_codes</fkTable> | ||
| <fkColumnName>code</fkColumnName> | ||
| <fkDisplayColumnName>common_name</fkDisplayColumnName> | ||
| </fk> | ||
| </column> | ||
| </columns> | ||
| </table> | ||
| </tables> | ||
| </metadata> | ||
| </query> |
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
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
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
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
26 changes: 13 additions & 13 deletions
26
nbri_ehr/test/sampledata/nbri_ehr/study/study/datasets/datasetDemographics.tsv
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,14 @@ | ||
| objectid Id QCStateLabel date birth death calculated_status gender sire dam species origin performedby | ||
| 1 44444 Completed -1381d -1381d Alive 1 44442 44443 10 00001 1004 | ||
| 2 44446 Completed -1406d -1406d Alive 1 44442 44443 10 00003 1004 | ||
| 3 44445 Completed -1414d -1414d -726d Dead 2 44442 44443 10 00004 1004 | ||
| 4 TEST6390238 Completed -3923d -3923d Shipped 2 3565069 5250080 9 00002 1004 | ||
| 5 TEST5904521 Completed -5431d -5431d Shipped 1 8377984 9 00004 1004 | ||
| 6 TEST3804589 Completed -5806d -5806d Shipped 1 493957 9749422 9 00005 1004 | ||
| 7 TEST2312318 Completed -8069d -8069d Shipped 1 5748235 8739374 9 00002 1004 | ||
| 8 TEST1993532 Completed -11808d -11808d -2259d Dead 2 5409336 3784452 9 00003 1004 | ||
| 9 TEST4551032 Completed -6362d -6362d Alive 1 5030167 8416939 9 00001 1004 | ||
| 11 44442 Completed -6100d -6100d Alive 1 8377984 10 00004 1004 | ||
| 12 44443 Completed -6100d -6100d Alive 1 8377984 10 00004 1004 | ||
| 13 44447 Completed -2600d -2600d Alive 1 8377984 10 00004 1004 | ||
| 14 8377984 Completed -2600d -2600d Alive 1 8377984 10 00004 1004 | ||
| 1 44444 Completed -1381d -1381d Alive M 44442 44443 MNE 00001 1004 | ||
| 2 44446 Completed -1406d -1406d Alive M 44442 44443 MNE 00003 1004 | ||
| 3 44445 Completed -1414d -1414d -726d Dead F 44442 44443 MNE 00004 1004 | ||
| 4 TEST6390238 Completed -3923d -3923d Shipped F 3565069 5250080 MMU 00002 1004 | ||
| 5 TEST5904521 Completed -5431d -5431d Shipped M 8377984 MMU 00004 1004 | ||
| 6 TEST3804589 Completed -5806d -5806d Shipped M 493957 9749422 CMO 00005 1004 | ||
| 7 TEST2312318 Completed -8069d -8069d Shipped M 5748235 8739374 MMU 00002 1004 | ||
| 8 TEST1993532 Completed -11808d -11808d -2259d Dead F 5409336 3784452 MMU 00003 1004 | ||
| 9 TEST4551032 Completed -6362d -6362d Alive M 5030167 8416939 MMU 00001 1004 | ||
| 11 44442 Completed -6100d -6100d Alive M 8377984 MNE 00004 1004 | ||
| 12 44443 Completed -6100d -6100d Alive F 8377984 MNE 00004 1004 | ||
| 13 44447 Completed -2600d -2600d Alive M 8377984 MNE 00004 1004 | ||
| 14 8377984 Completed -2600d -2600d Alive F 8377984 MNE 00004 1004 |
4 changes: 2 additions & 2 deletions
4
nbri_ehr/test/sampledata/nbri_ehr/study/study/datasets/datasetWeight.tsv
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
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
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.
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.
what is re-declared, the "CoAssignments" column?
"this file" as in assignment.query.xml?
there are more such comments in .query.xml files below - wondering if they are necessary.
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.
yeah I actually trimmed down those comments a lot. They were a lot longer. It's just redeclaring since this overrides the EHR version of this .query.xml. I'll shorten them further.