The design and implementation of a ventilator-management advisor