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

Items beneficiaries: distribution among schools #1388

Closed
yolile opened this issue Aug 17, 2021 · 7 comments
Closed

Items beneficiaries: distribution among schools #1388

yolile opened this issue Aug 17, 2021 · 7 comments
Labels
Extensions - Drafted Relating to a drafted extension Extensions - Local Relating to a local extension Focus - Extensions Relating to new or proposed extensions, or the governance and maintenance of extensions

Comments

@yolile
Copy link
Member

yolile commented Aug 17, 2021

In Paraguay, some municipalities and other entities that tender items using a specific fund called FONACIDE, need to specify in their tender items how much of each item will be for each (and which) school in their localities.

Example

For example, in this tender, the municipality of Capitan Meza wants to build bathrooms (among other things) for their schools. For the item "Instalaciones sanitarias" in lot number 2, the total available amount is PYG 75.000.000. But they also need to specify:

  • The code of each school will be beneficial with the bathrooms
  • For each school, the total amount that will be investment
  • A list of areas of investment (that comes from a closed code list)

Eg:

  • Instalaciones sanitarias
    • School code: ABC
      • amount: PYG 37.500.000
      • areas: infrastructure: bathrooms
    • School code: BCD
      • amount: PYG 37.500.000
      • areas: infrastructure: bathrooms

Proposal

One option could be to create a local extension that adds an array field to the Item object, a list of Schools, each School object, could have a code, Value, and areas

Another option could somehow reuse the existing valueBreakdown extension, and add an object inside the value breakdown list for each school. We will need an additional field for the areas of investment, though.

cc @rparrapy @micayael

@yolile yolile added discussion Focus - Extensions Relating to new or proposed extensions, or the governance and maintenance of extensions labels Aug 17, 2021
@jpmckinney
Copy link
Member

This is similar to open-contracting-extensions/public-private-partnerships#235 (and open-contracting/infrastructure#335)

I think a generic benefits or beneficiaries array might be best, in which the beneficiary objects specify the type of beneficiary (a school), its identifier (the code), the value they benefit by (amount and currency), and then any other classifications (the areas).

@yolile
Copy link
Member Author

yolile commented Aug 18, 2021

Makes sense. From the user point of view a single array of beneficiaries could be easier to use, as items is already an array and with benefits we will have 2 more nested arrays, so it could be something like:

{
  "items": {
    "id": "1",
    "description": "Instalaciones sanitarias",
    "quantity": 1,
    "unit": {
      "name": "Unidad Medida Global",
      "id": "GL",
      "value": {
        "amount": 75000000,
        "currency": "PYG"
      }
    },
    "beneficiaries": [
      {
        "identifier": {
          "id": "ABC",
          "scheme": "PY-MEC-INSTITUCIONES-EDUCATIVAS",
          "uri": "https://datos.mec.gov.py/doc/establecimientos/1701006"
        },
        "benefit": {
          "value": {
            "amount": 37500000,
            "currency": "PYG"
          }
        },
        "classification": {
            "scheme": "PY-MEC-FONACIDE-AREA-INVERSION",
            "description": "Infraestructura:sanitarios; Infraestructura:mobiliarios"
        }
      }
    ]
  }
}

I'm omitting the "type" for "identifier/scheme"

@jpmckinney
Copy link
Member

Sounds good. If a single primary classification is expected, then using a singular classification object would also make the model simpler.

@yolile
Copy link
Member Author

yolile commented Aug 18, 2021

Sadly an array of classifications is expected. I edited the example to also include the URI of the school, as they also have that. We agreed on this model with the DNCP and the extension will be drafted.

@yolile
Copy link
Member Author

yolile commented Aug 20, 2021

After testing it with the users and with the flattened version, a singular classification object is indeed simpler, so we would use a single object, but we will concatenate the different areas in the classification.description, and won't use a classification.id

@rparrapy
Copy link

@yolile yolile changed the title Items details: distribution among schools Items beneficiaries: distribution among schools Sep 22, 2021
@yolile
Copy link
Member Author

yolile commented Sep 22, 2021

Closing this issue as there is an extension drafted

@yolile yolile closed this as completed Sep 22, 2021
@jpmckinney jpmckinney added Extensions - Drafted Relating to a drafted extension Extensions - Local Relating to a local extension and removed discussion labels Sep 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Extensions - Drafted Relating to a drafted extension Extensions - Local Relating to a local extension Focus - Extensions Relating to new or proposed extensions, or the governance and maintenance of extensions
Projects
None yet
Development

No branches or pull requests

3 participants