...
Info |
---|
Note: For PSI implementation, authorization is handled by OpenHIM, and Spring Boot security is disabled by default. |
Request Parameters
Required Parameters
You must provide at least one of the following parameters
Parameter | dhis2 Attribute | Description | Example | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
coordinates | (String) Format: "latitude,longitude" | coordinates=-0.1663,35.5924 | ||||||||||||
points | (Array of Decimals)
| latitude | (Decimal) | longitude | (Decimal) Longitude
| |||||||||
latitude | (Decimal) | latitude=-26.18 | ||||||||||||
Info | ||||||||||||||
longitude | (Decimal) | longitude=28.31 | ||||||||||||
| ||||||||||||||
Organization Unit | ||||||||||||||
uid |
| (String) Unique identifier (UID) generated by DHIS2 for an organization unit. | ||||||||||||
code |
| (String) Code assigned to the organization unit. | ||||||||||||
shortName |
| (String) Short name of the organization unit. | ||||||||||||
Ancestor (Organization Unit) | ||||||||||||||
ancestor.uid |
| (String) OrgUnit UID / code for ancestor. When provided, all locators/facilities under it are populated. Represents the DHIS2 parent just above the Organization Unitthat represents the country. | ||||||||||||
ancestor.code |
|
Info |
---|
Please Note
|
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: | 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
Text
Specifies the type of the location.
tags | Text (Separated by ',' or '|') | N/A | Defines the tags the locations are associated with. |
Text | 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 | 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. |
Text (phone Number) | N/A | Indicates the WhatsApp number of the location. | |
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 | ||||
---|---|---|---|---|
|
...
Code Block | ||
---|---|---|
| ||
{ "pager": { "page": 1, "pageCount": 1, "total": 1, "pageSize": 1, "first": true, "last": true }, "locations": [ { "resourceType": "Location", "id": "d5AeP1W7nT", "identifier": [ { "system": "http://www.acme.org/identifiers/location", "value": "US-FH-1235" }, { "system": "http://www.acme.org/identifiers/location", "value": "/s7JFm0K2cN/8xqYb6V3gL/i4hDz9R1mE/a2XpM3G6rC/c9NlB7P8jY/u3RcT5L9vH/d5AeP1W7nT" } ], "name": "Riverside General Hospital (US-FH-1235)", "alias": [ "Riverside General Hospital" ], "description": null, "status": "active", "mode": "instance", "address": { "street1": "123 Main Street", "street2": null, "city": "Any City", "state": "NY", "postalCode": 12345, "country": "United State" }, "contact": { "telecom": [ { "system": "phone", "value": "+14722240000", "use": null } ] }, "position": { "longitude": 30.7983, "latitude": -10.25 }, "hoursOfOperation": "Mon-Fri,8:00,17:00", "healthCareServices": "COV,STI" } } ] } |
You can also find the POSTMAN examples below:
1. DHIS2 Response: POSTMAN
FHIR Response: POSTMAN