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 503D [Amended 2024 v1.1] #772

Closed SLornieCYC closed 5 months ago

SLornieCYC commented 6 months ago

Note: Rule previously implemented from issue #207 but rule has been amended in updated guidance. Changes highlighted with bold and strikethrough.

This is likely to be a one-year only change for 2024/25 (due to the introduction of the <PL> K3 code which replaces the previous H5 code) with the exception to handle that year-on-year conversion no longer relevant from 2025/26.

Error information

Error code

503D

Description to display

The placement type in the first episode does not match open episode at end of last year.

DfE Long-form description of error

Placement type in the first episode must be consistent with equivalent details in the last episode of a previous year’s record which was open at the end of the year. Check details for placement type are correct. If they are correct, are the details in last year’s final episode correct? Were there one or more intervening episodes which have been left out? It may be necessary to enter additional episode details into the system.

DfE suggested coding

Where previous collection year’s final episode <DEC> not provided then first episode of this year’s collection <PL> must be the same as the previous episode [Except if previous year <PL> = ‘H5’ and current year <PL> = ‘K3’]

For further info, refer to the DfE validation document here