Resident began banging their head on the cafeteria wall and was unable to be de-escalated. Resident was placed in a restraint for safety. Once resident was safe she was released. Upon processing with staff, resident said that she had a flashback that had triggered her. Resident to remain on self-harm precautions.