It can be two things... if the clack is inside the door, it is door check...
Sometime it can be because the hinge on the door jamb is broken loose... a
body shop can repair thing... This is tremendous CLACK noise... when you
open the door, pay attention to hinge area of the door check.