covidarmy / backend

The Backend for COVID Army
6 stars 3 forks source link

New Requirements - Last week of May #131

Closed rgxai closed 3 years ago

rgxai commented 3 years ago

Context

There has been a significant change in the requirements of care seekers in the last 10 days which have mandated a new set of flows and functionality to suit those needs. Some of those changes are:

  1. Increase in requirements from Tier2/3 cities and reduction in queries from Tier 1 cities (multi-lingual, city -> state mapping, etc)
  2. The new requirements are majorly for medicines such as Tocilizumab, Amphotericin, Isavuconazole, etc
  3. Reduction in the number of available volunteers as everyone has resumed normal work and has piled up work to finish (ensuring the volunteers' time is driven towards highest ROI requirement)

Requirements for Backend and Frontend

  1. Since the data for tier2/3 cities is not easily available on Twitter, we need a custom flow for volunteers to add data
  2. This data addition flow needs to ensure that volunteers add data for city+resource combos that are most requested for but don't have any data. We need to track API hits for each resource combo based on which we can rank those combos. The ranking logic will basically rank resource city combos which have 0 helpful data in descending order of the number of requests for that combo.
  3. If data is not found for a particular city+resource combo, we show the data of other cities within that state for the requested combo
  4. A contact number could have multiple covid medicines available so we should not upsert contact numbers based on the contact number as the unique key. When adding contact number to the database, the volunteer will be able to select multiple types of resources that the contact number is providing (such as multiple medicines in the form of multiple tags). These will be added as separate entities in the database (unique phone + resource type combo) even if the number is unique.
  5. There needs to be UI based prompts and nudges in the volunteer data addition flow that we are trusting them and they should not misuse the system by putting incorrect or fraud numbers. Similar to the prompts on coverify.
  6. We need to add a few more medicine types to our resources list. Will confirm the list of these separately.