7. Validation Rules¶
This document defines validation rules between items and record types. The domain of individual items is defined in Record formats.
7.1. Current Validations¶
7.1.1. Keys¶
The following rules apply to the key fields in all records:
- All key fields are case sensitive
- All key fields must be valid unicode characters
- All key fields start with a POSIX alphanumeric character (A-Za-z0-9)
7.1.2. Practitioner¶
Practitioner - ATSI Cultural Training must only be set to ‘3 - Not required’ where Practitioner - Aboriginal and Torres Strait Islander Status is one of
- ‘1: Aboriginal but not Torres Strait Islander origin’
- ‘2: Torres Strait Islander but not Aboriginal origin’
- ‘3: Both Aboriginal and Torres Strait Islander origin’
or
The organisation to which the practitioner belongs has Provider Organisation - Type set to ‘8: Aboriginal Health/Medical Service’
7.1.3. Client¶
- Client - Date of Birth must not be before 1 January 1900 and must not be in the future
7.1.4. Episode¶
The Episode - End Date must not be before the Episode - Referral Date
Episode - Referrer Organisation Type must be set to ‘98: N/A - Self referral’ if and only if Episode - Referrer Profession is also ‘98: N/A - Self referral’
A maximum of one episode shall be open per client
Where the Episode - Completion Status has been recorded using one of the ‘Episode closed’ responses (Response items 1-6), the episode must have an Episode - End Date, and/or episodes that have an Episode - End Date must have an Episode - Completion Status recorded using one of the ‘Episode closed’ responses (Response items 1-6)
On Episode - Principal Diagnosis and Episode - Additional Diagnosis the values:
- ‘100: Anxiety disorders (ATAPS)’
- ‘200: Affective (Mood) disorders (ATAPS)’
- ‘300: Substance use disorders (ATAPS)’
- ‘400: Psychotic disorders (ATAPS)’
must only used where data has been migrated from ATAPS. The above responses must only be used under the following conditions:
- The Episode - Referral Date was before 1 July 2017
- The Episode - Tags field must contain the
!ATAPS
flagThe ‘4: Complex care package’ response for Episode - Principal Focus of Treatment Plan must only be used by selected PHN Lead Sites
The
!ATAPS
tag must only be included in the Episode - Tags field where the Episode - Referral Date was before 1 July 2017
- must not be before 1 January 2016
- and must not be before Provider Organisation - Start Date
- and must not be after Provider Organisation - End Date
- and must not be in the future
- must not be before 1 January 2014
- and must not be before Provider Organisation - Start Date
- and must not be after Provider Organisation - End Date
- and must not be in the future
7.1.5. Service Contact¶
- Where Service Contact - Final is recorded as ‘1: No further services are planned for the client in the current episode’, the Episode - Completion Status must be recorded using one of the ‘Episode closed’ responses (Response items 1-6)
- Where Service Contact - Final is recorded as ‘1: No further services are planned for the client in the current episode’, the date of the Service Contact - Final must be recorded as the Episode End Date
- Where an Episode - End Date has been recorded, a later Service Contact - Date must not be added
- If Service Contact - Type is ‘0: No contact took place’, Service Contact - No Show must be ‘1: Yes’
- If Service Contact - Duration is ‘0: No contact took place’, Service Contact - No Show must be ‘1: Yes’
- If Service Contact - Modality is ‘0: No contact took place’, Service Contact - No Show must be ‘1: Yes’
- If Service Contact - Modality is not ‘1: Face to Face’, Service Contact - Postcode must be 9999
- If Service Contact - Modality is ‘1: Face to Face’, Service Contact - Postcode must not be 9999
- If Service Contact - Modality is ‘1: Face to Face’, Service Contact - Venue must not be ‘98: Not applicable (Service Contact Modality is not face to face)’
- On Service Contact - Type the value ‘98: ATAPS’ must only be used where data has been migrated from ATAPS. The above response must only be used under the following conditions:
- The Service Contact - Date was before 30 June 2018
- The Service Contact - Tags field must contain the
!ATAPS
flag- If Service Contact - Participants is ‘1: Individual client’ Service Contact - Client Participation Indicator must be ‘1: Yes’
- The
!ATAPS
tag must only be included in the Service Contact - Tags field where the Service Contact - Date was before 30 June 2018- The Service Contact - Date
- must not be before 1 January 2016
- and must not be before Provider Organisation - Start Date
- and must not be after Provider Organisation - End Date
- and must not be in the future
7.1.6. K10+¶
- If both item scores and a total score are specified, the item scores must add up to the total score (as per Scoring the K10+)
- The Collection Occasion - Measure Date
- must not be before 1 January 2016
- and must not be before Episode - Referral Date
- and must not be before Provider Organisation - Start Date
- and must not be more than 7 days after Episode - End Date
- and must not be after Provider Organisation - End Date
- and must not be in the future
- The K10+ Total Score is calculated as described at K10+ - Score
7.1.7. K5¶
- If both item scores and a total score are specified, the item scores must add up to the total score (as per Scoring the K5)
- The Collection Occasion - Measure Date
- must not be before 1 January 2016
- and must not be before Episode - Referral Date
- and must not be before Provider Organisation - Start Date
- and must not be more than 7 days after Episode - End Date
- and must not be after Provider Organisation - End Date
- and must not be in the future
7.1.8. SDQ¶
Use the table at SDQ Data Elements to validate the items that are used in each version of the SDQ
If both item scores and subscales are specified, the sum of the items must agree with the subscales score (as per Scoring the SDQ)
If both subscales and total score are specified, the sum of the subscales must agree with the total score (as per Scoring the SDQ)
The Collection Occasion - Measure Date
- must not be before 1 January 2016
- and must not be before Episode - Referral Date
- and must not be before Provider Organisation - Start Date
- and must not be more than 7 days after Episode - End Date
- and must not be after Provider Organisation - End Date
- and must not be in the future
7.1.9. Organisation¶
- The Provider 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 Episode - Referral Date
- and must not be after the earliest Service Contact - Date
- and must not be after the earliest Collection Occasion - Measure Date
- and must not be in the future
- The Provider 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 Episode - Referral Date
- and must not be before the latest Episode - End Date
- and must not be before the latest Service Contact - Date
- and must not be before the latest Collection Occasion - Measure Date
- can be in the future
7.2. Future Validations¶
There are currently no planned future validations.