Validation Rules
TWB is an extension of the Primary Mental Health Care Minimum Data Set (PMHC MDS); the current PMHC MDS Validations rules apply. These are available to be viewed at https://docs.pmhc-mds.com/data-specification/validation-rules.html.
This document defines validation rules between TWB items and record types. The domain of individual TWB items is defined in Record Formats.
Current TWB Validations
1. TWB Episode
Episode Key must be an existing PMHC episode within the PMHC MDS.
!wayback
tag should be included in the Episode - Tags field of the corresponding PMHC episode, otherwise the system will automatically include it.The TWB Episode - Primary Nominated Professional Consent Date
must not be before 1 January 2019
and must not be before Episode - Referral Date
and must not be before Provider Organisation - Start Date
and must not be after Episode - End Date
and must not be after Provider Organisation - End Date
and must not be in the future
The TWB Episode - Primary Nominated Professional Contact Entry Date
must not be before 1 January 2019
and must not be before Episode - Referral Date
and must not be before Provider Organisation - Start Date
and must not be after Episode - End Date
and must not be after Provider Organisation - End Date
and must not be in the future
The TWB Episode - Primary Nominated Professional Contact Exit Date
must not be before 1 January 2019
and must not be before Episode - Referral Date
and must not be before Provider Organisation - Start Date
and must not be before TWB Episode - Primary Nominated Professional Contact Entry Date
and must not be before Episode - End Date
and must not be after Provider Organisation - End Date
and must not be in the future
4. TWB Critical Incident
Episode Key must be an existing PMHC episode within the PMHC MDS.
The TWB Critical Incident - Date
must not be before 1 January 2019
and must not be before Episode - Referral Date
and must not be before Provider Organisation - Start Date
and must not be after Episode - End Date
and must not be after Provider Organisation - End Date
and must not be in the future
5. TWB Recommendation Out
Episode Key must be an existing PMHC episode within the PMHC MDS.
TWB Recommendation Outs for an Episode must have unique TWB Recommendation Out - Provider Type.
6. Collection Occasion
Episode Key must be an existing PMHC episode within the PMHC MDS.
The Collection Occasion - 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. K10+
Collection Occasion Key must be an existing Collection Occasion within the PMHC MDS.
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+).
8. K5
Collection Occasion Key must be an existing Collection Occasion within the PMHC MDS.
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).
9. WHO-5
Collection Occasion Key must be an existing Collection Occasion within the PMHC MDS.
If both item scores and a total score are specified, the item scores must add up to the total score.
10. SIDAS
Collection Occasion Key must be an existing Collection Occasion within the PMHC MDS.
When item 1 has the value “0 - Never” all other items must be set to “98 - Not Required”
11. TWB-Plan
Collection Occasion Key must be an existing Collection Occasion within the PMHC MDS.
12. TWB-NI
Collection Occasion Key must be an existing Collection Occasion within the PMHC MDS.
13. SDQ
SDQ records should only be uploaded as part of a joint PMHC + TWB upload. The SDQ does not form part of the data collected for TWB and should only be collected for PMHC only clients.
Collection Occasion Key must be an existing Collection Occasion within the PMHC MDS.
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 ).
Current PMHC Validations
TWB is an extension of the Primary Mental Health Care Minimum Data Set (PMHC MDS); the current PMHC MDS Validations rules may apply, depending on how you add your TWB data. The current PMHC MDS validations rules are available to be viewed at https://docs.pmhc-mds.com/data-specification/validation-rules.html.
Future Validations
There are currently no future validations planned.