This blessing is recited by one who has recovered from a serious illness, traveled the ocean or desert or was let out of jail. If one survived any other dangerous situation he should recite the blessing without shem u'malchut. (meaning after saying "Ba'rukh" skip to "Ha'Go-mel L'kha-ya-vim...")