Location Registry
The purpose of location registry is to uniquely identify geographical locations in a country - often in terms of administrative setup. This allows to identify patients location and care services location uniquely.
API
Get Locations
Request :
GET https://{lr_service}/locations/list/{level}?updatedSince={ISO8601 formatted date}&limit={limit}&offset={offset}Headers :
X-Auth-Token : {auth token assigned while user registration in HRM}client_id : {client id of requester in Identity Service Provider}The level field can contain one of the following :
division
district
upazila
paurasava
union
ward
Sample Response
[ { "code": "1020", "id": "1020", "name": "Example Location", "name_BN": "", "type": "district", "active": 1, "updatedAt": "2016-10-02 13:19:57", "hierarchy": [ { "code": "10", "name": "Example Parent Location", "name_BN": "", "type": "division" }, { "code": "20", "name": "Example Location", "name_BN": "", "type": "district" } ] } ]Get Single Location Information
Request :
GET http://hrmtest.dghs.gov.bd/api/1.0/locations/{geoCode}.jsonHeaders :
X-Auth-Token : {auth token assigned while user registration in HRM}client_id : {client id of requester in Identity Service Provider}Sample Response
{ "code": "1020", "id": "1020", "name": "Example Location", "name_BN": "", "type": "district", "active": 1, "updatedAt": "2016-10-02 13:19:57", "hierarchy": [ { "code": "10", "name": "Example Parent Location", "name_BN": "", "type": "division" }, { "code": "20", "name": "Example Location", "name_BN": "", "type": "district" } ] }
BHIE
For Bangladesh, the geographical codes for locations are unique for a specific hierarchy.
The code sequence
Division code | Zilla code | Upazilla/ Thana code | Union/ Ward code | Mauza/ Mahalla code | Village code | RMO code | Name |
XX | XX | XX | XX | XXX | XX | X | XXXXXX |
Bangladesh Geo Code, BBS
format - http://www.bbs.gov.bd/PageWebMenuContent.aspx?MenuKey=150
Geo code list - an excel version of it is attached below
The HRM system's Geocode are not in sync with the one on DGHS website here. The fix is being done.
As par BBS, for DHAKA zila (26), Dohar Upazila (18), there are some 9 wards under "Dohar paurashava" (60), and 8 unions under unidentified Paurashava (99). There are many such unions under a City Corp/Paurashava code of 99 in different Zilas. It maybe the case that that BBS defines unions/wards under a particular nameless/default paurashava code of 99.
Going by the above
Bilaspur union (13) in Dohar upazilla/thana (18) under Dhaka District (26) from Dhaka division (30) would be expressed as - 3026189913 (30-26-18-99-13)
Ward no -1 (01) in Dohar paurashava (60) of Dohar upazila/thana (18) in Dohar upazilla (18) under Dhaka District (26) from Dhaka division (30) would be expressed as - 3026186001 (30-26-18-60-01)