The current procuring_entity function only copies across parties with a role of "procuringEntity".
It should also check whether tender.procuringEntity.name and tender.procuringEntity.id exist as outlined in the mapping to cover cases where tender.procuringEntity fields are declared, but the roles for that party do not include "procuringEntity", as in the OCDS sample data.
The current
procuring_entity
function only copies across parties with a role of "procuringEntity".It should also check whether
tender.procuringEntity.name
andtender.procuringEntity.id
exist as outlined in the mapping to cover cases wheretender.procuringEntity
fields are declared, but theroles
for that party do not include "procuringEntity", as in the OCDS sample data.https://github.com/open-contracting/ocdskit/blob/9255880b2e5bda334b4e0e61cd5ecc327aab3c5f/ocdskit/oc4ids.py#L392