Skip to content

Commit d6884ab

Browse files
committed
[Chore] Add README
1 parent 4134816 commit d6884ab

File tree

1 file changed

+45
-1
lines changed

1 file changed

+45
-1
lines changed

README.md

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,46 @@
11
# HealthTools.KE-api
2-
HealthTools Kenya API to retrieve, structure and return data being used by the health tools.
2+
HealthTools Kenya API to retrieve, structure and return data being used by the health tools. It provides
3+
data on the following medical officer registries:
4+
5+
- Doctors: http://medicalboard.co.ke/online-services/retention/
6+
- Foreign doctors: http://medicalboard.co.ke/online-services/foreign-doctors-license-register
7+
- Clinical officers: http://clinicalofficerscouncil.org/online-services/retention/
8+
9+
### Specifications
10+
Specification for the API is shown below. It is an open api and requires no authentication to access.
11+
12+
13+
| EndPoint | Allowed Methods | Functionality | Parameters |
14+
|-------------------------------------|------------------|----------------------------------------------------------|------------|
15+
| `/doctors/search.json` | GET | Search a doctor by the name | q=<name> |
16+
| `/nurses/search.json` | GET | Search a nurse by the name | q=<name> |
17+
| `/clinical-officers/search.json` | GET | Search a clinical officer by the name | q=<name> |
18+
19+
20+
### Installation
21+
Clone the repo from github `$ git clone [email protected]:RyanSept/HealthTools.KE-api.git`
22+
23+
Change directory into package `$ cd HealthTools.KE-api`
24+
25+
Install the dependencies by running `$ pip install requirements.txt`
26+
27+
You can set the required environment variables like so
28+
```<>
29+
$ export GA_TRACKING_ID=<google-analytics-tracking-id>
30+
$ export SMS_USER=<sms-provider-user-id>
31+
$ export SMS_PASS=<sms-provider-passcode>
32+
$ export SMS_SHORTCODE=<sms-provider-shortcode>
33+
$ export SMS_SEND_URL=<url-for-sms-provider>
34+
$ export CONFIG=<config-mode> # eg. "healthtools_ke_api.settings.DevConfig"
35+
$ export AWS_ACCESS_KEY_ID=<aws-access-key-id>
36+
$ export AWS_SECRET_KEY=<aws-secret-key>
37+
$ export AWS_REGION="<aws-region>
38+
```
39+
40+
You can now run the server `$ python manage.py` or `gunicorn manage:app` for production.
41+
42+
43+
## Running the tests
44+
45+
Use nosetests to run tests (with stdout) like this:
46+
```$ nosetests --nocapture```

0 commit comments

Comments
 (0)