OpenFn / godata-interoperability

Go.Data Interoperability toolkit & reference implementations
0 stars 0 forks source link

Job to fetch Healthsites.io data #1

Closed aleksa-krolls closed 3 years ago

aleksa-krolls commented 3 years ago

Background, context, and business value

We watch to fetch health facility data from healthsites.io and load into this OpenFn project (to then later map & upload to Go.Data). Go.Data users are primary epidemiologists and outbreak responders who would benefit from health facility lists & data to better understand available resources and conduct disease surveillance.

Read this for more about available Senegal data. Go.Data users are primarily epidemiologist (so see those user stories for a better idea of what data we want to extract). Learn more about Go.Data: https://www.who.int/godata

The specific request, in as few words as possible

Job to... (1) GET health sites data via the API, and (2) post to OpenFn inbox.

Please pull available site data for Senegal.

state.json

Healthsites API docs (please create a new OSM account for OpenFn and share the login details via LastPass): https://github.com/healthsites/healthsites/wiki/API

adaptor

language-http

expression.js

New job getHealthSites.js

output.json

Post data as new Message to OpenFn project inbox (so we can later map to Go.Data): https://www.openfn.org/projects/3037/messages

aleksa-krolls commented 3 years ago

@taylordowns2000 fyi, please add to your Zenhub Repo List.

aleksa-krolls commented 3 years ago

@chaiwa-berian Please let @daissatou and me know when this is done so that we can review the JSON output and consider how to map this health sites data to Go.Data.

aleksa-krolls commented 3 years ago

@chaiwa-berian A couple of questions...

  1. Can you please share your configuration details/login credentials with me via Slack so that I can test locally?
  2. What endpoint is this Message from? (The data looks nicely structured, so I might prefer to use this dataset for our reference implementation.)
  3. In the Senegal data (I'm looking at this Message), is there a way to more easily see the geolocation of each health facility listed? Ideally I want to map health facilities to Go.Data Locations (which have a Name, Type, and Geolocation)... but in this Message it looks like it will be hard to map facility geolocation (so therefore I might choose to use #2 as my state).