If patient abandonment or other medical injury occurs due to a violation by an entity of this subchapter, the violation shall be an affirmative defense for the physician in a claim brought by the injured patient who shall be entitled to bring a claim against the entity.