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 221 [Amended 2024 v1.1] #771

Closed SLornieCYC closed 6 months ago

SLornieCYC commented 6 months ago

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

Error information

Error code

221

Description to display

The Ofsted Unique reference number (URN) provided for the child's placement does not match the placement postcode provided.

DfE Long-form description of error

The postcode recorded against the Ofsted URN entered does not match the placement postcode recorded (where placement postcode has been provided). Please check whether the Ofsted URN is correct and check whether the placement postcode is correct. This is only applicable to placement types H5, K1, K2, K3, R3 and S1.

DfE suggested coding

If <URN> provided and <URN> not = 'XXXXXX', and <LS> not = 'V3', 'V4' and where <PL> = 'H5', 'K1', 'K2', 'K3', 'R3' or 'S1' and <PL_POST> provided, <PL_POST> should = URN Lookup <Provider Postcode>

For further info, refer to the DfE validation document here