← Back to team overview

dhis2-devs team mailing list archive

Re: (no subject)

 

Hello Mr. Lars,

THANK you very much for quick response and for answering my question.

It's help me a lot.

Janielle,

On Sep 7, 2015 11:25 PM, "Lars Helge Øverland" <larshelge@xxxxxxxxx> wrote:

> Hi Janielle,
>
> yes it is possible to create categories through the API. The DHIS 2 Web
> API follows REST principles and supports the POST, GET, UPDATE, DELETE and
> PATCH methods for all resources. Read more here:
>
> https://www.dhis2.org/doc/snapshot/en/developer/html/ch01s09.html
>
> You can find an overview of all resources by navigating to api/resources,
> e.g.:
>
> https://apps.dhis2.org/demo/api/resources
>
> One thing to be aware of with categories is that in order to update the
> "category option combinations" of the system as you keep adding/removing
> categories/options you might want to do a POST to this maintenance resource
> afterwards:
>
> api/maintenance/categoryOptionComboUpdate
>
>
>
> regards,
>
> Lars
>
>
> On Mon, Sep 7, 2015 at 4:04 PM, Janielle Domingo <
> janielle.domingo@xxxxxxxxx> wrote:
>
>> Good day!
>>
>> I am Janielle Domingo, a developer from the National Telehealth Center
>> based in Manila, Philippines.
>>
>> We developed an Electronic Medical Record (EMR) named Community Health
>> Information Management System (CHITS), with OpenMRS on the back end, now
>> deployed and operational in several primary health care centers all over
>> the Philippines. We are currently trying to link the data generated through
>> CHITS with DHIS2 as a data visualization application to be used by
>> decision-makers in various levels of government units.
>>
>> We have created data elements as components for main indicators set by
>> stakeholders.
>> We were wondering if there was a way to create categories (and
>> combinations thereof) programmatically rather than by employing the user
>> interface? We want to generate categories dynamically for use cases where
>> parameters of category options change, and it would be more efficient to
>> comply with standard definitions centrally rather than peripherally.
>>
>> THANK You!
>>
>> Janielle T. Domingo
>> janielle.domingo@xxxxxxxxx
>> Software Developer-NTHC
>> Manila, Philippines
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> http://www.dhis2.org <https://www.dhis2.org>
>
>

References