OrderedContest

This data entity is used to reference a contest and enumerate a specific ordering of its ballot selections. BallotStyle includes OrderedContest for each contest on the ballot. To preserve any rotation associated with the ballot, it is expected that the generating application will list the occurrences of references to BallotSelection elements within OrderedBallotSelectionIds in the order as on the ballot.

The table below shows the elements for OrderedContest:

Element Multiplicity Type Element Description
ContestId 1 IDREF Unique identifier for a Contest element. For associating a contest on the ballot.
OrderedBallotSelectionIds 0 or 1 IDREFS Unique identifier for one or more BallotSelection elements. For associating ballot selections with the contest.

Examples

XML

    <BallotStyle objectId="bs00000">
      <OrderedContest>
        <ContestId>oc001</ContestId>
        <OrderedBallotSelectionIds>bar001 bar002 bar003</OrderedBallotSelectionIds>
      </OrderedContest>
      <OrderedContest>
        <ContestId>oc002</ContestId>
        <OrderedBallotSelectionIds>bar002 bar003 bar001</OrderedBallotSelectionIds>
      </OrderedContest>
      <OrderedContest>
        <ContestId>oc003</ContestId>
        <OrderedBallotSelectionIds>bar003 bar001 bar002</OrderedBallotSelectionIds>
      </OrderedContest>
    </BallotStyle>

JSON

    "BallotStyle": {
      "objectId": "bs00000",
      "OrderedContest": [
        {
          "ContestId": "oc001",
          "OrderedBallotSelectionIds": [
            "bar001",
            "bar002",
            "bar003"
          ]
        },
        {
          "ContestId": "oc002",
          "OrderedBallotSelectionIds": [
            "bar002",
            "bar003",
            "bar001"
          ]
        },
        {
          "ContestId": "oc003",
          "OrderedBallotSelectionIds": [
            "bar003",
            "bar001",
            "bar002"
          }
        }
      ]
    }