I have created a new method i.e getAllAttachments in obsServiceImpl in openmrs-core and trying to use it in attachment module but not able to access it in attachment controller. What should i do to get openmrs-core method accessible to attachment module.
Thats true @mksd .
i thought of pointing out to him that method , but then i thought of a weird scenario where some one would want to return all the attachments at ago
not sure whether its very good practice anyway
@mozzy@mksd i thought of returning all attachments with a query that allows pagination so as to achieve @pratikbiz24’s requirements with less effects to the server
@pratikbiz24 getting data across multiple patients like that looks like a report. I’m saying this because it will be hard to sell the addition of such method in the existing service, which just returns patient-level data (as the REST of the OpenMRS API does, except through reporting or when manipulating cohorts/groups.)
It would help to know what the final use case is to point you the appropriate solution. Are you needing this for maintenance purpose, for data intelligence purpose, … etc?
Yeah actually i need this method on admin side where a person can analyse the attachments of all the patients.
I also look around the openmrs apis which can return all attachments in one go but there is no such api present.