Support for mandatory fields Patient Registration Page in CSV upload

Tags: #<Tag:0x00007f23db065d28> #<Tag:0x00007f23db065788>

When we try saving Registration details through the Bahmni UI without entering values in mandatory fields defined using patient attributes the save is not successful and we get a 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.

Approach 1:

  • Reading the property mandatoryPersonAttributes from patient registration page config by creating separate utility (for reading this config)

Approach 2:

  • Define global property which holds all mandatory patient attributes (multiple fields separated by delimiter)

++ @vmalini @pratibhasagar @rakeshtwhyd @angshuonline

I would prefer reading from config. (not keen to scatter configuration)