Wiki Spaces


Get Help from Others

Q&A: Ask OpenMRS
Discussion: OpenMRS Talk
Real-Time: IRC Chat | Slack


Page tree

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


  • default: Sets default provider for the widget (id or uuid of a Provider, or "currentUser"). If you specify "currentUser" but the currently-logged-in user does not have a Provider record associated with their Person record, nothing happens. (If that user has more than one Provider record, one is chosen arbitrarily.)
  • encounterRole: (id or uuid of a encounterRole) When specified, this tag displays a widget for choosing a provider, and assigns it to the role indicated by this parameter. If you do not specify this attribute, then the tag will also display a widget to choose an encounter role for the provider.
  • required: when true, the form cannot be submitted unless you have chosen a provider

Example Usage

Code Block
<encounterProvider<encounterProviderAndRole/>                                   <!-- dropdown of encounter roles : dropdown of providers -->
<encounterProvider<encounterProviderAndRole default="currentUser"/>             <!-- dropdown of encounter roles : dropdown of providers with one chosen by default -->
<encounterProvider<encounterProviderAndRole encounterRole="1" required="true"/> <!-- dropdown of providers, required for submission -->
<encounterProvider<encounterProviderAndRole encounterRole="2" default="3"/>     <!-- dropdown of providers, with one chosen by default -->