Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
118 commits
Select commit Hold shift + click to select a range
6fb1d73
MOdified pairing input form to apply new method of displaying pairing…
Ohsudev Jun 10, 2025
b71e1d9
MOdified pairing input form to apply new method of displaying pairing…
Ohsudev Jun 10, 2025
361e341
Merge branch 'release24.11-SNAPSHOT' into 24.11_fb_PairingObservation…
Ohsudev Jun 11, 2025
e160002
MOdified pairing input form to apply new method of displaying pairing…
Ohsudev Jun 12, 2025
df52b47
MOdified pairing observation xtype controls.
Ohsudev Jun 13, 2025
da3480b
MOdified pairing observation xtype controls.
Ohsudev Jun 16, 2025
5bdb39e
MOdified pairing observation xtype controls.
Ohsudev Jun 17, 2025
efb7879
MOdified pairing observation xtype controls.
Ohsudev Jun 17, 2025
8e1ddc0
MOdified pairing observation xtype controls.
Ohsudev Jun 17, 2025
37e1011
MOdified pairing observation xtype controls.
Ohsudev Jun 17, 2025
2583ae8
MOdified pairing observation xtype controls.
Ohsudev Jun 18, 2025
235e16a
MOdified pairing observation xtype controls.
Ohsudev Jun 18, 2025
8058b88
MOdified pairing observation xtype controls.
Ohsudev Jun 19, 2025
3e561af
MOdified pairing observation xtype controls.
Ohsudev Jun 19, 2025
e650933
MOdified pairing observation xtype controls.
Ohsudev Jun 19, 2025
2ec0731
MOdified pairing observation xtype controls.
Ohsudev Jun 20, 2025
948bb87
MOdified pairing observation xtype controls.
Ohsudev Jun 23, 2025
3081487
MOdified pairing observation xtype controls.
Ohsudev Jun 24, 2025
edbe941
MOdified pairing observation xtype controls.
Ohsudev Jun 25, 2025
c539e9c
MOdified pairing observation xtype controls.
Ohsudev Jun 25, 2025
073ba4b
MOdified pairing observation xtype controls.
Ohsudev Jun 26, 2025
43ea50c
MOdified pairing observation xtype controls.
Ohsudev Jun 26, 2025
41e5bfc
MOdified pairing observation xtype controls.
Ohsudev Jun 26, 2025
44093d4
MOdified pairing observation xtype controls.
Ohsudev Jun 27, 2025
8c6907f
MOdified pairing observation xtype controls.
Ohsudev Jul 1, 2025
2833c6b
Modified pairing Observation input form to expand
Ohsudev Jul 8, 2025
0664926
Modified pairing Observation input form to expand
Ohsudev Jul 8, 2025
de3edb2
Merge branch 'release24.11-SNAPSHOT' into 24.11_fb_PairingObservation…
Ohsudev Jul 16, 2025
2487922
Modified new pairing observation input form to include new input fiel…
Ohsudev Jul 16, 2025
731d5cf
Merge branch 'release24.11-SNAPSHOT' into 24.11_fb_PairingObservation…
Ohsudev Jul 17, 2025
0a70d6f
Merge branch 'release24.11-SNAPSHOT' into 24.11_fb_PairingObservation…
Ohsudev Jul 29, 2025
bb5aeb2
Modified pairings input form.
Ohsudev Jul 30, 2025
17ff358
Modified pairings input form.
Ohsudev Jul 31, 2025
b250e83
Modified Pairing Observation's drop down listings
Ohsudev Aug 1, 2025
e3e0025
Modified Pairing Observation's drop down listings
Ohsudev Aug 1, 2025
e7366e1
Modified Pairing Observation's drop down listings
Ohsudev Aug 4, 2025
fc8f22f
Modified Pairing Observation's drop down listings
Ohsudev Aug 4, 2025
9b482a0
Modified Pairing Observation's drop down listings
Ohsudev Aug 4, 2025
8d835d0
Modified Pairing Observation's drop down listings
Ohsudev Aug 4, 2025
cee9d87
Modified Pairing Observation's drop down listings
Ohsudev Aug 6, 2025
7ed0c19
Modified BSU Rounds input form to include case information.
Ohsudev Aug 6, 2025
83c728b
Modified BSU Rounds input form to include case information.
Ohsudev Aug 6, 2025
a6e96e5
Modified BSU Rounds input form to include case information.
Ohsudev Aug 6, 2025
92e4fe7
MOdified pairing observation input form to include Other infant id la…
Ohsudev Aug 19, 2025
d9139c7
Merge branch 'refs/heads/release24.11-SNAPSHOT' into 24.11_fb_Pairing…
Ohsudev Aug 20, 2025
d0643e5
MOdified Pairing obsrevation input forms to include category input fi…
Ohsudev Aug 21, 2025
8719d97
MOdified Pairing obsrevation input forms to include category input fi…
Ohsudev Aug 21, 2025
f83cffa
MOdified Pairing obsrevation input forms to include category input fi…
Ohsudev Aug 21, 2025
9c629b2
MOdified Pairing observation input forms to include category input fi…
Ohsudev Aug 22, 2025
1dddca6
MOdified Pairing observation input forms to include category input fi…
Ohsudev Aug 22, 2025
6fa2b6d
MOdified Pairing observation input forms to include category input fi…
Ohsudev Aug 25, 2025
e27a082
MOdified Pairing observation input forms to include category input fi…
Ohsudev Aug 25, 2025
fd1a722
MOdified Pairing observation input forms to include category input fi…
Ohsudev Aug 25, 2025
31061dd
MOdified Pairing observation input forms to include category input fi…
Ohsudev Aug 26, 2025
ee929cc
MOdified Pairing observation input forms to include category input fi…
Ohsudev Aug 26, 2025
d73e0ca
MOdified Pairing observation input forms to include category input fi…
Ohsudev Aug 26, 2025
7d93fa6
MOdified Pairing observation input forms to include category input fi…
Ohsudev Aug 26, 2025
6f1a1a7
MOdified Pairing observation input forms to include category input fi…
Ohsudev Aug 26, 2025
d19375c
MOdified Pairing observation input forms to include category input fi…
Ohsudev Aug 26, 2025
f011357
MOdified Pairing observation input forms to include category input fi…
Ohsudev Aug 27, 2025
64bdef4
MOdified Pairing observation input forms to include category input fi…
Ohsudev Aug 27, 2025
739f72c
MOdified Pairing observation input forms to include category input fi…
Ohsudev Aug 28, 2025
2a627ae
MOdified Pairing observation input forms to include category input fi…
Ohsudev Aug 29, 2025
4e17cc2
MOdified Pairing observation input forms to include category input fi…
Ohsudev Aug 29, 2025
f05c304
Merge branch 'refs/heads/release24.11-SNAPSHOT' into 24.11_fb_Pairing…
Ohsudev Aug 29, 2025
bcf04c7
MOdified Pairing observation input forms to include category input fi…
Ohsudev Aug 29, 2025
8819daa
MOdified Pairing observation input forms to include category input fi…
Ohsudev Aug 29, 2025
e2bf927
MOdified Pairing observation input forms to include category input fi…
Ohsudev Aug 29, 2025
ac5567b
MOdified Pairing observation input forms to include category input fi…
Ohsudev Aug 29, 2025
bf8185d
Merge remote-tracking branch 'refs/remotes/origin/24.11_fb_PairingObs…
Ohsudev Sep 5, 2025
77f4bcd
Modified Pairing Observation to remove referencing files
Ohsudev Sep 5, 2025
2f5fa75
Modified Pairing Observation to remove referencing files
Ohsudev Sep 5, 2025
bd88ac1
Modified Pairing Observation to remove referencing files
Ohsudev Sep 5, 2025
64a906b
Modified Pairing Observation to remove referencing files
Ohsudev Sep 5, 2025
1434a12
Modified Pairing Observation to remove referencing files
Ohsudev Sep 5, 2025
94b6ace
Modified Pairing Observation to remove referencing files
Ohsudev Sep 5, 2025
f15591b
Modified Pairing Observation xml definition.
Ohsudev Sep 5, 2025
45f653d
Modified Pairing Observation input form to include new input fields.
Ohsudev Sep 6, 2025
4398c52
Modified program to allow category to appear on a drop down listings.
Ohsudev Sep 8, 2025
746c978
Modified program to allow category to appear on a drop down listings.
Ohsudev Sep 8, 2025
e32854d
Modified program to allow category to appear on a drop down listings.
Ohsudev Sep 9, 2025
bf8b70b
Modified program to allow category to appear on a drop down listings.
Ohsudev Sep 9, 2025
5e34a9c
Merge branch 'refs/heads/release25.7-SNAPSHOT' into 25.7_fb_PairingOb…
Ohsudev Sep 9, 2025
62900f2
Modified program to allow category to appear on a drop down listings.
Ohsudev Sep 9, 2025
2c41199
Modified program to allow category to appear on a drop down listings.
Ohsudev Sep 9, 2025
08d37f6
Modified program to allow category to appear on a drop down listings.
Ohsudev Sep 9, 2025
4d2d8f0
Modified program to allow category to appear on a drop down listings.
Ohsudev Sep 9, 2025
1ea36cd
Modified program to allow category to appear on a drop down listings.
Ohsudev Sep 9, 2025
7dfe83e
Modified program to allow category to appear on a drop down listings.
Ohsudev Sep 9, 2025
c46c8b9
Modified program to allow category to appear on a drop down listings.
Ohsudev Sep 9, 2025
14b64a2
Modified program to allow category to appear on a drop down listings.
Ohsudev Sep 9, 2025
6c1ca51
Modified program to allow category to appear on a drop down listings.
Ohsudev Sep 9, 2025
162d67e
Modified program to allow category to appear on a drop down listings.
Ohsudev Sep 9, 2025
160542d
Modified program to allow category to appear on a drop down listings.
Ohsudev Sep 9, 2025
e8b9a72
Modified program to allow category to appear on a drop down listings.
Ohsudev Sep 9, 2025
6c3fc73
Modified program to allow category to appear on a drop down listings.
Ohsudev Sep 9, 2025
d220c21
Modified program to allow category to appear on a drop down listings.
Ohsudev Sep 9, 2025
77b027d
Modified program to allow category to appear on a drop down listings.
Ohsudev Sep 9, 2025
0ebbea8
Modified program to allow category to appear on a drop down listings.
Ohsudev Sep 9, 2025
1bc332e
Modified program to allow category to appear on a drop down listings.
Ohsudev Sep 10, 2025
7b03404
Modified program to allow category to appear on a drop down listings.
Ohsudev Sep 10, 2025
44775f4
Modified program to allow category to appear on a drop down listings.
Ohsudev Sep 10, 2025
7e97836
Modified program to allow category to appear on a drop down listings.
Ohsudev Sep 10, 2025
bcef8d9
Modified program to allow category to appear on a drop down listings.
Ohsudev Sep 10, 2025
2e0fa08
Modified program to allow category to appear on a drop down listings.
Ohsudev Sep 11, 2025
0483535
Modified program to allow category to appear on a drop down listings.
Ohsudev Sep 11, 2025
960d914
Modified program to allow category to appear on a drop down listings.
Ohsudev Sep 11, 2025
1180944
Modified program to allow category to appear on a drop down listings.
Ohsudev Sep 11, 2025
c0df2b9
Modified program to allow category to appear on a drop down listings.
Ohsudev Sep 11, 2025
d9a1ca2
Modified program to allow category to appear on a drop down listings.
Ohsudev Sep 11, 2025
e562a4b
Modified program to allow category to appear on a drop down listings.
Ohsudev Sep 11, 2025
7eac6ed
Modified program to allow category to appear on a drop down listings.
Ohsudev Sep 11, 2025
8d5b382
Modified program to allow category to appear on a drop down listings.
Ohsudev Sep 12, 2025
6242975
Modified program to allow category to appear on a drop down listings.
Ohsudev Sep 12, 2025
4a52d2e
Modified program to allow category to appear on a drop down listings.
Ohsudev Sep 12, 2025
9af4043
Modified program to allow category to appear on a drop down listings.
Ohsudev Sep 12, 2025
566495e
Modified Pairing Observation input form to modify cageinfantPairing.s…
Ohsudev Sep 15, 2025
6c89fa0
Modified Pairing Observation input form to modify cageinfantPairing.s…
Ohsudev Sep 15, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
165 changes: 84 additions & 81 deletions onprc_ehr/resources/data/lookup_sets.tsv
Original file line number Diff line number Diff line change
@@ -1,82 +1,85 @@
setname label keyfield titleColumn
PregnancyConfirm Pregnancy Confirmation Types
housingDefinition Housing Definition
housingTypes Housing Types
AcquistionType Acquistion Types value
RearingType Rearing Types
MatingType Mating Types
pairingEventType Pairing Event Types value
tb_method TB Test Methods value
microbiologyQuantity Microbiology Quantity value
blood_sample_type Blood Sample Types value
pairingHousingType Pairing Housing Types value
pairingOutcome Pairing Outcomes value
pairingGoal Pairing Goal value
pairingObservation Pairing Observations value
antibioticSensitivityResult Antibiotic Sensitivity Result value
pairingSeparationReason Pairing Separation Reason value
tissue_preparation Tissue Preparation value
tissue_condition Tissue Condition value
drugReason Drug Reason value
serologyMethod Serology Methods value
TransferReason Transfer Reasons
assignmentReleaseType Assignment Release Types value
animalGroupReleaseType Animal Group Release Types value
observation_areas Observation Areas value
drugOutcome Drug Administration Outcomes value
encounterSummaryCategory Encounter Summary Category value
labworkChargeType Labwork Charge Types value
notes_category DCM Notes Category value
blood_draw_reason Blood Draw Reason value
encounter_roles Encounter Roles value
parentageRelationship Parentage Relationship value
parentageMethod Parentage Determination Methods value
serologyResultQualifier Serology Result Qualifier value
app_score Appetite Score value
att_score Attitude Score value
turgor_score Turgor Score value
hyd_score Hyd Score value
stool_score Stool Score value
sib_score SIB Score value
incision_score Incision Score value
alopecia_type Alopecia Type value
alopecia_score Alopecia Type value
alopecia_regrowth Alopecia Regrowth value
mens_score Mens Score value
vomit Vomit value
tissue_sample_type Tissue Distribution Sample Type value
tissue_distribution_category Tissue Distribution Request Category value
cage_status Cage Status value
project_use_category Center Project Use Categories value
project_type Center Project Types value
procedure_drug_templates Procedure Drug Templates value
behavior_types Behavior Types value
fecal_smear_score Fecal Smear Scores value
problem_list_subcategory Problem List Subcategory value
customer_affiliation Customer Affiliation value
birth_date_type Birth Date Type value
birth_type Birth Type Field Values value
chemistry_method Chemistry Method Field Values value
clinpath_sampletype Clinpath Sample Type Field Values value
clinpath_types Clinpath Type Field Values value
clinremarks_category Clinremarks Category Field Values value
drug_categories Drug Category Field Values value
hematology_method Hematology Method Field Values value
problem_list_category Problem List Category Field Values value
parasitology_method Parasitology Method Field Values value
urinalysis_method Urinalysis Method Field Values value
urinalysis_qualitative_results Urinalysis Qualitative Result Field Values value
bcs_score BCS Score Field Values value
avail_codes Availability Code Field Values value
status_codes Status Code Field Values value
snomed_qualifiers SNOMED Code Qualifiers value
housing_reason Housing Reason Field Values value
housing_condition_codes Housing Condition Field Values value
histology_stain Histology Stain Field Values value
encounter_types Encounter Types value
DeliveryMode Delivery Mode Field Values value
DeliveryType Delivery Type Field Values value
death_manner Death Manner value
death_cause Death Cause value
ConfirmationType Pregnancy Confirmation Type value
clinpath_collection_method Clinpath Collection Method value
PregnancyConfirm Pregnancy Confirmation Types
housingDefinition Housing Definition
housingTypes Housing Types
AcquistionType Acquistion Types value
RearingType Rearing Types
MatingType Mating Types
pairingEventType Pairing Event Types value
tb_method TB Test Methods value
microbiologyQuantity Microbiology Quantity value
blood_sample_type Blood Sample Types value
pairingHousingType Pairing Housing Types value
pairingpriorgroups Pairing Prior groups value
pairingendtypes Pairing End Types value
pairingstarttype Pairing Start Type value
pairingOutcome Pairing Outcomes value
pairingGoal Pairing Goal value
pairingObservation Pairing Observations value
antibioticSensitivityResult Antibiotic Sensitivity Result value
pairingSeparationReason Pairing Separation Reason value
tissue_preparation Tissue Preparation value
tissue_condition Tissue Condition value
drugReason Drug Reason value
serologyMethod Serology Methods value
TransferReason Transfer Reasons
assignmentReleaseType Assignment Release Types value
animalGroupReleaseType Animal Group Release Types value
observation_areas Observation Areas value
drugOutcome Drug Administration Outcomes value
encounterSummaryCategory Encounter Summary Category value
labworkChargeType Labwork Charge Types value
notes_category DCM Notes Category value
blood_draw_reason Blood Draw Reason value
encounter_roles Encounter Roles value
parentageRelationship Parentage Relationship value
parentageMethod Parentage Determination Methods value
serologyResultQualifier Serology Result Qualifier value
app_score Appetite Score value
att_score Attitude Score value
turgor_score Turgor Score value
hyd_score Hyd Score value
stool_score Stool Score value
sib_score SIB Score value
incision_score Incision Score value
alopecia_type Alopecia Type value
alopecia_score Alopecia Type value
alopecia_regrowth Alopecia Regrowth value
mens_score Mens Score value
vomit Vomit value
tissue_sample_type Tissue Distribution Sample Type value
tissue_distribution_category Tissue Distribution Request Category value
cage_status Cage Status value
project_use_category Center Project Use Categories value
project_type Center Project Types value
procedure_drug_templates Procedure Drug Templates value
behavior_types Behavior Types value
fecal_smear_score Fecal Smear Scores value
problem_list_subcategory Problem List Subcategory value
customer_affiliation Customer Affiliation value
birth_date_type Birth Date Type value
birth_type Birth Type Field Values value
chemistry_method Chemistry Method Field Values value
clinpath_sampletype Clinpath Sample Type Field Values value
clinpath_types Clinpath Type Field Values value
clinremarks_category Clinremarks Category Field Values value
drug_categories Drug Category Field Values value
hematology_method Hematology Method Field Values value
problem_list_category Problem List Category Field Values value
parasitology_method Parasitology Method Field Values value
urinalysis_method Urinalysis Method Field Values value
urinalysis_qualitative_results Urinalysis Qualitative Result Field Values value
bcs_score BCS Score Field Values value
avail_codes Availability Code Field Values value
status_codes Status Code Field Values value
snomed_qualifiers SNOMED Code Qualifiers value
housing_reason Housing Reason Field Values value
housing_condition_codes Housing Condition Field Values value
histology_stain Histology Stain Field Values value
encounter_types Encounter Types value
DeliveryMode Delivery Mode Field Values value
DeliveryType Delivery Type Field Values value
death_manner Death Manner value
death_cause Death Cause value
ConfirmationType Pregnancy Confirmation Type value
clinpath_collection_method Clinpath Collection Method value
6 changes: 6 additions & 0 deletions onprc_ehr/resources/data/pairing_observation_types.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
value
Divider Change
Event
Infant Related
STF Beh
STF Clinical
25 changes: 25 additions & 0 deletions onprc_ehr/resources/data/pairingendtypes.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
value
All to group
Contact decrease
Contact increase
Decrease contact
Decrease partners
End All Contact
End clear
End full contact
End GC
End group
End large mesh
Extended temporary separation.
Increase contact
Increase partners
N/A
Pair change-decrease.
Pair change-increase.
Pair to trio/group.
Permanent Separation.
Reunite from GC
Temporary separation.
TO with GC
Unsuccessful attempt
Unsuccessful set-up
3 changes: 3 additions & 0 deletions onprc_ehr/resources/data/pairingpriorgroups.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
value
Not recent
Recent
47 changes: 47 additions & 0 deletions onprc_ehr/resources/data/pairingstarttype.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
value
Bio dam reunite
C-sx reunite
Contact decrease
Contact Increase
Contact increase first attempt
Decrease partners
Extended temporary separation
Feeder Box
General Comment
Increase partners
Increase partners first attempt
Infant socialization
Lactating foster
Non BSU pair
Nonlactating foster
Pair attempt
Pair change
Pair change-decrease
Pair change-increase
Pair monitor
Pair to trio/group
Permanent separation
Porch
remote monitoring
Reunite
Reunite after procedure
Reunite after TO
Same social group pair
Set up
STE
STF
STF DNPC
STF/E
STF/E DNPC
Temporary separation
TMB
TMB pair
TO as GC
trial contact
trial contact first attempt
Sep for Diet
STE.
STF.
STF DNPC.
STF/E.
STF/E DNPC.
5 changes: 0 additions & 5 deletions onprc_ehr/resources/queries/onprc_ehr/PairingStartType.sql

