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.

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

9. SIDAS

  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. TWB-Plan

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

11. TWB-NI

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

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.