You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
message: `Successfully sent data for ${resolvedIds.length} patients for measure ${evaluationMeasureId}`,//TODO: update to canonical, currently using evaluationMeasureId here whereas it will be used for $submitdata in the future
121
+
color: 'green'
122
+
});
123
+
// TODO: use resolvedIds to populate evaluate modal
124
+
setEnableEvaluateButton(true);
125
+
}else{
126
+
showNotification({
127
+
icon: <IconAlertCircle/>,
128
+
title: 'No patient information',
129
+
message: 'No patient information was successfully POSTed to the Evaluation Service',
130
+
color: 'red'
131
+
});
132
+
}
133
+
})
134
+
.catch(e=>{
135
+
if(einstanceofError){
136
+
showNotification({
137
+
icon: <IconAlertCircle/>,
138
+
title: 'Data Submission Error',
139
+
message: e.message,
140
+
color: 'red'
141
+
});
142
+
}
143
+
});
144
+
};
145
+
43
146
/**
44
147
* Uses fqm-execution library to perform calculation on all patients and return their
45
148
* detailed results.
@@ -99,7 +202,7 @@ export default function PopulationCalculation() {
99
202
});
100
203
});
101
204
setDetailedResults(labeledDetailedResults);
102
-
setOpened(true);
205
+
setDrawerOpened(true);
103
206
setEnableTableButton(true);
104
207
setEnableClauseCoverageButton(true);
105
208
}
@@ -140,7 +243,7 @@ export default function PopulationCalculation() {
140
243
aria-label="Show Table"
141
244
styles={{root: {marginTop: 20}}}
142
245
disabled={!enableTableButton}
143
-
onClick={()=>setOpened(true)}
246
+
onClick={()=>setDrawerOpened(true)}
144
247
variant="outline"
145
248
>
146
249
Show Table
@@ -175,12 +278,37 @@ export default function PopulationCalculation() {
175
278
Show Clause Coverage
176
279
</Button>
177
280
</Tooltip>
281
+
<Button
282
+
data-testid="submit-data-button"
283
+
aria-label="Submit Data"
284
+
styles={{root: {marginTop: 20}}}
285
+
onClick={()=>submitData()}
286
+
variant="outline"
287
+
>
288
+
Submit Data
289
+
</Button>
290
+
<Tooltip
291
+
label="Disabled until data submission has succeeeded"
292
+
openDelay={1000}
293
+
disabled={enableEvaluateButton}
294
+
>
295
+
<Button
296
+
data-testid="evaluate-button"
297
+
aria-label="Evaluate"
298
+
styles={{root: {marginTop: 20}}}
299
+
disabled={!enableEvaluateButton}
300
+
onClick={open}
301
+
variant="outline"
302
+
>
303
+
Evaluate
304
+
</Button>
305
+
</Tooltip>
178
306
</Group>
179
307
{detailedResults.length>0&&(
180
308
<>
181
309
<Drawer
182
-
opened={opened}
183
-
onClose={()=>setOpened(false)}
310
+
opened={drawerOpened}
311
+
onClose={()=>setDrawerOpened(false)}
184
312
position="bottom"
185
313
padding="md"
186
314
overlayProps={{
@@ -207,6 +335,9 @@ export default function PopulationCalculation() {
0 commit comments