[Dhis2-devs] Web-API Related Authorities

2014-12-15 Thread Farai Mutero
Hi Guys

Which user security authority or combination or authorities can one use to
create a User Role that gives associated users access to the Web API only
and nothing else.

Regards

-- 
Farai Mutero
___
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


[Dhis2-devs] [Bug 1402532] [NEW] weekly-data-sets-missing-some-years

2014-12-15 Thread jason.p.pickering
Public bug reported:

To reproduce this on the demo server, create a weekly dataset, and
assign a few data elements and assign to an orgunit. Go to the data
entry screen.

Weeks for 2011 do not appear correctly. 
Weeks for 2010 do not appear correctly. 

Other more recent years appear to be OK.

Affects latest build of 2.17.

** Affects: dhis2
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1402532

Title:
  weekly-data-sets-missing-some-years

Status in DHIS 2:
  New

Bug description:
  To reproduce this on the demo server, create a weekly dataset, and
  assign a few data elements and assign to an orgunit. Go to the data
  entry screen.

  Weeks for 2011 do not appear correctly. 
  Weeks for 2010 do not appear correctly. 

  Other more recent years appear to be OK.

  Affects latest build of 2.17.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1402532/+subscriptions

___
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


[Dhis2-devs] [Bug 1402539] [NEW] Meta data import UI shows success even if import fails

2014-12-15 Thread Lars Helge Øverland
Public bug reported:

In meta-data import, when importing a file that fails, e.g. because of
invalid XML syntax, the UI still indicates import success, even if the
process actually fails.

Try import the attached XML file for constants.

** Affects: dhis2
 Importance: High
 Assignee: Morten Olav Hansen (mortenoh)
 Status: Confirmed

** Attachment added: "metadata.xml"
   
https://bugs.launchpad.net/bugs/1402539/+attachment/4281331/+files/metadata.xml

** Changed in: dhis2
Milestone: None => 2.17

** Changed in: dhis2
 Assignee: (unassigned) => Morten Olav Hansen (mortenoh)

** Changed in: dhis2
   Importance: Undecided => High

** Changed in: dhis2
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1402539

Title:
  Meta data import UI shows success even if import fails

Status in DHIS 2:
  Confirmed

Bug description:
  In meta-data import, when importing a file that fails, e.g. because of
  invalid XML syntax, the UI still indicates import success, even if the
  process actually fails.

  Try import the attached XML file for constants.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1402539/+subscriptions

___
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


[Dhis2-devs] [Bug 1402279] Re: Program Stage Sections not working in Tracker Capture

2014-12-15 Thread Abyot Asalefew Gizaw
** Changed in: dhis2
 Assignee: (unassigned) => Abyot Asalefew Gizaw (abyot)

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1402279

Title:
  Program Stage Sections not working in Tracker Capture

Status in DHIS 2:
  New

Bug description:
  Program stage sections do not seem to be woking in Tracker Capture.
  When I check using Individual Records it's there. Hope this isn't
  being scrapped.

  Thanks

  Busoye

  Version:
  2.17
  Build revision:
  17642

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1402279/+subscriptions

___
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


[Dhis2-devs] [Bug 1402278] Re: Attribute Groups not working with Tracker Capture

2014-12-15 Thread Abyot Asalefew Gizaw
** Changed in: dhis2
 Assignee: (unassigned) => Abyot Asalefew Gizaw (abyot)

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1402278

Title:
  Attribute Groups not working with Tracker Capture

Status in DHIS 2:
  New

Bug description:
  With individual records, Attribute Groups created sections when
  enrolling an entity. InTracker Capture, this does not work at all. Two
  screenshots attached to illustrate.

  
  Thanks.

  Regards,

  Busoye

   Version:
  2.17
  Build revision:
  17642

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1402278/+subscriptions

___
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


[Dhis2-devs] [Bug 1402276] Re: Radio buttons don't work on Programme Attributes

2014-12-15 Thread Abyot Asalefew Gizaw
** Changed in: dhis2
 Assignee: (unassigned) => Abyot Asalefew Gizaw (abyot)

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1402276

Title:
  Radio buttons don't work on Programme Attributes

Status in DHIS 2:
  New

Bug description:
  To reproduce this problem on demo

  1) Go to Child Programme and Edit
  2) Select Radio button for Data entry method for option sets  
  3)Go to Tracker Capture App and select Ngelehun CHC -> Child Programme
  4) Click on Register
  5) Observe that Gender option set attribute does not render

  I also understood that in programme stages, if you have radio buttons
  this would automatically default to a drop down if the list is more
  than 'n'. At the moment this doesn't seem to work that way. It just
  doesn't render at all.

  2.17
  Build revision:
  17642

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1402276/+subscriptions

___
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


[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 17699: Org units, adding roots in list of org units when selected to make it possible to edit/delete

2014-12-15 Thread noreply

revno: 17699
committer: Lars Helge Overland 
branch nick: dhis2
timestamp: Mon 2014-12-15 11:57:23 +0100
message:
  Org units, adding roots in list of org units when selected to make it 
possible to edit/delete
modified:
  
dhis-2/dhis-api/src/main/java/org/hisp/dhis/organisationunit/OrganisationUnit.java
  
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/java/org/hisp/dhis/oum/action/organisationunit/GetOrganisationUnitListAction.java


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to 
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/organisationunit/OrganisationUnit.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/organisationunit/OrganisationUnit.java	2014-11-26 13:15:09 +
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/organisationunit/OrganisationUnit.java	2014-12-15 10:57:23 +
@@ -784,6 +784,11 @@
 return false;
 }
 
