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 SW16bSTG2 [Added 2024 v1.0] #708

Closed SLornieCYC closed 10 months ago

SLornieCYC commented 1 year 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

SW16bSTG2

Description to display

The social worker episode start date 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 episode start date 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_DECOM> be the same as the previous episode

For further info, refer to the DfE validation document here