legally qualified medical practitioner