Medical documents are legally used to provide evidence of a patient's medical history, diagnosis, treatment, and other relevant information. They can be used in court proceedings, insurance claims, and other legal matters. Examples of medical documents include medical records, doctor's notes, lab reports, and prescription records.