As a keeper of seven African dwarf frogs for almost nine years now.
I will say Carlos is 100% correct.
It is much better to have the injured frogs in their own hospital tank.
The biggest reason why is that when you have to add medications you don't want to have to medicate an entire community.
Because when you use certain medications you have to remove filtering carbon.
And do frequent water changes.