What is the primary purpose of surgical procedures in the field of medicine?
A) To diagnose medical conditions
B) To administer medications
C) To prevent diseases
D) To treat or correct medical conditions through invasive procedures