+public boolean isRoot()
+{
+return parent == null;
+}
+
 // -
 // Getters and setters
 // -

=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/java/org/hisp/dhis/oum/action/organisationunit/GetOrganisationUnitListAction.java'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/java/org/hisp/dhis/oum/action/organisationunit/GetOrganisationUnitListAction.java	2014-10-16 06:17:19 +
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/java/org/hisp/dhis/oum/action/organisationunit/GetOrganisationUnitListAction.java	2014-12-15 10:57:23 +
@@ -108,6 +108,11 @@
 {
 for ( OrganisationUnit selectedUnit : selectedUnits )
 {
+if ( selectedUnit.isRoot() )
+{
+organisationUnits.add( selectedUnit ); // Add to list if root
+}
+
 organisationUnits.addAll( selectedUnit.getChildren() );
 }
 }

___
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


[Dhis2-devs] [Bug 1402629] [NEW] Data import summary reports incorrect results

2014-12-15 Thread Bob Jolliffe
Public bug reported:

When I import 5000 datavalues using rest api the import summary
indicates 5000 datavalues successfully imported.

But the log indicates warnings about duplicates (which I believe are
incorrect but that is a different bug).  Looking directly at the
datavalue table shows that only 3400 values were imported.  So the
import summary is returning an incorrect result.

This bug effects 
Version:
2.17
Build revision:
17638
Build date:
2014-12-11 06:52

** Affects: dhis2
 Importance: Critical
 Status: New

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1402629

Title:
  Data import summary reports incorrect results

Status in DHIS 2:
  New

Bug description:
  When I import 5000 datavalues using rest api the import summary
  indicates 5000 datavalues successfully imported.

  But the log indicates warnings about duplicates (which I believe are
  incorrect but that is a different bug).  Looking directly at the
  datavalue table shows that only 3400 values were imported.  So the
  import summary is returning an incorrect result.

  This bug effects 
  Version:
  2.17
  Build revision:
  17638
  Build date:
  2014-12-11 06:52

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1402629/+subscriptions

___
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


[Dhis2-devs] [Bug 1402638] [NEW] Incorrect and inconsistent identification of duplicates in datavalue import

2014-12-15 Thread Bob Jolliffe
Public bug reported:

