← Back to team overview

dhis2-devs team mailing list archive

Re: flexible start-of-week?

 

Hey everyone

Vincent has been consulting in Afghanistan and has had to design data entry forms to support the Islamic calendar. I don't know much about this standard but I guess it could be relevant to this discussion...

Greg
  
Sent from my mobile

-----Original Message-----
From: Johan Sæbø <johansa@xxxxxxxxxx>
Sender: dhis2-devs-bounces+greg.rowles=gmail.com@xxxxxxxxxxxxxxxxxxx
Date: Fri, 27 Apr 2012 09:40:37 
To: Jason Pickering<jason.p.pickering@xxxxxxxxx>; <dhis2-devs@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Dhis2-devs] flexible start-of-week?

Jason,

yes, I think it is a blueprint to define periods through the user 
interface. In this particular case, we work around it by using standard 
ISO-weeks to approximate the caribbean sunday-saturday 4-weekly reporting.

But the monday-sunday is not so standard as it appears. A lot of middle 
eastern countries have saturday as first day of the week, and a lot of 
countries in the Americas have sunday (like the caribbean). Then there 
are also other rules for numbering weeks. Luckily, months and years are 
a bit more standardized.

Has anyone else encountered this requirement?
Johan

On 27.04.2012 06:35, Jason Pickering wrote:
> Hi Johan,
>
> I think this would be something the developers would need to do,
> although it is not too difficult to implement. Source is available
> here
>
> \dhis-2\dhis-api\src\main\java\org\hisp\dhis\period
>
> And by the four weeks period, you mean something which starts on a
> Sunday, not on a Monday?
>
> It sounds like this is really a bigger blueprint, namely the ability
> to dynamically define period types somehow through the user interface.
>
> Regards,
> Jason
>
>
>
> On Thu, Apr 26, 2012 at 3:30 PM, Johan Sæbø<johansa@xxxxxxxxxx>  wrote:
>> And how would I go about to create these custom periods? While at it, I
>> would actually like to create four-week periods, starting with a sunday.
>> Right now four-weekly reporting can be done by selecting week 1, 5, 9 etc
>> when using weekly intervals, but it would be better with four-weeks "1-4",
>> "5-8" etc.
>>
>> Regards,
>> Johan
>>
>>
>> On 16.04.2012 17:05, Jason Pickering wrote:
>>>
>>> AFAIK, in DHIS2, weeks are ISO weeks, meaning they start on the first
>>> Monday of the year which contains a Thursday.  I am sure Bob can
>>> provide much more info on the ISO8601 standard.
>>> It would seem you would need a custom period in this case, similar to
>>> what has been done with the Fiscal  years.
>>>
>>> Regards,
>>> Jason
>>>
>>>
>>>
>>> On Mon, Apr 16, 2012 at 3:40 PM, Johan Sæbø<johansa@xxxxxxxxxx>    wrote:
>>>>
>>>> Hello,
>>>>
>>>> I can't find any place to indicate which day a week starts, is this
>>>> possible
>>>> somewhere? For reporting purposes, Sunday is the first day of the week in
>>>> the caribbean.
>>>>
>>>> Johan
>>>>
>>>> _______________________________________________
>>>> 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


_______________________________________________
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