I need to fetch all the uploaded files during the visits of patient for that I write method in attachment service called getAttachments() without any arguments because I want all the files without any filter please help to go further.
I saw Attachment service it has multiple get function but i am quite confused to write the new api end point to get all attachments.
well having this means you are getting all the available attachments for all the patients,but if you need to get all uploaded files during visits of a patient i guess at least you will need patient as an argument
Thanks @herbert24 for your response. I am thinking of select* from obs . If I am wrong please do correct me because I am not quite familiar with openmrs architecture, or you can suggest me the way where I can go through.