The objective of this clinical trial is to assess whether early extubation of patients with hypoxemia during the spontaneous breathing trial (SBT) shortens the duration of ventilatory support. The trial will also evaluate the safety of this approach. The key research questions include:
Does early extubation of hypoxemic patients reduce the total duration of ventilatory support (both invasive and non-invasive) by 36 hours? Does early extubation of hypoxemic patients increase the number of ventilator-free days by day 28? Can the safety of early extubation in hypoxemic patients be ensured by confirming no significant differences in rates of reintubation, tracheostomy, or mortality? The trial will compare ventilatory outcomes between two groups: hypoxemic patients who undergo early extubation (hypoxemic extubation group) and those who remain on invasive ventilation until hypoxemia resolves (conventional extubation group).