pez-globo / pufferfish-software

All software for the Pufferfish ventilator.
Apache License 2.0
0 stars 1 forks source link

Display alarm limits for FiO2 and flow rate consistently with draft settings in HFNC Controls of breadcrumbs modal #429

Closed ethanjli closed 2 years ago

ethanjli commented 2 years ago

As of 4dedf8d on #413 (see https://github.com/pez-globo/pufferfish-software/pull/413#issuecomment-883081048), we display the current alarm limits for FiO2 and flow rate, which fixed a previous bug described in https://github.com/pez-globo/pufferfish-software/pull/413#issuecomment-883001336.

It would be nice if we could create alarmLimitsDraftFiO2 and alarmLimitsDraftFlow selectors which returned { lower: parametersDraftFiO2 - 2, upper: parametersDraftFiO2 + 2 } and { lower: parametersDraftFlow - 2, upper: parametersDraftFlow + 2 }, respectively, and then used them in the breadcrumbs modal. I'm not sure if we'd also need to create alarmLimitsRequestFiO2 and alarmLimitsRequestFlow selectors for the breadcrumbs modal, but we could do a similar thing there too.