In your theoretical scenario, the doctor himself violated HIPAA when he emailed himself the document. He exposed the document to his email provider and all those along the transport path of the email. So, to agree, technology can only do so much, you have to use it correctly.