This file was deleted.

38 changes: 38 additions & 0 deletions onprc_ehr/resources/queries/study/CageMateAdults.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/*
* Copyright (c) 2017 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

SELECT

h1.Id,
group_concat(h2.Id, ' ') as adultcagemate,
group_Concat(distinct h2.room) as room,
group_concat(distinct h1.cage) as cage

FROM study.demographicsCurrentLocation h1
JOIN study.demographicsCurrentLocation h2 ON (
h1.room = h2.room AND
h1.cage = h2.cage

)

WHERE
h1.room.housingType.value = 'Cage Location' AND
h2.Id.age.ageInyears > 1


GROUP BY h1.Id


5 changes: 5 additions & 0 deletions onprc_ehr/resources/queries/study/CageMateAdults/.qview.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<customView xmlns="http://labkey.org/data/xml/queryCustomView">
<sorts>
<sort column="Id" descending="false"/>
</sorts>
</customView>
37 changes: 37 additions & 0 deletions onprc_ehr/resources/queries/study/CageMateAll.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*
* Copyright (c) 2017 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

SELECT

h1.Id,
group_concat(h2.Id, '-') as adultcagemate,
group_Concat(distinct h2.room) as room,
group_concat(distinct h1.cage) as cage

FROM study.demographicsCurrentLocation h1
JOIN study.demographicsCurrentLocation h2 ON (
h1.room = h2.room AND
h1.cage = h2.cage

)

WHERE
h1.room.housingType.value = 'Cage Location'


GROUP BY h1.Id


5 changes: 5 additions & 0 deletions onprc_ehr/resources/queries/study/CageMateAll/.qview.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<customView xmlns="http://labkey.org/data/xml/queryCustomView">
<sorts>
<sort column="Id" descending="false"/>
</sorts>
</customView>
35 changes: 35 additions & 0 deletions onprc_ehr/resources/queries/study/CageMateInfantpairings.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
* Copyright (c) 2017 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

SELECT

h1.Id,
group_concat(h2.Id, '-') as infantcagemate,
group_Concat(distinct h2.room) as room,
group_concat(distinct h1.cage) as cage

FROM study.demographicsCurrentLocation h1
JOIN study.demographicsCurrentLocation h2 ON (
h1.room = h2.room AND
h1.cage = h2.cage

)

WHERE
h1.room.housingType.value = 'Cage Location' AND
h2.Id.age.ageInyears < 1

GROUP BY h1.Id
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<customView xmlns="http://labkey.org/data/xml/queryCustomView">
<sorts>
<sort column="Id" descending="false"/>
</sorts>
</customView>
Loading