These modules (uilibrary and providermanagement) are not one core OpenMRS
priorities right now, so I would expect that if you want to get this fixed,
you need to to find a developer to work on it.
The work would probably be:
fix in the providermanagement module so if the PersonAttributeType is a
Concept, then the foreign key needs to be passed along (i.e. which concept
lists the answers)
add a “field” widget for org.openmrs.Concept (which should respect
showing the concepts that answer a given question)
Those are widgets that exist at the UI level. Presumably that one would let
you pick a Role (maybe out of a dropdown). A developer would do something
like:
I don’t know if it’s possible or not to have a provider attribute whose
datatype is Role. It could be that this UI widget was developed for some
other reason.