Cuando Ana visitó a María en el hospital , pro ya estaba fuera de peligro .
when Ana visited to Mary in the hospital pro already was out of danger
When Ana visited Mary in the hospital, (she) was already out of danger.