6. Validation Rules

This document defines validation rules between items and record types. The domain of individual items is defined in Record formats.

6.1. Current Validations

6.1.1. Keys

The following rules apply to the key fields in all records:

  1. All key fields are case sensitive

  2. All key fields must be valid unicode characters

6.1.2. Organisation

  1. Refer to Keys for Provider Organisation Key validations

  2. The Organisation Start Date

    • must not be before 1 January 2014 or before a commissioning organisation’s start date

    • and must not be after the earliest Collection Date

    • and must not be in the future

  3. The Organisation End Date

    • must not be before 1 January 2014 or after a commissioning organisation’s end date

    • and must not be before the latest Collection Date

    • can be in the future

  1. The ABN must adhere to the format defined by the Australian Business Register at https://abr.business.gov.au/Help/AbnFormat

6.1.3. Survey

  1. Refer to Keys for Survey Key validations

  2. The Collection Date must not be in the future

6.1.4. YES PHN

  1. Refer to Keys for Instrument Key validations

  2. If both question scores and subscales are specified, the sum of the items must agree with the subscales score (as per Scoring the YES PHN Experience Scale and Scoring the YES PHN Outcome Scale)