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

Share validation functions between CSV upload and edit forms #31

Open eatyourpeas opened 5 months ago

eatyourpeas commented 5 months ago

Allied to #24 The API relating to to visits will need access to the validation functions used in the csv_upload

mbarton commented 2 months ago

We should be able to re-use the PatientForm and VisitForm, manually binding data from the CSV row, call .clean() and check errors on the form.

We'll need to implement #47 to collect all the errors in one go rather than raising exceptions.