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

  1. Episode Key must be an existing PMHC episode within the PMHC MDS.

  2. !wayback tag should be included in the Episode - Tags field of the corresponding PMHC episode, otherwise the system will automatically include it.

  3. The TWB Episode - Primary Nominated Professional Consent Date

  4. The TWB Episode - Primary Nominated Professional Contact Entry Date

  5. The TWB Episode - Primary Nominated Professional Contact Exit Date

4. TWB Critical Incident

  1. Episode Key must be an existing PMHC episode within the PMHC MDS.

  2. The TWB Critical Incident - Date

5. TWB Recommendation Out

  1. Episode Key must be an existing PMHC episode within the PMHC MDS.

  2. TWB Recommendation Outs for an Episode must have unique TWB Recommendation Out - Provider Type.

6. Collection Occasion

  1. Episode Key must be an existing PMHC episode within the PMHC MDS.

  2. The Collection Occasion - Date

7. K10+

  1. Collection Occasion Key must be an existing Collection Occasion within the PMHC MDS.

  2. 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

  1. Collection Occasion Key must be an existing Collection Occasion within the PMHC MDS.

  2. 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

  1. Collection Occasion Key must be an existing Collection Occasion within the PMHC MDS.

  2. If both item scores and a total score are specified, the item scores must add up to the total score.

10. SIDAS

  1. Collection Occasion Key must be an existing Collection Occasion within the PMHC MDS.

  2. When item 1 has the value “0 - Never” all other items must be set to “98 - Not Required”

11. TWB-Plan

  1. Collection Occasion Key must be an existing Collection Occasion within the PMHC MDS.

12. TWB-NI

  1. Collection Occasion Key must be an existing Collection Occasion within the PMHC MDS.

13. SDQ

  1. 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.

  2. Collection Occasion Key must be an existing Collection Occasion within the PMHC MDS.

  3. Use the table at SDQ Data Elements to validate the items that are used in each version of the SDQ.

  4. If both item scores and subscales are specified, the sum of the items must agree with the subscales score (as per Scoring the SDQ ).

  5. 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.