← Back to team overview

dhis2-users team mailing list archive

Re: Sharing Dataset in Two Separate DHIS2 Instances

 

Hi Stephen

As Em says, this requires a few manual steps. If you want to sync all
metadata, you would use the /api/metadata endpoint, but if you are using a
fairly recent version of DHIS 2, and want to sync data sets only (I assume
metadata here, not data values) you could get the data set + all deps using
the endpoint /api/dataSets/<UID>/metadata

https://docs.dhis2.org/master/en/developer/html/webapi_metadata_export.html#webapi_dataset_program_export_dependencies

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

On Wed, Jul 5, 2017 at 6:17 AM, Em Le Hong <em.hispvietnam@xxxxxxxxx> wrote:

> Hi Stephen,
>
> As I know, you can't set up sharing between instances directly in DHIS2.
> But you can do it with DHIS2 API
> <https://docs.dhis2.org/2.25/en/developer/html/webapi_data_values.html> +
> script on custom form or script and cronjob <https://cron-job.org/en/> in
> background.
>
> Good luck!
>
>
>
>
> On Wed, Jul 5, 2017 at 3:50 AM, Stephen Gbanyan <mambu9@xxxxxxxxx> wrote:
>
>> Hi All,
>>
>> Is it possible to share a dataset from one DHIS2 instance to another so
>> that when the data is entered into one it synchronizes with the other?
>>
>> Thanks
>>
>>
>>
>>
>> --
>> __________________________________
>> Stephen M. Gbanyan, Jr. - ASc. BA. (Hons.)
>> Director
>> Health Information System
>> Ministry of Health and Social Welfare
>> Republic of Liberia
>> +231-886-847-915
>> skype: mambu9
>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
>
> --
> *Em Le Hong*
> DHIS2 Implementation| *HISP Vietnam *
> em.hispvietnam@xxxxxxxxx | *Skype:* em.hispvietnam@xxxxxxxxx
>
>
>
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-users
> Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>

References