Skip to content

Commit 5bd0b85

Browse files
Merge 25.2 to develop
2 parents 94c4528 + a42bfe4 commit 5bd0b85

6 files changed

Lines changed: 25 additions & 22 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALTER TABLE ehr.tasks ADD caseid ENTITYID null;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALTER TABLE ehr.tasks ADD caseid ENTITYID null;

ehr/resources/schemas/ehr.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,9 @@
212212
<column columnName="description">
213213
<nullable>true</nullable>
214214
</column>
215+
<column columnName="caseid">
216+
<nullable>true</nullable>
217+
</column>
215218
</columns>
216219
</table>
217220
<table tableName="requests" tableDbType="TABLE" useColumnOrder="true">

ehr/resources/web/ehr/DataEntryUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@ EHR.DataEntryUtils = new function(){
885885
var vol;
886886
if (!fixedAmount){
887887
if (valMap.concentration && valMap.dosage && valMap.weight){
888-
if (valMap.dosage_units === 'ml/kg') {
888+
if (valMap.dosage_units?.toLowerCase() === 'ml/kg') {
889889
// Some drugs are in ml/kg instead of mg/kg. In those cases, concentration is irrelevant.
890890
vol = valMap.dosage * valMap.weight;
891891

ehr/resources/web/ehr/panel/SnapshotPanel.js

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -39,24 +39,6 @@ Ext4.define('EHR.panel.SnapshotPanel', {
3939
this.setLoading(true);
4040
this.loadData();
4141
}
42-
43-
this.on('afterrender', function() {
44-
45-
var displayField = this.down('#flags');
46-
if (displayField && displayField.getEl()) {
47-
48-
var anchor = displayField.getEl('flagsLink');
49-
50-
if (anchor) {
51-
Ext4.get(anchor).on('click', function(e) {
52-
e.preventDefault();
53-
if (anmId) {
54-
EHR.Utils.showFlagPopup(anmId, this);
55-
}
56-
});
57-
}
58-
}
59-
}, this);
6042
},
6143

6244
getBaseItems: function(){
@@ -145,7 +127,23 @@ Ext4.define('EHR.panel.SnapshotPanel', {
145127
xtype: 'displayfield',
146128
fieldLabel: 'Flags',
147129
name: 'flags',
148-
itemId: 'flags'
130+
itemId: 'flags',
131+
listeners: {
132+
change: function(field, newValue, oldValue){
133+
let anchor = field.getEl('flagsLink');
134+
if (this?.up('panel')?.up('panel')) {
135+
let anmId = this.up('panel').up('panel').subjectId;
136+
if (anchor) {
137+
Ext4.get(anchor).on('click', function(e) {
138+
e.preventDefault();
139+
if (anmId) {
140+
EHR.Utils.showFlagPopup(anmId, this);
141+
}
142+
});
143+
}
144+
}
145+
}
146+
}
149147
},{
150148
xtype: 'displayfield',
151149
fieldLabel: 'Last TB Date',
@@ -723,7 +721,7 @@ Ext4.define('EHR.panel.SnapshotPanel', {
723721
}
724722
}
725723

726-
toSet['flags'] = values.length ? '<a id="flagsLink">' + values.join('<br>') + '</div>' : null;
724+
toSet['flags'] = values.length ? '<a id="flagsLink" class="labkey-text-link">' + values.join('<br>') + '</div>' : null;
727725
},
728726

729727
getFlagDisplayValue: function(row) {

ehr/src/org/labkey/ehr/EHRModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public String getName()
133133
@Override
134134
public @Nullable Double getSchemaVersion()
135135
{
136-
return 25.000;
136+
return 25.001;
137137
}
138138

139139
@Override

0 commit comments

Comments
 (0)