Final answer:
The medical assistant should release patient records to a court only after obtaining written permission from the patient or if a subpoena or court order is issued.
Step-by-step explanation:
The medical assistant should release the records after obtaining written permission from the patient because under the Health Insurance Portability and Accountability Act (HIPAA), strict confidentiality of patient records is required. There may be an exception if the court issues a subpoena or court order, which would legally compel the healthcare provider to release the records without the patient's direct permission.
Without a subpoena, the patient's explicit consent is generally required to release medical information, which is typically documented by a signed HIPAA release form. The actual process of releasing records may differ across jurisdictions and specific legal circumstances, so it is always recommended to seek legal counsel when there is any doubt.