Medical data quality assessment: On the development of an automated framework for medical data curation