Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement endpoint using gdata api that fetches hospital registration from google sheet #29

Open
codecakes opened this issue Aug 13, 2022 · 0 comments
Assignees
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

Comments

@codecakes
Copy link
Contributor

codecakes commented Aug 13, 2022

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.

  1. An IO endpoint should fetch using the gdata api
  2. The data is saved using the storage repository.

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.

image

@codecakes codecakes added enhancement New feature or request help wanted Extra attention is needed labels Aug 13, 2022
@codecakes codecakes moved this to To do in registrations Aug 13, 2022
@codecakes codecakes changed the title Implementing I/O endpoint using gdata api that fetches from a google sheet and saves the results. Implement I/O endpoint using gdata api that fetches from a google sheet and saves the results. Aug 13, 2022
@codecakes codecakes changed the title Implement I/O endpoint using gdata api that fetches from a google sheet and saves the results. Implement I/O endpoint using gdata api that fetches from a google sheet and saves the results Aug 13, 2022
@codecakes codecakes pinned this issue Aug 13, 2022
@codecakes codecakes added the hospital-registration Story ticket/Issue relates to Hospital Registration Service label Aug 13, 2022
@codecakes codecakes changed the title Implement I/O endpoint using gdata api that fetches from a google sheet and saves the results Implement I/O endpoint using gdata api that fetches hospital registration data from google sheet and saves the results Aug 13, 2022
@codecakes codecakes changed the title Implement I/O endpoint using gdata api that fetches hospital registration data from google sheet and saves the results Implement endpoint using gdata api that fetches hospital registration from google sheet Aug 13, 2022
@codecakes codecakes added the good first issue Good for newcomers label Aug 13, 2022
@codecakes codecakes self-assigned this Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
Status: To do
Development

No branches or pull requests

1 participant