I want to get all patients currently enrolled in a program. For that
I'm looking into the Java API but only find that the Cohort class
offers a method getMembersIds(), but not the Program class, and
therefore I'm wondering why and how to best get the patients of a
certain program?
(in sql: select patient.* from patient left join patient_program on
patient.patient_id = patient_program.patient_id where
patient_program.program_id = 1)
I want to display patients of a certain program on the role-based homepage.
In addition to that: would an REST api like
GET /ws/rest/v1/program/{parentUuid}/member
make sense here to be added, or is it just not used in practice?
_________________________________________
To unsubscribe from OpenMRS Implementers' mailing list, send an e-mail to
[email protected] with "SIGNOFF openmrs-implement-l" in the body
(not the subject) of your e-mail.
[mailto:[email protected]?body=SIGNOFF%20openmrs-implement-l]