When I import 5000 datavalues as a json datavalueset (confirmed no
duplicates) into an empty database the import summary indicates 5000
successful imported datavalues even though 3400 were actually imported
(see https://bugs.launchpad.net/dhis2/+bug/1402629).

The logfile indicates some duplicates, even though it appears there are
no duplicates in the data (and the database starts with an empty
datavalue table).

When I push the same datafile again and again (twice) the second attempt
shows some, but fewer duplicates, and the third eventually records 5000
values in the datavalue table.

This bug effects
Version:
2.17
Build revision:
17638
Build date:
2014-12-11 06:52

** Affects: dhis2
 Importance: Critical
 Status: New

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1402638

Title:
  Incorrect and inconsistent identification of duplicates in datavalue
  import

Status in DHIS 2:
  New

Bug description:
  When I import 5000 datavalues as a json datavalueset (confirmed no
  duplicates) into an empty database the import summary indicates 5000
  successful imported datavalues even though 3400 were actually imported
  (see https://bugs.launchpad.net/dhis2/+bug/1402629).

  The logfile indicates some duplicates, even though it appears there
  are no duplicates in the data (and the database starts with an empty
  datavalue table).

  When I push the same datafile again and again (twice) the second
  attempt shows some, but fewer duplicates, and the third eventually
  records 5000 values in the datavalue table.

  This bug effects
  Version:
  2.17
  Build revision:
  17638
  Build date:
  2014-12-11 06:52

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1402638/+subscriptions

___
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


[Dhis2-devs] [Bug 1401952] Re: Analytics API: metadata.names[period] null when displayProperty=SHORTNAME

2014-12-15 Thread Morten Olav Hansen
Should be fixed in latest trunk / 2.17. Please try it out and report
back.

** Changed in: dhis2
 Assignee: (unassigned) => Morten Olav Hansen (mortenoh)

** Changed in: dhis2
   Importance: Undecided => Medium

** Changed in: dhis2
   Status: New => Fix Committed

** Changed in: dhis2
Milestone: None => 2.17

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1401952

Title:
  Analytics API: metadata.names[period] null when
  displayProperty=SHORTNAME

Status in DHIS 2:
  Fix Committed

Bug description:
  When using the displayName property in Analytics API and setting it to
  SHORTNAME, names of periods are not included in the metadata.

  Example (demo/dev server):
  
api/analytics.json?dimension=dx:cYeuwXTCPkU&dimension=ou:USER_ORGUNIT&dimension=pe:201311&displayProperty=SHORTNAME

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1401952/+subscriptions

___
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


Re: [Dhis2-devs] [Bug 1401952] Analytics API: metadata.names[period] null when displayProperty=SHORTNAME

2014-12-15 Thread Olav P
It is possibly fixed. If the period in ISO format count as a name it is
fixed, if it is supposed to give the period name as when using
displayProperty=NAME it is not fixed.

Name:
«201411»: «November 2014"

Shortname:
«201411»: «201411»


> 15. des. 2014 kl. 13.32 skrev Morten Olav Hansen <1401...@bugs.launchpad.net>:
> 
> Should be fixed in latest trunk / 2.17. Please try it out and report
> back.
> 
> ** Changed in: dhis2
> Assignee: (unassigned) => Morten Olav Hansen (mortenoh)
> 
> ** Changed in: dhis2
>   Importance: Undecided => Medium
> 
> ** Changed in: dhis2
>   Status: New => Fix Committed
> 
> ** Changed in: dhis2
>Milestone: None => 2.17
> 
> -- 
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1401952
> 
> Title:
>  Analytics API: metadata.names[period] null when
>  displayProperty=SHORTNAME
> 
> Status in DHIS 2:
>  Fix Committed
> 
> Bug description:
>  When using the displayName property in Analytics API and setting it to
>  SHORTNAME, names of periods are not included in the metadata.
> 
>  Example (demo/dev server):
>  
> api/analytics.json?dimension=dx:cYeuwXTCPkU&dimension=ou:USER_ORGUNIT&dimension=pe:201311&displayProperty=SHORTNAME
> 
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/dhis2/+bug/1401952/+subscriptions

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1401952

Title:
  Analytics API: metadata.names[period] null when
  displayProperty=SHORTNAME

Status in DHIS 2:
  Fix Committed

Bug description:
  When using the displayName property in Analytics API and setting it to
  SHORTNAME, names of periods are not included in the metadata.

  Example (demo/dev server):
  
api/analytics.json?dimension=dx:cYeuwXTCPkU&dimension=ou:USER_ORGUNIT&dimension=pe:201311&displayProperty=SHORTNAME

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1401952/+subscriptions

___
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


Re: [Dhis2-devs] [Bug 1401952] Analytics API: metadata.names[period] null when displayProperty=SHORTNAME

2014-12-15 Thread Morten Olav Hansen
Yeah, it makes sense no? since its short-name? or would you expect the full
name for periods as before?

--
Morten

On Mon, Dec 15, 2014 at 1:50 PM, Olav Poppe  wrote:
>
> It is possibly fixed. If the period in ISO format count as a name it is
> fixed, if it is supposed to give the period name as when using
> displayProperty=NAME it is not fixed.
>
> Name:
> «201411»: «November 2014"
>
> Shortname:
> «201411»: «201411»
>
>
> > 15. des. 2014 kl. 13.32 skrev Morten Olav Hansen <
> 1401...@bugs.launchpad.net>:
> >
> > Should be fixed in latest trunk / 2.17. Please try it out and report
> > back.
> >
> > ** Changed in: dhis2
> > Assignee: (unassigned) => Morten Olav Hansen (mortenoh)
> >
> > ** Changed in: dhis2
> >   Importance: Undecided => Medium
> >
> > ** Changed in: dhis2
> >   Status: New => Fix Committed
> >
> > ** Changed in: dhis2
> >Milestone: None => 2.17
> >
> > --
> > You received this bug notification because you are subscribed to the bug
> > report.
> > https://bugs.launchpad.net/bugs/1401952
> >
> > Title:
> >  Analytics API: metadata.names[period] null when
> >  displayProperty=SHORTNAME
> >
> > Status in DHIS 2:
> >  Fix Committed
> >
> > Bug description:
> >  When using the displayName property in Analytics API and setting it to
> >  SHORTNAME, names of periods are not included in the metadata.
> >
> >  Example (demo/dev server):
> >
> api/analytics.json?dimension=dx:cYeuwXTCPkU&dimension=ou:USER_ORGUNIT&dimension=pe:201311&displayProperty=SHORTNAME
> >
> > To manage notifications about this bug go to:
> > https://bugs.launchpad.net/dhis2/+bug/1401952/+subscriptions
>
>

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1401952

Title:
  Analytics API: metadata.names[period] null when
  displayProperty=SHORTNAME

Status in DHIS 2:
  Fix Committed

Bug description:
  When using the displayName property in Analytics API and setting it to
  SHORTNAME, names of periods are not included in the metadata.

  Example (demo/dev server):
  
api/analytics.json?dimension=dx:cYeuwXTCPkU&dimension=ou:USER_ORGUNIT&dimension=pe:201311&displayProperty=SHORTNAME

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1401952/+subscriptions

___
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


[Dhis2-devs] WebAPI getting all orgunits with hierarchy info

2014-12-15 Thread Simen Skogly Russnes
Dear all,

can someone give me a suggestion on how to retrieve all orgunits through the 
WebAPI, including parent-child relationships of orgunits, so that an orgunit 
view can be created similarly to the view in Data Entry and Individual Records 
in DHIS 2? Perhaps it's possible to pass a parameter to api/organisationUnits 
so to include children or something, or in analytics get orgunits to include 
parent when passing the LEVEL- parameter.
The query wouldn't happen very often in the use case, but a low number of 
requests to the WebAPI would be preferable as ping rather than bandwidth is an 
issue.

Regards,
Simen S. Russnes
  ___
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


Re: [Dhis2-devs] WebAPI getting all orgunits with hierarchy info

2014-12-15 Thread Jan Henrik Øverland
You can do this by using the *fields* param.

Go e.g. to https://apps.dhis2.org/dev/dhis-web-pivot -> orgunit tab and
have a look at the network console when you expand nodes.



On Mon, Dec 15, 2014 at 2:34 PM, Simen Skogly Russnes <
simen_russ...@hotmail.com> wrote:
>
> Dear all,
>
> can someone give me a suggestion on how to retrieve all orgunits through
> the WebAPI, including parent-child relationships of orgunits, so that an
> orgunit view can be created similarly to the view in Data Entry and
> Individual Records in DHIS 2? Perhaps it's possible to pass a parameter to
> api/organisationUnits so to include children or something, or in analytics
> get orgunits to include parent when passing the LEVEL- parameter.
> The query wouldn't happen very often in the use case, but a low number of
> requests to the WebAPI would be preferable as ping rather than bandwidth is
> an issue.
>
> Regards,
> Simen S. Russnes
>
> ___
> 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


Re: [Dhis2-devs] WebAPI getting all orgunits with hierarchy info

2014-12-15 Thread Greg Rowles
Hi Simen

We had a similar discussion in South Africa a few hours ago. If you have
your top level orgunit UID (e.g. 'JLA7wl59oN3') you can drill using API
calls such as:
api/organisationUnits?filter=level:eq:2&filter=parent.id:eq:JLA7wl59oN3

If you don't know your top level UID:
api/organisationUnits?filter=level:eq:1

Regards
Greg


On Mon, Dec 15, 2014 at 3:34 PM, Simen Skogly Russnes <
simen_russ...@hotmail.com> wrote:
>
> Dear all,
>
> can someone give me a suggestion on how to retrieve all orgunits through
> the WebAPI, including parent-child relationships of orgunits, so that an
> orgunit view can be created similarly to the view in Data Entry and
> Individual Records in DHIS 2? Perhaps it's possible to pass a parameter to
> api/organisationUnits so to include children or something, or in analytics
> get orgunits to include parent when passing the LEVEL- parameter.
> The query wouldn't happen very often in the use case, but a low number of
> requests to the WebAPI would be preferable as ping rather than bandwidth is
> an issue.
>
> Regards,
> Simen S. Russnes
>
> ___
> 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
>
>

-- 

*Health Information Systems Program*
*- - - - - - - **- - - - - - - **- - - - - - - **- - - - - - - **- - - - - *
Mobile  :073 246 2992
Landline:   021 554 3130
Fax:  086 733 8432
Skype:  gregory_rowles
___
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


Re: [Dhis2-devs] WebAPI getting all orgunits with hierarchy info

2014-12-15 Thread Mark Polak
Hey Simen,

Depending on how many organisation units you have you can do something like 
this.

https://apps.dhis2.org/dev/api/organisationUnits.json?fields=id,name,level,parent[id]&paging=false

That will get you all the org units and you could re-create the which are 
children of what org unit by level and parent id.

This is normally very slow however so depending on the amount of org units you 
might want to concider loading the other levels separately eventhough the ping 
is high.

Or you could concider loading the first level first and loading the other 
levels in the background (no matter whether they are used or not.

Kind regards,

Mark Polak
m...@thedutchies.com
mar...@ifi.uio.no
+47 970 36 752

On 15 Dec 2014, at 14:37, Jan Henrik Øverland  
wrote:

> You can do this by using the fields param.
> 
> Go e.g. to https://apps.dhis2.org/dev/dhis-web-pivot -> orgunit tab and have 
> a look at the network console when you expand nodes.
> 
> 
> 
> On Mon, Dec 15, 2014 at 2:34 PM, Simen Skogly Russnes 
>  wrote:
> Dear all,
> 
> can someone give me a suggestion on how to retrieve all orgunits through the 
> WebAPI, including parent-child relationships of orgunits, so that an orgunit 
> view can be created similarly to the view in Data Entry and Individual 
> Records in DHIS 2? Perhaps it's possible to pass a parameter to 
> api/organisationUnits so to include children or something, or in analytics 
> get orgunits to include parent when passing the LEVEL- parameter.
> The query wouldn't happen very often in the use case, but a low number of 
> requests to the WebAPI would be preferable as ping rather than bandwidth is 
> an issue.
> 
> Regards,
> Simen S. Russnes
> 
> ___
> 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

___
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


Re: [Dhis2-devs] WebAPI getting all orgunits with hierarchy info

2014-12-15 Thread Simen Skogly Russnes
Thanks all,

I think what you suggest Mark is probably the best solution in this case. 
Having to do only 3-4 requests is ok for dividing into levels. I was more 
worried I'd have to do something like one request per org unit with children.

Subject: Re: [Dhis2-devs] WebAPI getting all orgunits with hierarchy info
From: mar...@ifi.uio.no
Date: Mon, 15 Dec 2014 14:44:41 +0100
CC: dhis2-devs@lists.launchpad.net; janhenrik.overl...@gmail.com
To: simen_russ...@hotmail.com

Hey Simen,
Depending on how many organisation units you have you can do something like 
this.
https://apps.dhis2.org/dev/api/organisationUnits.json?fields=id,name,level,parent[id]&paging=false
That will get you all the org units and you could re-create the which are 
children of what org unit by level and parent id.
This is normally very slow however so depending on the amount of org units you 
might want to concider loading the other levels separately eventhough the ping 
is high.
Or you could concider loading the first level first and loading the other 
levels in the background (no matter whether they are used or not.
Kind regards,
Mark Polakmark@thedutchies.commar...@ifi.uio.no+47 970 36 752


On 15 Dec 2014, at 14:37, Jan Henrik Øverland  
wrote:You can do this by using the fields param.
Go e.g. to https://apps.dhis2.org/dev/dhis-web-pivot -> orgunit tab and have a 
look at the network console when you expand nodes.


On Mon, Dec 15, 2014 at 2:34 PM, Simen Skogly Russnes 
 wrote:


Dear all,

can someone give me a suggestion on how to retrieve all orgunits through the 
WebAPI, including parent-child relationships of orgunits, so that an orgunit 
view can be created similarly to the view in Data Entry and Individual Records 
in DHIS 2? Perhaps it's possible to pass a parameter to api/organisationUnits 
so to include children or something, or in analytics get orgunits to include 
parent when passing the LEVEL- parameter.
The query wouldn't happen very often in the use case, but a low number of 
requests to the WebAPI would be preferable as ping rather than bandwidth is an 
issue.

Regards,
Simen S. Russnes
  

___

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

  ___
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


[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 17700: app for clearing dhis2 related browser cache

2014-12-15 Thread noreply

revno: 17700
committer: Abyot Asalefew Gizaw 
branch nick: dhis2
timestamp: Mon 2014-12-15 15:00:00 +0100
message:
  app for clearing dhis2 related browser cache
modified:
  
dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/relationship/relationship-controller.js
  
dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/index.html
  
dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/scripts/app.js
  
dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/scripts/directives.js
  
dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/scripts/services.js
  
dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/scripts/tracker-capture.js
  
dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/views/home.html


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to 
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/relationship/relationship-controller.js'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/relationship/relationship-controller.js	2014-12-08 15:56:07 +
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/relationship/relationship-controller.js	2014-12-15 14:00:00 +
@@ -25,6 +25,7 @@
 $scope.trackedEntity = $scope.selections.te;
 $scope.selectedEnrollment = $scope.selections.enrollment;
 $scope.selectedProgram = $scope.selections.pr;
+console.log('the program leading to relationship is:  ', $scope.selectedProgram);
 if($scope.selectedProgram && $scope.selectedProgram.relationshipText){
 $scope.addRelationshipLabel = $scope.selectedProgram.relationshipText;
 }

=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/index.html'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/index.html	2014-12-09 23:24:16 +
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/index.html	2014-12-15 14:00:00 +
@@ -71,12 +71,16 @@
 
 
 
+
+
+
+
 
 
 
 
 
-
+
 
 
 
@@ -88,7 +92,6 @@
 
 
 
-
 
 
 

=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/scripts/app.js'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/scripts/app.js	2014-12-09 23:24:16 +
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/scripts/app.js	2014-12-15 14:00:00 +
@@ -11,6 +11,7 @@
  'trackerCaptureFilters',
  'trackerCaptureDirectives', 
  'trackerCaptureControllers',
+ 'd2Directives',
  'd2Filters',
  'd2Services',
  'd2Controllers',

=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/scripts/directives.js'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/scripts/directives.js	2014-12-09 23:24:16 +
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/scripts/directives.js	2014-12-15 14:00:00 +
@@ -2,9 +2,9 @@
 
 /* Directives */
 
-var trackerCaptureDirectives = angular.module('trackerCaptureDirectives', [])
+var trackerCaptureDirectives = angular.module('trackerCaptureDirectives', []);
 
-.directive('inputValidator', function() {
+/*.directive('inputValidator', function() {
 
 return {
 require: 'ngModel',
@@ -276,4 +276,4 @@
 }
 });
 };
-});
\ No newline at end of file
+});*/
\ No newline at end of file

=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/scripts/services.js'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/scripts/services.js	2014-12-09 23:24:16 +
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/scripts/services.js	2014-12-15 14:00:00 +
@@ -4,26 +4,113 @@
 
 var trackerCaptureServices = angular.module('trackerCaptureServices', ['ngResource'])
 
-.factory('StorageService', function(){
+.factory('TCStorageService', function(){
 var store = new dhis2.storage.Store({
 name: "dhis2tc",
 adapters: [dhis2.storage.IndexedDBAdapter, dhis2.storage.DomSessionStorageAdapter, dhis2.storage.InMemoryAdapter],
-objectStores: ['tcPrograms', 'programStages', 'trackedEntities', 'trackedEntityForms', 'attributes','optionSets']
+objectStores: ['programs', 'programStages', 'trackedEntities', 'tr

Re: [Dhis2-devs] [Bug 1401952] Analytics API: metadata.names[period] null when displayProperty=SHORTNAME

2014-12-15 Thread Olav P
The ideal would perhaps be to actually have short period names (Jan 14
for January 2014 etc), but if not I guess ISO format is okay.


> 15. des. 2014 kl. 13.52 skrev Morten Olav Hansen <1401...@bugs.launchpad.net>:
> 
> Yeah, it makes sense no? since its short-name? or would you expect the full
> name for periods as before?
> 
> --
> Morten
> 
> On Mon, Dec 15, 2014 at 1:50 PM, Olav Poppe  wrote:
>> 
>> It is possibly fixed. If the period in ISO format count as a name it is
>> fixed, if it is supposed to give the period name as when using
>> displayProperty=NAME it is not fixed.
>> 
>> Name:
>> «201411»: «November 2014"
>> 
>> Shortname:
>> «201411»: «201411»
>> 
>> 
>>> 15. des. 2014 kl. 13.32 skrev Morten Olav Hansen <
>> 1401...@bugs.launchpad.net>:
>>> 
>>> Should be fixed in latest trunk / 2.17. Please try it out and report
>>> back.
>>> 
>>> ** Changed in: dhis2
>>>Assignee: (unassigned) => Morten Olav Hansen (mortenoh)
>>> 
>>> ** Changed in: dhis2
>>>  Importance: Undecided => Medium
>>> 
>>> ** Changed in: dhis2
>>>  Status: New => Fix Committed
>>> 
>>> ** Changed in: dhis2
>>>   Milestone: None => 2.17
>>> 
>>> --
>>> You received this bug notification because you are subscribed to the bug
>>> report.
>>> https://bugs.launchpad.net/bugs/1401952
>>> 
>>> Title:
>>> Analytics API: metadata.names[period] null when
>>> displayProperty=SHORTNAME
>>> 
>>> Status in DHIS 2:
>>> Fix Committed
>>> 
>>> Bug description:
>>> When using the displayName property in Analytics API and setting it to
>>> SHORTNAME, names of periods are not included in the metadata.
>>> 
>>> Example (demo/dev server):
>>> 
>> api/analytics.json?dimension=dx:cYeuwXTCPkU&dimension=ou:USER_ORGUNIT&dimension=pe:201311&displayProperty=SHORTNAME
>>> 
>>> To manage notifications about this bug go to:
>>> https://bugs.launchpad.net/dhis2/+bug/1401952/+subscriptions
>> 
>> 
> 
> -- 
> You received this bug notification because you are a member of DHIS 2
> developers, which is subscribed to DHIS.
> https://bugs.launchpad.net/bugs/1401952
> 
> Title:
>  Analytics API: metadata.names[period] null when
>  displayProperty=SHORTNAME
> 
> Status in DHIS 2:
>  Fix Committed
> 
> Bug description:
>  When using the displayName property in Analytics API and setting it to
>  SHORTNAME, names of periods are not included in the metadata.
> 
>  Example (demo/dev server):
>  
> api/analytics.json?dimension=dx:cYeuwXTCPkU&dimension=ou:USER_ORGUNIT&dimension=pe:201311&displayProperty=SHORTNAME
> 
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/dhis2/+bug/1401952/+subscriptions
> 
> ___
> 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

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1401952

Title:
  Analytics API: metadata.names[period] null when
  displayProperty=SHORTNAME

Status in DHIS 2:
  Fix Committed

Bug description:
  When using the displayName property in Analytics API and setting it to
  SHORTNAME, names of periods are not included in the metadata.

  Example (demo/dev server):
  
api/analytics.json?dimension=dx:cYeuwXTCPkU&dimension=ou:USER_ORGUNIT&dimension=pe:201311&displayProperty=SHORTNAME

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1401952/+subscriptions

___
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


[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 17702: minor

2014-12-15 Thread noreply

revno: 17702
committer: Abyot Asalefew Gizaw 
branch nick: dhis2
timestamp: Mon 2014-12-15 16:24:52 +0100
message:
  minor
modified:
  
dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-cache-cleaner/i18n/i18n_app.properties
  
dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-cache-cleaner/index.html
  
dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-cache-cleaner/scripts/controllers.js


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to 
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-cache-cleaner/i18n/i18n_app.properties'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-cache-cleaner/i18n/i18n_app.properties	2014-12-15 14:00:36 +
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-cache-cleaner/i18n/i18n_app.properties	2014-12-15 15:24:52 +
@@ -17,6 +17,7 @@
 cache_empty=Browser cache is empty. Nothing to clear.
 clearing_cache=Clearing cache
 proceed=Proceed
+select_all=Select all
 cancel=Cancel
 clear=Clear
 

=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-cache-cleaner/index.html'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-cache-cleaner/index.html	2014-12-15 14:00:36 +
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-cache-cleaner/index.html	2014-12-15 15:24:52 +
@@ -122,6 +122,7 @@
 
 
 {{'clear'| translate}}
+{{'select_all'| translate}}
 
 
 

=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-cache-cleaner/scripts/controllers.js'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-cache-cleaner/scripts/controllers.js	2014-12-15 14:00:36 +
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-cache-cleaner/scripts/controllers.js	2014-12-15 15:24:52 +
@@ -65,9 +65,18 @@
 
 });
 }
-});
-
+});
 getItemsToClear();
 });
 };
+
+$scope.selectAll = function(){
+angular.forEach($scope.lsKeys, function(lsKey){
+lsKey.remove = true;
+});
+
+angular.forEach($scope.dbKeys, function(dbKey){
+dbKey.remove = true;
+});
+};
 });
\ No newline at end of file

___
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


[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 17703: Analytics table, using inner join with organisationunits instead of _orgunitstructure. Protects a...

2014-12-15 Thread noreply

revno: 17703
committer: Lars Helge Overland 
branch nick: dhis2
timestamp: Mon 2014-12-15 19:08:16 +0100
message:
  Analytics table, using inner join with organisationunits instead of 
_orgunitstructure. Protects against situations where orgunitlevels have not 
been saved.
modified:
  
dhis-2/dhis-services/dhis-service-administration/src/main/java/org/hisp/dhis/resourcetable/DefaultResourceTableService.java
  
dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/DefaultAnalyticsTableService.java
  
dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/JdbcAnalyticsTableManager.java


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to 
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-administration/src/main/java/org/hisp/dhis/resourcetable/DefaultResourceTableService.java'
--- dhis-2/dhis-services/dhis-service-administration/src/main/java/org/hisp/dhis/resourcetable/DefaultResourceTableService.java	2014-11-11 09:12:38 +
+++ dhis-2/dhis-services/dhis-service-administration/src/main/java/org/hisp/dhis/resourcetable/DefaultResourceTableService.java	2014-12-15 18:08:16 +
@@ -148,6 +148,8 @@
 {
 int maxLevel = organisationUnitService.getMaxOfOrganisationUnitLevels();
 
+log.info( "Using " + maxLevel + " organisation unit levels for org unit structure table" );
+
 resourceTableStore.createOrganisationUnitStructure( maxLevel );
 
 List batchArgs = new ArrayList<>();

=== modified file 'dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/DefaultAnalyticsTableService.java'
--- dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/DefaultAnalyticsTableService.java	2014-11-24 15:41:33 +
+++ dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/DefaultAnalyticsTableService.java	2014-12-15 18:08:16 +
@@ -99,8 +99,9 @@
 public void update( Integer lastYears, TaskId taskId )
 {
 int processNo = getProcessNo();
+int orgUnitLevelNo = organisationUnitService.getMaxOfOrganisationUnitLevels();
 
-Clock clock = new Clock().startClock().logTime( "Starting update, no of processes: " + processNo );
+Clock clock = new Clock().startClock().logTime( "Starting update, processes: " + processNo + ", org unit levels: " + orgUnitLevelNo );
 
 String validState = tableManager.validState();
 
@@ -113,7 +114,7 @@
 final List tables = tableManager.getTables( lastYears );
 
 clock.logTime( "Partition tables: " + tables + ", last years: " + lastYears );
-notifier.notify( taskId, "Creating analytics tables, processes: " + processNo );
+notifier.notify( taskId, "Creating analytics tables, processes: " + processNo + ", org unit levels: " + orgUnitLevelNo );
 
 createTables( tables );
 

=== modified file 'dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/JdbcAnalyticsTableManager.java'
--- dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/JdbcAnalyticsTableManager.java	2014-11-24 15:19:53 +
+++ dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/JdbcAnalyticsTableManager.java	2014-12-15 18:08:16 +
@@ -213,12 +213,13 @@
 "left join _categoryoptiongroupsetstructure cogs on dv.attributeoptioncomboid=cogs.categoryoptioncomboid " +
 "left join _categorystructure dcs on dv.categoryoptioncomboid=dcs.categoryoptioncomboid " +
 "left join _categorystructure acs on dv.attributeoptioncomboid=acs.categoryoptioncomboid " +
+"left join _periodstructure ps on dv.periodid=ps.periodid " +
 "left join _orgunitstructure ous on dv.sourceid=ous.organisationunitid " +
-"left join _periodstructure ps on dv.periodid=ps.periodid " +
-"left join dataelement de on dv.dataelementid=de.dataelementid " +
-"left join _dataelementstructure des on de.dataelementid = des.dataelementid " +
-"left join categoryoptioncombo co on dv.categoryoptioncomboid=co.categoryoptioncomboid " +
-"left join period pe on dv.periodid=pe.periodid " +
+"left join _dataelementstructure des on dv.dataelementid = des.dataelementid " +
+"inner join dataelement de on dv.dataelementid=de.dataelementid " +
+"inner join categoryoptioncombo co on dv.categoryoptioncomboid=co.categoryoptioncomboid " +
+"inner join period pe on dv.periodid=pe.periodid " +
+"inner join organisationunit ou on dv.so

Re: [Dhis2-devs] Invalid coordinates GIS

2014-12-15 Thread Calle Hedberg
sorry, addon:

the Excel file has three sheets:
Sheet 1 is what you sent
Sheet 2 has the facility column, LON, LAT (note: DHIS2 requires LON then
LAT) - I rounded to 4 decimals at the same time. NOTE also that I checked
all the rows, and highlighted illegal/absurd coordinates in red.
Sheet 3 is a cleaned version, pure text, with all illegal/absurd coordinate
rows removed. This sheet was then saved as the .csv file.

I then imported the .csv file into ArcGIS and created the attached
shapefile.

What you now need to do is to convert that shapefile to GLM, AND MAKE SURE
THAT ALL THE NON-ASCII CHARACTERS YOU FIND IN PORTUGUESE ARE CODED PROPERLY
IN THE GLM FILE. See for instance
http://www.periodni.com/unicode_utf-8_encoding.html#german_special_characters
if you need to know the codes for various characters.

Finally, I have obviously skipped one step that you always should do before
creating the shapefile - and that is to compare the list of OrgUnits with
the DHIS2 OrganisationUnit table. You can do that using e.g. MS Access, or
PostgreSQL, or whatever other database software that supports joins. I must
admit that if your list is what you have in DHIS2, you might consider
cleaning it up quite a bit: remove full stops, colons, and other special
characters. They tend to cause problems sooner or later

Regards
Calle

On 15 December 2014 at 17:09, Joao Mazuze  wrote:
>
>  Hi,
>
> Here is the attached file containing coordinates that I have set up in my
> dhis2 instance.
>
>
>
> Kind regards
>
>
>
> *From:* Calle Hedberg [mailto:calle.hedb...@gmail.com]
> *Sent:* 11 December 2014 10:33
> *To:* Pamod Amarakoon
> *Cc:* Joao Mazuze; dhis2-us...@lists.launchpad.net; DHIS 2 developers
> *Subject:* Re: [Dhis2-devs] Invalid coordinates GIS
>
>
>
> Pamod,
>
>
>
> Latitudes south of the equator is always negative (at least in the typical
> geographical coordinate systems normally used in dominant GIS systems).
>
>
>
> Joao,
>
>
>
> Can you please post the complete list of coordinates - seeing one sample
> does not really help (your sample definitely looks like it's somewhere in
> Moz). Also post the complete list of Organisational Units.
>
>
>
> Jan Henrik's suggestion might work, but it's very cumbersome - I prefer to
> ensure perfect alignment of OrgUnits + verify the validity of all
> coordinates (as far as you can go - occasionally funny things seems happen
> when e.g. converting to GML) BEFORE importing the data
>
>
>
> Regards
>
> Calle
>
>
>
> On 10 December 2014 at 17:03, Pamod Amarakoon  wrote:
>
> Hi Joao,
>
> The lattitude value you have entered in point coordinate is a negative
> value. It needs to be corrected. Are u using a local coordinate or WGS84?
>
> Regards,
>
> Pamod
>
>
>
>
>
> On Wed, Dec 10, 2014 at 8:28 PM, Joao Mazuze 
> wrote:
>
>   Dear all,
>
> I have recently set up coordinates for my health facilities, but when I am
> trying to visualize in GIS at the health facility level dhis2 throws: 
> *“invalid
> coordinates”, *can someone help on this? I have attached a picture
> showing how my coordinates look like.
>
>
>
> Kind regards
>
>
>
>
>
> *Melhores Cumprimentos*
>
>
>
> *João Gabriel Mazuze*
>
> *National Database Manager*
>
> CHASS-SMT Project
>
> Abt Associates Inc.
>
> Av. Marginal  nº 4067
>
> Maputo -  Mozambique
>
> Fax: (+ 258) 21493525/6/8
>
> Tel:  (+ 258) 21486767
>
> Cell: (+258) 824236279
>
> www.chasssmt.com
>
>
>
> [image: Description: Description: Description: Description: Description:
> Description: Description: Description: Logotipo CHASS-SMT]
>
> *We are a project founded by PEPFAR-II  through USAID to strengthen  the
> Health System in Sofala, Manica and Tete Provinces.*
>
> *Our aim is to improve  linkages and integration of HIV to  primary health
> care and other related services in coordination with the Provincial Health
> Directorates and partners. *
>
> *Through CHASS-SMT project, the US Government supports the Mozambican
> Governament to improve  quality of health care services in the country.*
>
>
>
>
>  --
>
> This message may contain privileged and confidential information intended
> solely for the addressee. Please do not read, disseminate or copy it unless
> you are the intended recipient. If this message has been received in error,
> we kindly ask that you notify the sender immediately by return email and
> delete all copies of the message from your system.
>
>
>
> ___
> 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
>
>
>
>
> --
>
> Pamod
>
>
> ___
> 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
>
>
>
>
>
> --
>
> ***

[Dhis2-devs] Org Unit Groups

2014-12-15 Thread Adebusoye Anifalaje
Hi devs,

Has the rules changed on org units groups in multiple groups? I have org units 
groups in multiple group sets. None of the org units violate exclusive groups 
set. However I see that is is no longer possible to have org units available 
after they have been assigned to org unit groups sets. Is this a new direction? 
This means we have to duplicate ou groups to use them in more than one group 
set.

Can anyone clarify?

Thanks

Busoye

Version:
2.17
Build revision:
17642___
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


Re: [Dhis2-devs] Org Unit Groups not allowed in Multiple Group Sets

2014-12-15 Thread Adebusoye Anifalaje
Sorry that email was sent mistakenly before it was ready:

Problem is this:

- It used to be possible to reuse org unit groups and assign them to multiple 
group sets as long as this does not violate the exclusive org unit groups set 
rule.

- Now from 2.17, it seems that a one-to-one relationship is now being enforced.

Can anyone confirm this is the case?

Thanks

Busoye

> On 15 Dec 2014, at 18:54, Adebusoye Anifalaje  wrote:
> 
> Hi devs,
> 
> Has the rules changed on org units groups in multiple groups? I have org 
> units groups in multiple group sets. None of the org units violate exclusive 
> groups set. However I see that is is no longer possible to have org units 
> available after they have been assigned to org unit groups sets. Is this a 
> new direction? This means we have to duplicate ou groups to use them in more 
> than one group set.
> 
> Can anyone clarify?
> 
> Thanks
> 
> Busoye
> 
> Version:
> 2.17
> Build revision:
> 17642
> ___
> 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


[Dhis2-devs] add more category into existing category combination

2014-12-15 Thread rin.channara
Hi all,

Do you know it will be lost data or not? if  I am have one datalement with 
three categoryoption and already have datavalue in each categoryoption in that 
dataelement, So now can I add a new more categoryoption?




Thank you

CHANNARA___
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