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 370 [Amended 2023 v1.3] #764

Closed SLornieCYC closed 6 months ago

SLornieCYC commented 6 months ago

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

Error information

Error code

370

Description to display

Child in independent living should be at least 15 16.

DfE Long-form description of error

Where the placement code is P2 the date at the start of the placement should be the child's 15th 16th birthday or over. Check that the date of birth and the placement code are correct. If so contact DfE.

DfE suggested coding

Where <PL> = 'P2' then <DOB> should be >= 15 16 years prior to <DECOM>

For further info, refer to the DfE validation document here