Re: [Dhis2-devs] Issue with Enrollments API Pagination - Not returning pager details

2017-11-07 Thread Morten Olav Hansen
Hi

Did you have a look at the enrollment API docs? please try out
totalPages=true and see if it does what you want.

https://docs.dhis2.org/master/en/developer/html/webapi_enrollment_instance_query.html

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Wed, Nov 8, 2017 at 10:23 AM, Stian Sandvold  wrote:

> Hi Jhansi,
>
> You can report bugs like these directly to Jira (http://jira.dhis2.org).
>
> I created a bug report for you, you can see it here:
> https://jira.dhis2.org/browse/DHIS2-2476
>
> Please add additional information in the comment section if you have
> something to add.
>
> On Wed, Nov 8, 2017 at 6:27 AM, Jhansi Reddy Karee <
> jhans...@thoughtworks.com> wrote:
>
>> Hi Team,
>>
>> We are experiencing an issue with the enrollments API pagination on DHIS
>> 2.26 (it exists on the later versions of DHIS as well). When the
>> enrollments API is paginated, it returns the enrollments for the given
>> pageSize and the page number. But, *it doesn't return the pager params
>> as a part of each page response, like it returns in other APIs*. By
>> pager params we mean, paging details like total, pageSize, page, pageCount.
>>
>> Without the paging params it would be hard for us to figure out on how
>> many pages should we download and also at which page we should stop
>> downloading. Because of this issue, we are not able to paginate the
>> enrollments API.
>>
>> We are about to go live with programs with registration which would
>> internally use the enrollments API. We are expecting a lot of data entry to
>> be done in the near future. This means there will be a lot of enrollments
>> in the system and downloading all of them in a single API call, would be
>> problematic for our end users who are in remote locations with very slow
>> internet connectivity.
>>
>> *Will you be able to fix the pagination of enrollments API to return the
>> paging params, so that it is consistent with the other API’s paging
>> response *and we could also leverage it.
>>
>> Thanks,
>>
>> Madhoo/Jhansi
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to : dhis2-devs@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
>
> --
> Stian Sandvold
> Software developer, DHIS2
> University of Oslo
> http://www.dhis2.org
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Issue with Enrollments API Pagination - Not returning pager details

2017-11-07 Thread Stian Sandvold
Hi Jhansi,

You can report bugs like these directly to Jira (http://jira.dhis2.org).

I created a bug report for you, you can see it here:
https://jira.dhis2.org/browse/DHIS2-2476

Please add additional information in the comment section if you have
something to add.

On Wed, Nov 8, 2017 at 6:27 AM, Jhansi Reddy Karee <
jhans...@thoughtworks.com> wrote:

> Hi Team,
>
> We are experiencing an issue with the enrollments API pagination on DHIS
> 2.26 (it exists on the later versions of DHIS as well). When the
> enrollments API is paginated, it returns the enrollments for the given
> pageSize and the page number. But, *it doesn't return the pager params as
> a part of each page response, like it returns in other APIs*. By pager
> params we mean, paging details like total, pageSize, page, pageCount.
>
> Without the paging params it would be hard for us to figure out on how
> many pages should we download and also at which page we should stop
> downloading. Because of this issue, we are not able to paginate the
> enrollments API.
>
> We are about to go live with programs with registration which would
> internally use the enrollments API. We are expecting a lot of data entry to
> be done in the near future. This means there will be a lot of enrollments
> in the system and downloading all of them in a single API call, would be
> problematic for our end users who are in remote locations with very slow
> internet connectivity.
>
> *Will you be able to fix the pagination of enrollments API to return the
> paging params, so that it is consistent with the other API’s paging
> response *and we could also leverage it.
>
> Thanks,
>
> Madhoo/Jhansi
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Stian Sandvold
Software developer, DHIS2
University of Oslo
http://www.dhis2.org
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] Issue with Enrollments API Pagination - Not returning pager details

2017-11-07 Thread Jhansi Reddy Karee
Hi Team,

We are experiencing an issue with the enrollments API pagination on DHIS
2.26 (it exists on the later versions of DHIS as well). When the
enrollments API is paginated, it returns the enrollments for the given
pageSize and the page number. But, *it doesn't return the pager params as a
part of each page response, like it returns in other APIs*. By pager params
we mean, paging details like total, pageSize, page, pageCount.

Without the paging params it would be hard for us to figure out on how many
pages should we download and also at which page we should stop downloading.
Because of this issue, we are not able to paginate the enrollments API.

We are about to go live with programs with registration which would
internally use the enrollments API. We are expecting a lot of data entry to
be done in the near future. This means there will be a lot of enrollments
in the system and downloading all of them in a single API call, would be
problematic for our end users who are in remote locations with very slow
internet connectivity.

*Will you be able to fix the pagination of enrollments API to return the
paging params, so that it is consistent with the other API’s paging
response *and we could also leverage it.

Thanks,

Madhoo/Jhansi
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Integration of OpenMRS & DHIS2

2017-11-07 Thread gerald thomas
Thanks, I'll check it out but please if you have such contacts available
then I will be grateful if you provide them. Google search responses
haven't been that good on this topic.

On Nov 7, 2017 15:04, "Bob Jolliffe"  wrote:

Hi Gerald

My knowledge of that openmrs module is quite old .. I wrote the
initial implementation but that is over 5 years ago.  I think what you
should do is to contact the current maintainers of the module for
support on the various errors you might be seeing.  I know there was
some Google summer of code work done on it this year for example.

Cheers
Bob

On 7 November 2017 at 20:50, gerald thomas  wrote:
> Dear All,
> I am trying to integrate DHIS2 and OpenMRS application. On the OpenMRS
> application there is a module called "DHIS2 Reporting Module" which
> was installed successfully. But anytime i click on the DHIS2 tab i am
> getting the following error as shown on the attached file.
>
> Please can anyone help.
>
> --
> Regards,
>
> Gerald
>
> --
> You received this message because you are subscribed to the Google Groups
"DHIS2 system administrators" group.
> To unsubscribe from this group and stop receiving emails from it, send an
email to dhis2-system-administrators+unsubscr...@googlegroups.com.
> To post to this group, send an email to dhis2-system-administrators@
googlegroups.com.
> To view this discussion on the web, visit https://groups.google.com/d/
msgid/dhis2-system-administrators/CA%2BthV3TDGa8WXHjG2xNNce129zJkrU
Tqtzi%2BVG99_zv3BFmqCQ%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Integration of OpenMRS & DHIS2

2017-11-07 Thread Bob Jolliffe
Hi Gerald

My knowledge of that openmrs module is quite old .. I wrote the
initial implementation but that is over 5 years ago.  I think what you
should do is to contact the current maintainers of the module for
support on the various errors you might be seeing.  I know there was
some Google summer of code work done on it this year for example.

Cheers
Bob

On 7 November 2017 at 20:50, gerald thomas  wrote:
> Dear All,
> I am trying to integrate DHIS2 and OpenMRS application. On the OpenMRS
> application there is a module called "DHIS2 Reporting Module" which
> was installed successfully. But anytime i click on the DHIS2 tab i am
> getting the following error as shown on the attached file.
>
> Please can anyone help.
>
> --
> Regards,
>
> Gerald
>
> --
> You received this message because you are subscribed to the Google Groups 
> "DHIS2 system administrators" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to dhis2-system-administrators+unsubscr...@googlegroups.com.
> To post to this group, send an email to 
> dhis2-system-administrat...@googlegroups.com.
> To view this discussion on the web, visit 
> https://groups.google.com/d/msgid/dhis2-system-administrators/CA%2BthV3TDGa8WXHjG2xNNce129zJkrUTqtzi%2BVG99_zv3BFmqCQ%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] Integration of OpenMRS & DHIS2

2017-11-07 Thread gerald thomas
Dear All,
I am trying to integrate DHIS2 and OpenMRS application. On the OpenMRS
application there is a module called "DHIS2 Reporting Module" which
was installed successfully. But anytime i click on the DHIS2 tab i am
getting the following error as shown on the attached file.

Please can anyone help.

-- 
Regards,

Gerald


Error
Description: Binary data
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp