open-contracting / standard

Documentation of the Open Contracting Data Standard (OCDS)
http://standard.open-contracting.org/
Other
139 stars 46 forks source link

Example: Combine text fields and publish semi-structured data #1177

Open duncandewhurst opened 3 years ago

duncandewhurst commented 3 years ago

Sometimes multiple text fields in a publisher's data source map to a single text field in OCDS.

There are several options for handling this, depending on the nature of the data and whether there is a reason users would need to separate the values or identify which field they were mapped from:

  1. Simply concatenate the values
  2. Concatenate the values with a separator which does not otherwise appear in the fields, e.g. ';'
  3. Use a newline and a prefix to separate the values, e.g.
<value 1>

<prefix>: <value 2>

In all cases the approach used should be documented in the publication policy.

We can document this in a worked example, with reference to the guidance shared in CRM-6884.

jpmckinney commented 3 years ago

Sometimes multiple text fields in a publisher's data source map to a single text field in OCDS.

We might want a section to explain when this might be the case. For example, it could be the case that there is only one candidate field that currently exists in OCDS or extensions, but the appropriate solution might be to (1) create an extension field or (2) omit a source field.

Cases for creating an extension field:

Cases for omitting a source field:

Cases for merging source fields: