Based on O3 distro reference application running on docker, I am using address hierarchy module to populate the address fields during the patient registration.
I am getting the address fields in the registration page. But all of them are marked as optional
. How can I make them mandatory?
I was able to make the phone number field mandatory using the following config:
{
"@openmrs/esm-patient-registration-app": {
"strictAutocompleteFromLevel": "address3",
"fieldConfigurations": {
"phone": {
"validation": {
"required": true
}
}
}
}
}
Is there similar or any other way to make these address fields mandatory?