dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #32230
Re: CategoryOptionCombos not Updating?
Good you got it to work.
However, in general, you would not want to design the category option
combos this way, unless under very specific circumstances, at least in my
opinion.
There is a bit of a limitation (perhaps design?) with the COCs, in that
they will always be added up to get the totals. It looks like in your case,
you have the same data element, which is (or has) been dis-aggregated
different at different points in time. This is a fairly common situation,
but DHIS2 does not always handle it so elegantly. The group (Zero-1 month)
and (0-6 months) actually intersect. If you are recording these at the same
point in time for the same orgunit, the total will thus be to some extent
duplicated. If you are recording these at different points in time for the
same orgunit, then it should be OK. However, there is nothing in the design
of the COCs that restrict this, so you must be careful.
Best regards,
Jason
On Thu, Aug 21, 2014 at 5:45 AM, Timothy Harding <hardingt@xxxxxxxxx> wrote:
> Thanks Jason! (and DHIS2 dev community),
>
> Wrote out that long graphic email and it was just a few clicks away the
> whole time. I guess that is the way of things. Happy it works now!
> [image: Inline image 1]
>
> Timothy Harding
> PeaceCorps Volunteer
> Republic of Vanuatu
> hardingt@xxxxxxxxx
> +678 5955137
>
>
> On Thu, Aug 21, 2014 at 2:40 PM, Jason Pickering <
> jason.p.pickering@xxxxxxxxx> wrote:
>
>> Hi Tim,
>> You need to update the category option combos. Have a look here
>>
>> https://www.dhis2.org/doc/snapshot/en/user/html/ch22s03.html
>>
>> which describes the process. (Last bullet point)
>>
>> Best regards,
>> Jason
>>
>>
>>
>> On Thu, Aug 21, 2014 at 5:35 AM, Timothy Harding <hardingt@xxxxxxxxx>
>> wrote:
>>
>>> Hello DHIS2 Devs,
>>> I'm using DHIS2 2.14, Tomcat 7.0.42, Postgresql 9.3.4-4, Windows Host
>>>
>>> I'm trying to adjust a few of my Categories in my development
>>> environment and it doesn't seem to be taking. The way I understand
>>> Categories is using the following graphic:
>>> [image: Inline image 2]
>>>
>>> So, in our instance of DHIS2:
>>> I had 3 age groups entered in the Category options which I've been using
>>> without problem for a while now:
>>>
>>> - 0-1 Month
>>> - 1-12 Months
>>> - 1-5 Years
>>>
>>> These are added to a Category with a name comprising the three options.
>>> A category combination of similar name is created, and the category added
>>> to it. Then a data element assigns it. This process has worked in the past,
>>> so I am just wondering if I've forgotten something now that I want to
>>> change it:
>>>
>>> How would I add two new age groups? (forgive the strange age groups, and
>>> that they overlap in a weird way)
>>>
>>> - 0-6 Months
>>> - 7-12 Months
>>>
>>> Trying myself, I created two new Category Options:
>>>
>>> [image: Inline image 3]
>>>
>>> I added them to the existing Category for "0-1 month / 1-12 months /
>>> 1-5 years" and changed its name:
>>>
>>> [image: Inline image 4]
>>>
>>>
>>> This Category is assigned to a "Category Combination" of the same name:
>>> [image: Inline image 5]
>>>
>>>
>>> If I understand it, and did it correctly, the Category Combination
>>> should not need to change anyway.
>>>
>>> The data element then is assigns to the proper Category Combination:
>>> [image: Inline image 6]
>>> ^^This also did not change, the name updated automatically.
>>>
>>>
>>>
>>> When I go to the dataset editor and try and insert the 2 new age groups,
>>> they just won't appear:
>>> [image: Inline image 7]
>>>
>>> If I look it up in the API, it also does not reflect the change:
>>> [image: Inline image 8]
>>>
>>> I've tried the following to no avail:
>>>
>>> 1. Rebooting the Server
>>> 2. Clearing the Cache on the Server
>>> 3. Using a different web browser
>>>
>>> Any ideas?
>>>
>>>
>>>
>>> Timothy Harding
>>> PeaceCorps Volunteer
>>> Republic of Vanuatu
>>> hardingt@xxxxxxxxx
>>> +678 5955137
>>>
>>> _______________________________________________
>>> 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
>>>
>>>
>>
>
References