Fully-featured ICU ventilator design, optimized for manufacture using commonly available components and free to license. Repository tracks all mechanical, electrical and systems design, software, requirements and regulatory documentation.
What has to be done
An algorithm must be selected and described for how PEEP is measured and calculated. The definition must reference appropriate requirements, standards or literature that authoritatively ensure the correctness of the chosen algorithm. The implementation must be testable, and the documented definition must be clear enough to confirm by inspection that the implementation and tests correctly reflect the desired algorithm.
Code pointers
Not entirely clear at first glance. Which is probably indicative of a problem. The code for this should likely be a class of its own that can be tested in isolation
What has to be done An algorithm must be selected and described for how PEEP is measured and calculated. The definition must reference appropriate requirements, standards or literature that authoritatively ensure the correctness of the chosen algorithm. The implementation must be testable, and the documented definition must be clear enough to confirm by inspection that the implementation and tests correctly reflect the desired algorithm.
How do you know it has to be done Standards and requirements often mention this parameter as crucial. For example: https://github.com/RespiraWorks/Ventilator/blob/master/software/design/ventilation_modes.md
Code pointers Not entirely clear at first glance. Which is probably indicative of a problem. The code for this should likely be a class of its own that can be tested in isolation
Don't forget