In our project, we need to capture multiple EncounterProviders for one of the forms. While going through the references for HTMLFormEntry, we got to know we should use the encounterProviderAndRoleTag which allows to capture multiple providers and different roles in one encounter.
However, we figured out there is no way to filter the list of providers using
UserRoles, instead there is a way to filter by
providerRoles which comes from ProviderManagementModule. Any specific reason we had gone with a different model for filtering by roles?
Is there a way right now to use
UserRole for getting the providers. Right now to make it work, we have to have an additional step, that maps every
User => Provider to a provider role. We would like to avoid this step if possible.
Let us know your thoughts.