data-to-insight / csc-validator-be-903

Python-side code for the Quality LAC Data Beta frontend
https://903.datatoinsight.org
MIT License
8 stars 4 forks source link

Error code SW16aSTG2 [Added 2024 v1.0] #707

Closed SLornieCYC closed 8 months ago

SLornieCYC commented 11 months ago

Note: This rule was added by DFE in the 2024/25 v1.0 validation check document. It is dependent on #637.

Error information

Error code

SW16aSTG2

Description to display

The social worker ID does not match the open episode at the end of last year.

DfE Long-form description of error

There was an open social worker episode at the end of last year, the first social worker episode this year must be consistent. Check the social worker ID reported in both years.

DfE suggested coding

If present, where there is a previous collection year’s final social worker episode, and <SW_DEC> not provided, then first social worker episode of this year’s collection <SW_ID> should be the same as the previous episode

For further info, refer to the DfE validation document here