← Back to team overview

dhis2-devs team mailing list archive

Re: On categories and dimensions and zooks

 

Dear all,
some clarifications and suggestions:

> On Thu, Oct 1, 2009 at 5:16 PM, <johansa@xxxxxxxxxx> wrote:
>
>> > Here is my suggestion, based on all the mails above, so that we can
>> > develop all of this into a blueprint/specification.
>> >
>> > 1) Categories and category options should be left essentially as is.

Agree, unless there is a better way of coding or naming dimensionality of
events.

>> > 2) Data element groups sets should allow data elements to be assigned
>> > to multiple data element groups. Data elements (both multi-dimensional
>> > and non-multidimensional) should be able to be assigned a particular
>> > (only one)  data element groups.

Yes, agree. This is how it is for orgunits. It can belong to the group
"public facility" or "private facility" in the group set "ownership", for
example.

>> > 3) A data element group set  would be something like "Age", "Sex",
>> > "Disease transmission method". Each data element group set would would
>> > contain multiple data element groups, such as "Under 1, Under 5, Over
>> > 5", "Male, Female", "Vector borne, water borne".
>>
>> No. "Malaria" cannot be male or female. Diarrhoea cannot be 15 years
>> old.
>> But a person with malaria can be male or female, and a 15 year old
>> person
>> can have diarrhoea.
>>
>> The data element groups and group sets are metadata. The categories are
>> event-specific data.
>>
>>
> Not sure what you are trying to say here. We are of course always talking
> about number of cases, even though we do not specify "Cases of Malaria"?

We are not talking about cases when we talk about data element groups. We
are talking about metadata, that apply to ALL uses of that data element.
So we can have 5000 cases of malaria, from all kinds of ages and genders
(all of them!), but they would all share the metadata of Malaria = vector
borne, which has nothing to do with the individual cases.

So DE groups are metadata. I have no idea if there is anything wrong with
using the same code and name for both metadata and event-data, but for me
they are different. If you have age as DE group set, you cannot enter
different ages for that data element. You will have to make another data
element, assigned to another group.

>>
>> > 4) Data element groups sets should be exclusive. Data element groups
>> > can only belong to one data element group set.

Agree

>> > 3) Multidimensional elements will automatically be imparted an
>> > intrinsic level of dimensionality via the Categories, ipso facto.
>> > Category options would essentially be transformed to a data element
>> > group at the stage of analysis.

Not sure about this. Category options may (or may not) be aggregated to a
data element at the stage of analysis. In a pivot table, you could have
fields with both DE groups and Categories, and thus they would serve the
same purpose of pivoting and filtering.

>> > 4) Non-multidimensional elements should be able to be assigned a
>> > particular member of a CateogryOption,  post facto, so that
>> > multi-dimensional and non-multidimensional elements would be able to
>> > coexist peacefully.

Yes. the categorycombo "default" fills this role now, but the name is not
perfect. Could instead choose "none".

>> > 5) A particular measure's full dimensionality would result from the
>> > combination of  prime dimensions:
>> >    a) OrgUnitGroupSets (already implemeneted). Each OrgUnitGroupSet
>> > would impart a column in a cross-tab query for each OrgUnitGroupSet,
>> > providing classification by Type, Urban Rural, Ownership as examples.
>> >    b) Period. There is no currently (as far as I know)
>> > PeriodGroupSets, but usually, grouping can take place through the data
>> > type itself, so that values can be grouped into quaters, bi-monthly
>> > groups, etc. Period would impart a two columns in a cross-tab query
>> > (StartDate and EndDate).
>> >    c) The resulting number of dimensions resulting from the data
>> > elements assignment of the data element to "Categories" and
>> > "DataElementGroupSets".Each Category and each DateElementGroup
>> > assigned to the data element would impart a single column in a
>> > crosstab query.
>> > d) Other dimensions that are already implemeneted, such as Dataset.
>> >
>> > Do these points capture the  requirements, based on everything we have
>> > discussed in this monster thread?

I think so :)

Johan

>> >  Plese feel free to comment, especially the developers. Lars has been
>> > quiet and said it is possible, so I suppose he is just coding already.
>> > :)
>> >
>> > _______________________________________________
>> > 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
>> >
>>
>>
>>
>> _______________________________________________
>> 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
>>
>
>
>
> --
> Cheers,
> Knut Staring
>





Follow ups

References