Support for mandatory fields in CSV upload for Encounters in Forms2

Tags: #<Tag:0x00007f23dc49b068> #<Tag:0x00007f23dc49ac80>

When we try saving Forms through the Bahmni UI without entering values in mandatory fields the save is not successful and we get a pop-up message asking us to fill mandatory fields.

The same does not apply while uploading data through migration templates as its a direct database insertion of data and surpasses the UI validation of checking for mandatory fields. We need to ensure the CSV upload fails with a valid error message whenever a mandatory field is not filled


  • Read Observation properties from form definition (.json)
  • Validate all mandatory fields and provide error message if field is empty.

++ @vmalini @pratibhasagar @rakeshtwhyd @angshuonline

thats only possible for CSV import which conforms to a form. not otherwise.

Yes @angshuonline