Skip to content

Commit 58f06cc

Browse files
authored
24.11 fb blood processing xcel (#1345)
* Created a new interface button to display Blood Draw Excel Chart * Created a new interface button to display Blood Draw Excel Chart * Created a new interface button to display Blood Draw Excel Chart * MOdified Blodd Processing button label. * MOdified Blodd Processing button label.
1 parent f9cc41e commit 58f06cc

4 files changed

Lines changed: 45 additions & 53 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<script type="text/javascript" nonce="<%=scriptNonce%>">
2+
3+
Ext4.onReady(function(){
4+
var webpart = <%=webpartContext%>;
5+
var ctx = EHR.Utils.getEHRContext(webpart.wrapperDivId);
6+
if(!ctx)
7+
return;
8+
9+
Ext4.get(webpart.wrapperDivId).update(
10+
11+
'<div> ' +
12+
13+
'<img src="<%=contextPath%>/onprc_ehr/icons/BloodDrawChart.png" style="border: 1px solid black"/>' +
14+
15+
'</div>'
16+
17+
);
18+
19+
20+
});
21+
</script>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<view xmlns="http://labkey.org/data/xml/view" title="Blood Draw Chart">
2+
<dependencies>
3+
<dependency path="ehr.context" />
4+
</dependencies>
5+
</view>

onprc_ehr/resources/views/groupProcessing.html

Lines changed: 19 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
style: 'margin-bottom: 10px;'
8282
},{
8383
xtype: 'button',
84-
style: 'margin-bottom: 10px;',
84+
style: 'margin-bottom: 30px;',
8585
border: true,
8686
text: 'View Report',
8787
scope: this,
@@ -117,59 +117,25 @@
117117

118118
window.open(LABKEY.ActionURL.buildURL('query', 'executeQuery', null, params))
119119
}
120+
},{
121+
html: '<b> Please enter blood draws according to linked chart below.</b>',
122+
style: 'margin-bottom: 10px;'
123+
124+
},{
125+
xtype: 'button',
126+
style: 'margin-bottom: 30px;',
127+
border: true,
128+
text: 'View Blood Draw Chart',
129+
scope: this,
130+
131+
handler: function(btn){
132+
133+
var url = LABKEY.ActionURL.buildURL('onprc_ehr', 'BloodDrawChart', this.containerPath);
134+
window.open(url);
135+
},
136+
120137
},
121-
//Modified by Kollil, 9/19/23
122-
// As per Tkt# 9767, this section is deleted from the page.
123-
124-
// {
125-
// html: '<hr><b>Blood Needed For Viral Surveillance:</b>',
126-
// style: 'margin-bottom: 10px;'
127-
// },{
128-
// html: 'This report will summarize blood needed for viral surveillance based on the following criteria:<br>' +
129-
// '- 4mL is required for HBV testing on all SPF animals over 180 days old that have not been HBV tested during this calendar year<br>' +
130-
// '- 4mL is required for SRV testing for all Japanese Macaques, and non-SPF Cynos that have not been testing during this calendar year',
131-
// style: 'margin-bottom: 10px;'
132-
// },{
133-
// xtype: 'button',
134-
// style: 'margin-bottom: 10px;',
135-
// border: true,
136-
// text: 'View Report',
137-
// scope: this,
138-
// handler: function(btn){
139-
// var groupName = btn.up('panel').down('#groupName').getValue() || [];
140-
// groupName = Ext4.isArray(groupName) ? groupName: [groupName];
141-
//
142-
// var room = btn.up('panel').down('#room').getValue() || [];
143-
// room = Ext4.isArray(room) ? room: [room];
144-
//
145-
// var field = btn.up('panel').down('#animalField');
146-
// var animalid = field.getValue() || [];
147-
// if (!Ext4.isEmpty(animalid)){
148-
// animalid = Ext4.String.trim(animalid);
149-
// animalid = animalid.replace(/[\s,;]+/g, ';');
150-
// animalid = animalid.replace(/(^;|;$)/g, '');
151-
// }
152-
// animalid = Ext4.isArray(animalid) ? animalid: [animalid];
153-
//
154-
// var params = {
155-
// schemaName: 'study',
156-
// 'query.queryName': 'processingSerology',
157-
// 'query.Id/demographics/calculated_status~eq': 'Alive',
158-
// 'query.bloodVol~gt': 0
159-
// };
160-
//
161-
// if (!Ext4.isEmpty(groupName))
162-
// params['query.Id/activeAnimalGroups/groups~in'] = groupName.join(';');
163-
//
164-
// if (!Ext4.isEmpty(room))
165-
// params['query.Id/curLocation/room~in'] = room.join(';');
166-
//
167-
// if (!Ext4.isEmpty(animalid))
168-
// params['query.Id~in'] = animalid.join(';');
169-
//
170-
// window.open(LABKEY.ActionURL.buildURL('query', 'executeQuery', null, params))
171-
// }
172-
// },
138+
173139
{
174140
html: '<hr><b>Blood Needed For Genetic Testing:</b>',
175141
style: 'margin-bottom: 10px;'
54.4 KB
Loading

0 commit comments

Comments
 (0)