question on dxf2 schema

Hi devs,

Please kindly assist with a basic question on dxf schema here;

1. I'll like to confirm that something like this will work

<dataValue dataElement="2" period="4" source="5" value="9" />

According to the schema, it should but it seems not to work until I add categorycombo (a default one)?

And the sample_dxf2 there says;

    <dataValues>
        <!-- Note @comment, @storedBy and @timestamp are optional attributes-->
        <dataValue dataElement="1" period="1" source="1" value="23" categoryOptionCombo="3"/>
        <dataValue dataElement="1" period="1" source="1" value="23" categoryOptionCombo="2"/>
    </dataValues>

Is the schema up to date?

2. an import of Bob's sample_dxf2 doesn't seem to work.

Also, is there a place to find previous dhis-live versions?

Thanks.

Ime

Hi Ime

This looks like it is taken from an old schema Jo and I were working
on 2 years ago which was never implemented. I think it is still in
the documentation branch - I should remove it or at least mark it as
deprecated.

The current dxf2 data import is much more similar to the pdf which I
posted to this list earlier. Again there has been some minor
modification since - eg the use of uids instead of uuid - which I
should still document.

I'll try and post some working samples tomorrow.

Regards
Bob

···

On 9 February 2012 19:32, Ime Asangansi <asangansi@yahoo.com> wrote:

Hi devs,

Please kindly assist with a basic question on dxf schema here;

1. I'll like to confirm that something like this will work

<dataValue dataElement="2" period="4" source="5" value="9" />

According to the schema, it should but it seems not to work until I add categorycombo (a default one)?

And the sample_dxf2 there says;

<dataValues>
<!-- Note @comment, @storedBy and @timestamp are optional attributes-->
<dataValue dataElement="1" period="1" source="1" value="23" categoryOptionCombo="3"/>
<dataValue dataElement="1" period="1" source="1" value="23" categoryOptionCombo="2"/>
</dataValues>

Is the schema up to date?

2. an import of Bob's sample_dxf2 doesn't seem to work.

Also, is there a place to find previous dhis-live versions?

Thanks.

Ime

_______________________________________________
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

Thanks Bob.
Will be very appreciated.

Ime

···

--- On Thu, 2/9/12, Bob Jolliffe <bobjolliffe@gmail.com> wrote:

From: Bob Jolliffe <bobjolliffe@gmail.com>
Subject: Re: [Dhis2-devs] question on dxf2 schema
To: "Ime Asangansi" <asangansi@yahoo.com>
Cc: dhis2-devs@lists.launchpad.net
Date: Thursday, February 9, 2012, 10:44 PM
Hi Ime

This looks like it is taken from an old schema Jo and I were
working
on 2 years ago which was never implemented. I think it
is still in
the documentation branch - I should remove it or at least
mark it as
deprecated.

The current dxf2 data import is much more similar to the pdf
which I
posted to this list earlier. Again there has been some
minor
modification since - eg the use of uids instead of uuid -
which I
should still document.

I'll try and post some working samples tomorrow.

Regards
Bob

On 9 February 2012 19:32, Ime Asangansi <asangansi@yahoo.com> > wrote:
> Hi devs,
>
> Please kindly assist with a basic question on dxf
schema here;
>
> 1. I'll like to confirm that something like this will
work
>
> <dataValue dataElement="2" period="4" source="5"
value="9" />
>
> According to the schema, it should but it seems not to
work until I add categorycombo (a default one)?
>
> And the sample_dxf2 there says;
>
> <dataValues>
> <!-- Note @comment, @storedBy
and @timestamp are optional attributes-->
> <dataValue dataElement="1" period="1"
source="1" value="23" categoryOptionCombo="3"/>
> <dataValue dataElement="1" period="1"
source="1" value="23" categoryOptionCombo="2"/>
> </dataValues>
>
> Is the schema up to date?
>
> 2. an import of Bob's sample_dxf2 doesn't seem to
work.
>
> Also, is there a place to find previous dhis-live
versions?
>
> Thanks.
>
> Ime
>
>
>
> _______________________________________________
> 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

Hi Ime, the format for data value sets is described directly in the API here:

http://apps.dhis2.org/demo/api/dataValueSets

Lars

···

On Fri, Feb 10, 2012 at 11:46 AM, Ime Asangansi <asangansi@yahoo.com> wrote:

Thanks Bob.
Will be very appreciated.

Ime

--- On Thu, 2/9/12, Bob Jolliffe <bobjolliffe@gmail.com> wrote:

