Implement endpoint using gdata api that fetches hospital registration from google sheet #29
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
hospital-registration
Story ticket/Issue relates to Hospital Registration Service
Is your feature request related to a problem? Please describe.
Issue #265 concludes with a google sheet where the form saves the data. Provided #265 adds the form as per requirement, We need a way to pull data and save in bulk to our hospital repository.
Describe the solution you'd like
This is a simple solution with Google sheet as API(docs here)
Our concern in the workflow diagram should only be limited to the scope of implementing the gdata api that fetches from sheet and stores the results.
TO understand what data is saved, read the api reference: https://mycovidconnect.stoplight.io/docs/registrations/3bafb969a5011-register-hospital-center
Describe alternatives you've considered
If you have something better than GData api, add to comment.
Additional context
This workflow shows how in bulk how a gdata api can pull the records but not how. What if there are thousands of 10k records here?
Also, there is no point in fetching what is already fetched in which case the fetched data should be marked somehow so the next bath of records should be fetched into a Registration endpoint arbitrarily called
/gsheet-fetch-endpoint
here.We need to keep in mind that this endpoint consumes only unclaimed hospitals which means they're treated by default as verified ones.
The rest of the workflow describes a location service consuming the unclaimed hospital repository but it consumes other health records as well.
The text was updated successfully, but these errors were encountered: