to completely do something
This grammar implies doing something completely or irreversibly.
Examples
資料をなくしてしまいました。
I lost the documents completely.
注射を打ってしまいます。
I will give the injection completely.
薬を飲んでしまった。
I ended up taking the medicine.
Quick check
薬を飲ん___しまった。