Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Unique identifier (UID) generated by DHIS2 for an organization unit.

shortName

Parameter

dhis2 Attribute

Description

Example

coordinates

(String)
User's location in the format of Latitude, Longitude. This is used to find nearby organization units.

Format: "latitude,longitude"

coordinates=-0.1663,35.5924

points

(Array of Decimals)
An array of coordinates. Available only for the

Status
colourYellow
titlePOST
method.

latitude

(Decimal)
Latitude component of the user's location.

longitude

(Decimal)
Longitude component of the user's location.

Info

Either of the above attributes is required

Organization Unit

Code Block
{
    "ancestor": {
        "id": 1234
    },
    "points": [-1.286389, 36.817223],
    "distance": 10,
    "unit": "KM"
}

latitude

(Decimal)
Latitude component of the user's location.

latitude=-26.18

longitude

(Decimal)
Longitude component of the user's location.

longitude=28.31

Info

Please consider either using coordinates or latitude & longitude. Points parameter is only available for POST request.

Organization Unit

uid

Status
titlecore
| OrgUnit UID

(String)

Unique identifier (UID) generated by DHIS2 for an organization unit.

code

Status
titlecore
| Org Unit Code

(String)

Code assigned to the organization unit.

shortName

Status
titlecore
| Org Unit shortName

(String)

Short name of the organization unit.

Ancestor (Organization Unit)

ancestor.uid

Status
titlecore
| OrgUnit UID for ancestor

(String)

code

Status
titlecore
| Org Unit Code

(String)

Code assigned to the organization unit.

OrgUnit UID / code for ancestor. When provided, all locators/facilities under it are populated. Represents the DHIS2 parent that represents the country.

ancestor.code

Status
titlecore
| Org Unit shortName

(String)

Short name of the organization unit.

Ancestor (Organization Unit)

ancestor.uid

Status
titlecore
| OrgUnit UID for ancestor

(String)

OrgUnit UID / code for ancestor. When provided, all locators/facilities under it are populated. Represents the DHIS2 parent just above the Organization Unit.

ancestor.code

Status
titlecore
| OrgUnit code for ancestor

OrgUnit code for ancestor

Info
Please Note
  • Either of these three category of filters is required to get the API response

  • Consider using OrganisationUnit filter if you are looking for specific Location / organisation unit

  • You can use Ancestor and coordinates / (lat,lng) to get locations within the specific country.

Optional parameters

Parameter

Option Value

Default Option

Description

paging

Boolean

true

Specifies whether pagination is required.

page

Number

1

Determines the page number to be returned.

pageSize

Number

10

Sets the total number of items per page.

distance

Number

10

Specifies the radius (in unit specified) within which to generate the organization units.

unit

Options:
m (meters),
km (kilometers), mi (miles)

km

Defines the unit of measurement for distance.

level

Number

7

Indicates the hierarchy level of the organization unit.

Filters

type

Text

Specifies the type of the location.

phoneNumber

Text (Phone Number)

N/A

DHIS2 core element that defines the phone number

of the location.

DHIS2 custom ou attribute

type

Text

Specifies the type

of the location.

tags

Text (Separated by ',' or '|')

N/A

Defines the tags the locations are associated with.
Returns all the organization which has at least one of the tags provided.

Text
(separated by &)

NA

Returns all the organization which has all of the tags provided.

services

Text (Separated by ',' or '|')

N/A

Defines the services offered by the locations.

Returns all the organization which has at least one of the service provided.

Text
(separated by &)

Returns all the organization which has all of the services provided.

area

Text

N/A

Defines the broader area where the location is situated.

subArea

Text

N/A

Specifies the subarea of the location.

whatsapp

Text (phone Number)

N/A

Indicates the WhatsApp number of the location.

facebook

Text or URL

N/A

Provides the Facebook URL for the location.

responseFhir

Boolean

No

Determines if the response should be in FHIR or DHIS2 format.

URL (for

Status
colourGreen
titleGET
request):

...