rcpch / national-paediatric-diabetes-audit

A django application to audit the care of children and young people with diabetes in England and Wales.
0 stars 1 forks source link

Patients entered manually default to invalid, causing error #62

Closed dc2007git closed 1 month ago

dc2007git commented 1 month ago

Adding a patient manually seems to default their valid status to 'invalid'.

Explanation:

A patient in the dummy data .csv has their is_valid flag set to true (confirmed in django admin). Adding this patient manually with the exact same details (apart from incrementing their NHS number by 1 to prevent a duplicate error) leads to this entry being set to is_valid = False.

This bug can be found in the main branch too.

It also seems to be causing errors such as #53 to appear