pwyf / 2018-index-indicator-definitions

1 stars 0 forks source link

Unique ID #23

Open andylolz opened 7 years ago

andylolz commented 7 years ago

Description

The activity identifier is a unique reference ID for the activity, e.g. a project number.

Note: This test has not been modified since the 2016 Aid Transparency Index

Proposed test

Firstly:

For each current activity,
`iati-identifier` should be present

Secondly:

For each current activity,
either:
`iati-identifier/text()`
should start w​ith `reporting-org/@ref`
o​r
`iati-identifier/text()`
should start w​ith `other-identifier[@type="B1"]/@ref`

Example

If the reporting-org is 44000 then the following example would pass the test:

<iati-identifier>44000-P126875</iati-identifier>

While this example would not pass the test:

<iati-identifier>P126875</iati-identifier>
andylolz commented 7 years ago

These tests will remain as proposed.