If your workplace asks for a medical report during sick leave,can they recieve details about xrays i've had?

ive had an accident.im on sick leave.is my doctor going to write about any xrays ive had or is it general information he is going to give?i need to know exactly what details a doctor is allowed to give in a medical report
--------------------------------------------

I don't think you need to give details to anyone as it would violate patient/doctor confidentiality but I may be wrong. I think some paperwork like a receipt showing that you were indeed there would suffice no matter the reason. They can give any details you wish if you consent to it but I don't think you have to. I would question the intent to know about your personal life in such detail. What use is it to them?