From: Bob Jolliffe <bobjolliffe@gmail.com>
Subject: Re: [Dhis2-devs] question on dxf2 schema
To: "Ime Asangansi" <asangansi@yahoo.com>
Cc: dhis2-devs@lists.launchpad.net
Date: Thursday, February 9, 2012, 10:44 PM
Hi Ime

This looks like it is taken from an old schema Jo and I were
working
on 2 years ago which was never implemented. I think it
is still in
the documentation branch - I should remove it or at least
mark it as
deprecated.

The current dxf2 data import is much more similar to the pdf
which I
posted to this list earlier. Again there has been some
minor
modification since - eg the use of uids instead of uuid -
which I
should still document.

I'll try and post some working samples tomorrow.

Regards
Bob

On 9 February 2012 19:32, Ime Asangansi <asangansi@yahoo.com> >> wrote:
> Hi devs,
>
> Please kindly assist with a basic question on dxf
schema here;
>
> 1. I'll like to confirm that something like this will
work
>
> <dataValue dataElement="2" period="4" source="5"
value="9" />
>
> According to the schema, it should but it seems not to
work until I add categorycombo (a default one)?
>
> And the sample_dxf2 there says;
>
> <dataValues>
> <!-- Note @comment, @storedBy
and @timestamp are optional attributes-->
> <dataValue dataElement="1" period="1"
source="1" value="23" categoryOptionCombo="3"/>
> <dataValue dataElement="1" period="1"
source="1" value="23" categoryOptionCombo="2"/>
> </dataValues>
>
> Is the schema up to date?
>
> 2. an import of Bob's sample_dxf2 doesn't seem to
work.
>
> Also, is there a place to find previous dhis-live
versions?
>
> Thanks.
>
> Ime
>
>
>
> _______________________________________________
> 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

Thanks for this Lars.

Somehow I couldn't locate that page on my instance (based on downloaded war) like <instance-url>/api/dataValueSets

Thanks

Ime

···

--- On Fri, 2/10/12, Lars Helge Øverland <larshelge@gmail.com> wrote:

Hi Ime, the format for data value
sets is described directly in the API here:

http://apps.dhis2.org/demo/api/dataValueSets

Lars

On Fri, Feb 10, 2012 at 11:46 AM, Ime Asangansi <asangansi@yahoo.com> > wrote:
> Thanks Bob.
> Will be very appreciated.
>
> Ime
>
>
> --- On Thu, 2/9/12, Bob Jolliffe <bobjolliffe@gmail.com> > wrote:
>
>> From: Bob Jolliffe <bobjolliffe@gmail.com>
>> Subject: Re: [Dhis2-devs] question on dxf2 schema
>> To: "Ime Asangansi" <asangansi@yahoo.com>
>> Cc: dhis2-devs@lists.launchpad.net
>> Date: Thursday, February 9, 2012, 10:44 PM
>> Hi Ime
>>
>> This looks like it is taken from an old schema Jo
and I were
>> working
>> on 2 years ago which was never implemented. I
think it
>> is still in
>> the documentation branch - I should remove it or at
least
>> mark it as
>> deprecated.
>>
>> The current dxf2 data import is much more similar
to the pdf
>> which I
>> posted to this list earlier. Again there has been
some
>> minor
>> modification since - eg the use of uids instead of
uuid -
>> which I
>> should still document.
>>
>> I'll try and post some working samples tomorrow.
>>
>> Regards
>> Bob
>>
>> On 9 February 2012 19:32, Ime Asangansi <asangansi@yahoo.com> > >> wrote:
>> > Hi devs,
>> >
>> > Please kindly assist with a basic question on
dxf
>> schema here;
>> >
>> > 1. I'll like to confirm that something like
this will
>> work
>> >
>> > <dataValue dataElement="2" period="4"
source="5"
>> value="9" />
>> >
>> > According to the schema, it should but it
seems not to
>> work until I add categorycombo (a default one)?
>> >
>> > And the sample_dxf2 there says;
>> >
>> > <dataValues>
>> > <!-- Note @comment,
@storedBy
>> and @timestamp are optional attributes-->
>> > <dataValue dataElement="1"
period="1"
>> source="1" value="23" categoryOptionCombo="3"/>
>> > <dataValue dataElement="1"
period="1"
>> source="1" value="23" categoryOptionCombo="2"/>
>> > </dataValues>
>> >
>> > Is the schema up to date?
>> >
>> > 2. an import of Bob's sample_dxf2 doesn't seem
to
>> work.
>> >
>> > Also, is there a place to find previous
dhis-live
>> versions?
>> >
>> > Thanks.
>> >
>> > Ime
>> >
>> >
>> >
>> >
_______________________________________________
>> > 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