muccg / rdrf

The Rare Disease Registry Framework (RDRF) is an open source tool for the creation of web-based patient registries.
GNU Affero General Public License v3.0
15 stars 8 forks source link

CICLC: DataError on Patient information page #1216

Open gmaloneccg opened 4 years ago

gmaloneccg commented 4 years ago

After creating a new patient and navigating to the Patient information page.

Entering an integer in excess of Django integer size limits in the field "Private hospital medical record number" (CDE PrivHospMedRecNo) results in a traceback (correctly), but this field perhaps should be string rather than integer, so as to restrict the number of characters in the input.

The Medicare number field (CDE Medicare) is string, but does not have a character limit.

The Postcode field (CDE Ptaddress3) is also integer, and can accept large negative values. This field has a max. length of 4, but this is not enforced as it is an integer field. Maximum and minimum values could be applied to restrict the range of possible values while still retaining integer-only entry.

id2359 commented 4 years ago

I emailed Angela to confirm