Person opening his vehicle door should check behind, before opening, to avoid collision, but rarely does they do.
As an engineering solution, by legislation, the vehicle doors shall be designed, as sliding horizontally or move up without coming out of vehicle width.
This will avoid such accidents.