Currently this REST API allows you to do a get request on Obs table by passing concept together with patient uuid parameters, however how can i query the obs table with only concept and value parameters while using this API. And if not possible , what are the reasons for this restrictions.
Am trying to count the number of observations with a certain concept and a particular value without considering the patient. For example to get observations with concept = 48AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA and valueCoded = 1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA,
my urlbe would be https://demo.openmrs.org/openmrs/ws/rest/v1/obs/?concept=48AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA&valueCoded=1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA.
From the documentation about the obs endpoint, this is not possible. It only recommends that you use the concept in combination with the patient . e.g https://demo.openmrs.org/openmrs/ws/rest/v1/obs/? patient = patientUuid& concept=conceptUuid&valueCoded=codeUuuid.
So my question is on how else to get observations with concept uuid and value parameters as it is in the first url.